[mapguide-commits] r5250 - trunk/MgDev/Common/Stylization
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Oct 6 13:32:10 EDT 2010
Author: waltweltonlair
Date: 2010-10-06 17:32:10 +0000 (Wed, 06 Oct 2010)
New Revision: 5250
Modified:
trunk/MgDev/Common/Stylization/SE_SymbolDefProxies.h
trunk/MgDev/Common/Stylization/StylizationEngine.cpp
trunk/MgDev/Common/Stylization/StylizationUtil.cpp
Log:
Fix #1455 (Stylization: expose the symbol sizeContext)
Submitted on behalf of Dan Stoica.
Expose the symbol sizeContext (DeviceUnit or MappingUnit) via SE_ApplyContext struct thus the SE_Renderer derived classes can access this bit of information via Process(SE_ApplyContext* ctx, ...) methods.
Modified: trunk/MgDev/Common/Stylization/SE_SymbolDefProxies.h
===================================================================
--- trunk/MgDev/Common/Stylization/SE_SymbolDefProxies.h 2010-10-06 06:08:52 UTC (rev 5249)
+++ trunk/MgDev/Common/Stylization/SE_SymbolDefProxies.h 2010-10-06 17:32:10 UTC (rev 5250)
@@ -54,6 +54,7 @@
LineBuffer* geometry;
SE_Renderer* renderer;
SE_Matrix* xform;
+ SizeContext sizeContext;
};
Modified: trunk/MgDev/Common/Stylization/StylizationEngine.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/StylizationEngine.cpp 2010-10-06 06:08:52 UTC (rev 5249)
+++ trunk/MgDev/Common/Stylization/StylizationEngine.cpp 2010-10-06 17:32:10 UTC (rev 5250)
@@ -679,6 +679,7 @@
applyCtx.geometry = lb;
applyCtx.renderer = m_serenderer;
applyCtx.xform = &xformTrans;
+ applyCtx.sizeContext = sym->sizeContext;
for (size_t styIx=0; styIx<nStyles; ++styIx)
{
@@ -1161,6 +1162,7 @@
applyCtx.geometry = lb;
applyCtx.renderer = m_serenderer;
applyCtx.xform = &xformTrans;
+ applyCtx.sizeContext = sym->sizeContext;
size_t nStyles = sym->styles.size();
for (size_t styIx=0; styIx<nStyles; ++styIx)
Modified: trunk/MgDev/Common/Stylization/StylizationUtil.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/StylizationUtil.cpp 2010-10-06 06:08:52 UTC (rev 5249)
+++ trunk/MgDev/Common/Stylization/StylizationUtil.cpp 2010-10-06 17:32:10 UTC (rev 5250)
@@ -639,6 +639,7 @@
applyCtx.geometry = NULL; // gets set below
applyCtx.renderer = pSERenderer;
applyCtx.xform = &xform;
+ applyCtx.sizeContext = sym->sizeContext;
for (std::vector<SE_Style*>::const_iterator siter = sym->styles.begin(); siter != sym->styles.end(); siter++)
{
More information about the mapguide-commits
mailing list