[QGIS Commit] r13137 - trunk/qgis/src/core/symbology-ng

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Mar 21 17:53:59 EDT 2010


Author: mhugent
Date: 2010-03-21 17:53:56 -0400 (Sun, 21 Mar 2010)
New Revision: 13137

Modified:
   trunk/qgis/src/core/symbology-ng/qgsrendererv2.cpp
   trunk/qgis/src/core/symbology-ng/qgsrendererv2.h
Log:
Make _getPoint, _getLineString, _getPolygon visible for subclasses of feature renderer

Modified: trunk/qgis/src/core/symbology-ng/qgsrendererv2.cpp
===================================================================
--- trunk/qgis/src/core/symbology-ng/qgsrendererv2.cpp	2010-03-21 21:27:20 UTC (rev 13136)
+++ trunk/qgis/src/core/symbology-ng/qgsrendererv2.cpp	2010-03-21 21:53:56 UTC (rev 13137)
@@ -19,7 +19,7 @@
 
 
 
-static unsigned char* _getPoint( QPointF& pt, QgsRenderContext& context, unsigned char* wkb )
+unsigned char* QgsFeatureRendererV2::_getPoint( QPointF& pt, QgsRenderContext& context, unsigned char* wkb )
 {
   wkb++; // jump over endian info
   unsigned int wkbType = *(( int* ) wkb );
@@ -43,7 +43,7 @@
   return wkb;
 }
 
-static unsigned char* _getLineString( QPolygonF& pts, QgsRenderContext& context, unsigned char* wkb )
+unsigned char* QgsFeatureRendererV2::_getLineString( QPolygonF& pts, QgsRenderContext& context, unsigned char* wkb )
 {
   wkb++; // jump over endian info
   unsigned int wkbType = *(( int* ) wkb );
@@ -82,7 +82,7 @@
   return wkb;
 }
 
-static unsigned char* _getPolygon( QPolygonF& pts, QList<QPolygonF>& holes, QgsRenderContext& context, unsigned char* wkb )
+unsigned char* QgsFeatureRendererV2::_getPolygon( QPolygonF& pts, QList<QPolygonF>& holes, QgsRenderContext& context, unsigned char* wkb )
 {
   wkb++; // jump over endian info
   unsigned int wkbType = *(( int* ) wkb );

Modified: trunk/qgis/src/core/symbology-ng/qgsrendererv2.h
===================================================================
--- trunk/qgis/src/core/symbology-ng/qgsrendererv2.h	2010-03-21 21:27:20 UTC (rev 13136)
+++ trunk/qgis/src/core/symbology-ng/qgsrendererv2.h	2010-03-21 21:53:56 UTC (rev 13137)
@@ -110,6 +110,10 @@
     //! render editing vertex marker for a polygon
     void renderVertexMarkerPolygon( QPolygonF& pts, QList<QPolygonF>* rings, QgsRenderContext& context );
 
+    static unsigned char* _getPoint( QPointF& pt, QgsRenderContext& context, unsigned char* wkb );
+    static unsigned char* _getLineString( QPolygonF& pts, QgsRenderContext& context, unsigned char* wkb );
+    static unsigned char* _getPolygon( QPolygonF& pts, QList<QPolygonF>& holes, QgsRenderContext& context, unsigned char* wkb );
+
     QString mType;
 
     bool mUsingSymbolLevels;



More information about the QGIS-commit mailing list