Skip to content

Commit

Permalink
Fix: make "Part" struct dependent definitions private
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus authored and nyalldawson committed May 26, 2020
1 parent 899d3fe commit 563ab03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
Expand Up @@ -2239,13 +2239,6 @@ Sets whether point markers should be ``clipped`` to the current part boundary on




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

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






Expand Down
15 changes: 7 additions & 8 deletions src/core/symbology/qgsfillsymbollayer.h
Expand Up @@ -2016,21 +2016,13 @@ class CORE_EXPORT QgsCentroidFillSymbolLayer : public QgsFillSymbolLayer
void stopFeatureRender( const QgsFeature &feature, QgsRenderContext &context ) override; void stopFeatureRender( const QgsFeature &feature, QgsRenderContext &context ) override;


protected: 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; std::unique_ptr< QgsMarkerSymbol > mMarker;
bool mPointOnSurface = false; bool mPointOnSurface = false;
bool mPointOnAllParts = true; bool mPointOnAllParts = true;
bool mClipPoints = false; bool mClipPoints = false;
bool mClipOnCurrentPartOnly = false; bool mClipOnCurrentPartOnly = false;


QVector<Part> mCurrentParts;
bool mRenderingFeature = false; bool mRenderingFeature = false;


QgsFeatureId mCurrentFeatureId = -1; QgsFeatureId mCurrentFeatureId = -1;
Expand All @@ -2040,7 +2032,14 @@ class CORE_EXPORT QgsCentroidFillSymbolLayer : public QgsFillSymbolLayer
#ifdef SIP_RUN #ifdef SIP_RUN
QgsCentroidFillSymbolLayer( const QgsCentroidFillSymbolLayer &other ); QgsCentroidFillSymbolLayer( const QgsCentroidFillSymbolLayer &other );
#endif #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 #endif
Expand Down

0 comments on commit 563ab03

Please sign in to comment.