Skip to content
Permalink
Browse files

Fix: make "Part" struct dependent definitions private

  • Loading branch information
suricactus authored and nyalldawson committed May 26, 2020
1 parent 899d3fe commit 563ab0330f81f8c24b86109ff687903e6ebf7f04
@@ -2239,13 +2239,6 @@ Sets whether point markers should be ``clipped`` to the current part boundary on


protected:
struct Part
{
QPolygonF exterior;
QList<QPolygonF> rings;
};

void render( QgsRenderContext &context, const QVector<Part> &parts, const QgsFeature &feature, bool selected );



@@ -2016,21 +2016,13 @@ class CORE_EXPORT QgsCentroidFillSymbolLayer : public QgsFillSymbolLayer
void stopFeatureRender( const QgsFeature &feature, QgsRenderContext &context ) override;

protected:
struct Part
{
QPolygonF exterior;
QList<QPolygonF> rings;
};

void render( QgsRenderContext &context, const QVector<Part> &parts, const QgsFeature &feature, bool selected );

std::unique_ptr< QgsMarkerSymbol > mMarker;
bool mPointOnSurface = false;
bool mPointOnAllParts = true;
bool mClipPoints = false;
bool mClipOnCurrentPartOnly = false;

QVector<Part> mCurrentParts;
bool mRenderingFeature = false;

QgsFeatureId mCurrentFeatureId = -1;
@@ -2040,7 +2032,14 @@ class CORE_EXPORT QgsCentroidFillSymbolLayer : public QgsFillSymbolLayer
#ifdef SIP_RUN
QgsCentroidFillSymbolLayer( const QgsCentroidFillSymbolLayer &other );
#endif
struct Part
{
QPolygonF exterior;
QList<QPolygonF> rings;
};

void render( QgsRenderContext &context, const QVector<Part> &parts, const QgsFeature &feature, bool selected );
QVector<Part> mCurrentParts;
};

#endif

0 comments on commit 563ab03

Please sign in to comment.
You can’t perform that action at this time.