Skip to content

Commit 6d41522

Browse files
author
mhugent
committed
Make _getPoint, _getLineString, _getPolygon visible for subclasses of feature renderer
git-svn-id: http://svn.osgeo.org/qgis/trunk@13137 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c1ca74c commit 6d41522

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/core/symbology-ng/qgsrendererv2.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121

22-
static unsigned char* _getPoint( QPointF& pt, QgsRenderContext& context, unsigned char* wkb )
22+
unsigned char* QgsFeatureRendererV2::_getPoint( QPointF& pt, QgsRenderContext& context, unsigned char* wkb )
2323
{
2424
wkb++; // jump over endian info
2525
unsigned int wkbType = *(( int* ) wkb );
@@ -43,7 +43,7 @@ static unsigned char* _getPoint( QPointF& pt, QgsRenderContext& context, unsigne
4343
return wkb;
4444
}
4545

46-
static unsigned char* _getLineString( QPolygonF& pts, QgsRenderContext& context, unsigned char* wkb )
46+
unsigned char* QgsFeatureRendererV2::_getLineString( QPolygonF& pts, QgsRenderContext& context, unsigned char* wkb )
4747
{
4848
wkb++; // jump over endian info
4949
unsigned int wkbType = *(( int* ) wkb );
@@ -82,7 +82,7 @@ static unsigned char* _getLineString( QPolygonF& pts, QgsRenderContext& context,
8282
return wkb;
8383
}
8484

85-
static unsigned char* _getPolygon( QPolygonF& pts, QList<QPolygonF>& holes, QgsRenderContext& context, unsigned char* wkb )
85+
unsigned char* QgsFeatureRendererV2::_getPolygon( QPolygonF& pts, QList<QPolygonF>& holes, QgsRenderContext& context, unsigned char* wkb )
8686
{
8787
wkb++; // jump over endian info
8888
unsigned int wkbType = *(( int* ) wkb );

src/core/symbology-ng/qgsrendererv2.h

+4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ class CORE_EXPORT QgsFeatureRendererV2
110110
//! render editing vertex marker for a polygon
111111
void renderVertexMarkerPolygon( QPolygonF& pts, QList<QPolygonF>* rings, QgsRenderContext& context );
112112

113+
static unsigned char* _getPoint( QPointF& pt, QgsRenderContext& context, unsigned char* wkb );
114+
static unsigned char* _getLineString( QPolygonF& pts, QgsRenderContext& context, unsigned char* wkb );
115+
static unsigned char* _getPolygon( QPolygonF& pts, QList<QPolygonF>& holes, QgsRenderContext& context, unsigned char* wkb );
116+
113117
QString mType;
114118

115119
bool mUsingSymbolLevels;

0 commit comments

Comments
 (0)