[mapguide-commits] r1291 - trunk/MgDev/Common/Stylization
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Mar 19 16:15:42 EDT 2007
Author: waltweltonlair
Date: 2007-03-19 16:15:42 -0400 (Mon, 19 Mar 2007)
New Revision: 1291
Modified:
trunk/MgDev/Common/Stylization/SE_Renderer.cpp
trunk/MgDev/Common/Stylization/SE_Renderer.h
Log:
Fix some comments in SE_Renderer
Modified: trunk/MgDev/Common/Stylization/SE_Renderer.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/SE_Renderer.cpp 2007-03-19 18:25:04 UTC (rev 1290)
+++ trunk/MgDev/Common/Stylization/SE_Renderer.cpp 2007-03-19 20:15:42 UTC (rev 1291)
@@ -248,8 +248,9 @@
int ptindex = 0;
- //convert increment to pixels
- double increment = style->repeat; //TODO: is this already scaled by the mm to pixel scale?
+ //get the increment (the render style already stores this in screen units)
+ //TODO - handle case where increment is 0
+ double increment = style->repeat;
bool fromAngle = (wcscmp(L"FromAngle", style->angleControl) == 0);
@@ -259,10 +260,8 @@
int ptcount = geometry->cntrs()[j];
double* pts = geometry->points() + 2*ptindex;
- //pixel position along the current segment
- //of the polyline
- double drawpos = style->startOffset; //position of symbol along current segment of the polyline
- //TODO: is this already scaled by the mm to pixel scale?
+ //pixel position along the current segment of the polyline
+ double drawpos = style->startOffset;
int cur_seg = 0;
Modified: trunk/MgDev/Common/Stylization/SE_Renderer.h
===================================================================
--- trunk/MgDev/Common/Stylization/SE_Renderer.h 2007-03-19 18:25:04 UTC (rev 1290)
+++ trunk/MgDev/Common/Stylization/SE_Renderer.h 2007-03-19 20:15:42 UTC (rev 1291)
@@ -57,7 +57,7 @@
int nlabels,
RS_OverpostType type,
bool exclude,
- LineBuffer* path = NULL) = 0;
+ LineBuffer* path = NULL) = 0;
virtual void AddExclusionRegion(RS_F_Point* fpts, int npts) = 0;
More information about the mapguide-commits
mailing list