[mapguide-commits] r9399 - sandbox/adsk/3.2q/Common/Stylization

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Jul 18 23:14:36 PDT 2018


Author: simonliu
Date: 2018-07-18 23:14:36 -0700 (Wed, 18 Jul 2018)
New Revision: 9399

Modified:
   sandbox/adsk/3.2q/Common/Stylization/SE_RenderProxies.h
   sandbox/adsk/3.2q/Common/Stylization/SE_SymbolDefProxies.cpp
Log:
We have a special case that we need to know if a SE_RenderPointStyle is cached. We made this ugly change that adds the parent SE_Style pointer to SE_RenderStyle. Will refine the code after a better solution is found.

Modified: sandbox/adsk/3.2q/Common/Stylization/SE_RenderProxies.h
===================================================================
--- sandbox/adsk/3.2q/Common/Stylization/SE_RenderProxies.h	2018-07-19 05:40:14 UTC (rev 9398)
+++ sandbox/adsk/3.2q/Common/Stylization/SE_RenderProxies.h	2018-07-19 06:14:36 UTC (rev 9399)
@@ -171,6 +171,7 @@
 // SE_RenderStyles
 //----------------------------------------------------------------------------
 
+struct SE_Style;
 struct SE_RenderStyle
 {
     SE_INLINE SE_RenderStyle(SE_RenderStyleType stype)
@@ -178,7 +179,8 @@
           renderPass(0),
           drawLast(false),
           checkExclusionRegion(false),
-          addToExclusionRegion(false)
+          addToExclusionRegion(false),
+          seStyle(NULL)
     {
         bounds[0].x = bounds[3].x = +DBL_MAX;
         bounds[1].x = bounds[2].x = -DBL_MAX;
@@ -225,6 +227,7 @@
     bool drawLast;
     bool checkExclusionRegion;
     bool addToExclusionRegion;
+    SE_Style* seStyle; // parent SE_Style
 };
 
 

Modified: sandbox/adsk/3.2q/Common/Stylization/SE_SymbolDefProxies.cpp
===================================================================
--- sandbox/adsk/3.2q/Common/Stylization/SE_SymbolDefProxies.cpp	2018-07-19 05:40:14 UTC (rev 9398)
+++ sandbox/adsk/3.2q/Common/Stylization/SE_SymbolDefProxies.cpp	2018-07-19 06:14:36 UTC (rev 9399)
@@ -791,6 +791,7 @@
     SE_RenderPointStyle* style = new SE_RenderPointStyle();
     delete rstyle;
     rstyle = style;
+    rstyle->seStyle = this;
 
     const wchar_t* sAngleControl = angleControl.evaluate(ctx->exec);
     if (wcscmp(sAngleControl, L"FromGeometry") == 0)



More information about the mapguide-commits mailing list