[mapguide-commits] r1126 - trunk/MgDev/Common/Stylization
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Feb 22 14:44:43 EST 2007
Author: brucedechant
Date: 2007-02-22 14:44:43 -0500 (Thu, 22 Feb 2007)
New Revision: 1126
Modified:
trunk/MgDev/Common/Stylization/DefaultStylizer.cpp
Log:
Add debugging code when stylizing a layer.
Modified: trunk/MgDev/Common/Stylization/DefaultStylizer.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/DefaultStylizer.cpp 2007-02-21 22:40:13 UTC (rev 1125)
+++ trunk/MgDev/Common/Stylization/DefaultStylizer.cpp 2007-02-22 19:44:43 UTC (rev 1126)
@@ -130,9 +130,17 @@
bool bClip = m_renderer->RequiresClipping();
+ #ifdef _DEBUG
+ int nFeatures = 0;
+ #endif
+
//main loop over feature data
while (features->ReadNext())
{
+ #ifdef _DEBUG
+ nFeatures++;
+ #endif
+
LineBuffer* lb = NULL;
//get the geometry just once
@@ -188,6 +196,10 @@
if (cancel && cancel(userData)) break;
}
+ #ifdef _DEBUG
+ printf(" DefaultStylizer::StylizeFeatures() Layer: %S Features: %d\n", layer->GetFeatureName().c_str(), nFeatures);
+ #endif
+
//need the cast due to multiple inheritance resulting in two Disposables
//in the vtable of FilterExecutor
((FdoIExpressionProcessor*)exec)->Release();
More information about the mapguide-commits
mailing list