Remove unnecessary setAngle/angle overrides in QgsPointPatternFillSymbolLayer

This commit is contained in:
Nyall Dawson 2023-04-13 09:14:31 +10:00
parent db6627d2f9
commit 06ed5bd86e
4 changed files with 34 additions and 35 deletions

View File

@ -2457,31 +2457,12 @@ in different locations with every map refresh).
.. seealso:: :py:func:`seed`
.. versionadded:: 3.24
%End
double angle() const;
%Docstring
Returns the rotation angle of the pattern, in degrees clockwise.
.. seealso:: :py:func:`setAngle`
.. versionadded:: 3.24
%End
void setAngle( double angle );
%Docstring
Sets the rotation ``angle`` of the pattern, in degrees clockwise.
.. seealso:: :py:func:`angle`
.. versionadded:: 3.24
%End
protected:
virtual void applyDataDefinedSettings( QgsSymbolRenderContext &context );

View File

@ -1354,7 +1354,26 @@ The ``rings`` argument optionally specifies a list of polygon rings to render as
void setAngle( double angle );
%Docstring
Sets the rotation ``angle`` of the pattern, in degrees clockwise.
.. note::
Not all fill symbol layers support rotation.
.. seealso:: :py:func:`angle`
%End
double angle() const;
%Docstring
Returns the rotation angle of the fill symbol, in degrees clockwise.
.. note::
Not all fill symbol layers support rotation.
.. seealso:: :py:func:`setAngle`
%End
virtual QImage toTiledPatternImage( ) const;
%Docstring

View File

@ -2177,22 +2177,6 @@ class CORE_EXPORT QgsPointPatternFillSymbolLayer: public QgsImageFillSymbolLayer
*/
void setSeed( unsigned long seed ) { mSeed = seed; }
/**
* Returns the rotation angle of the pattern, in degrees clockwise.
*
* \see setAngle()
* \since QGIS 3.24
*/
double angle() const { return mAngle; }
/**
* Sets the rotation \a angle of the pattern, in degrees clockwise.
*
* \see angle()
* \since QGIS 3.24
*/
void setAngle( double angle ) { mAngle = angle; }
protected:
std::unique_ptr< QgsMarkerSymbol > mMarkerSymbol;
double mDistanceX = 15;

View File

@ -1272,7 +1272,22 @@ class CORE_EXPORT QgsFillSymbolLayer : public QgsSymbolLayer
void drawPreviewIcon( QgsSymbolRenderContext &context, QSize size ) override;
/**
* Sets the rotation \a angle of the pattern, in degrees clockwise.
*
* \note Not all fill symbol layers support rotation.
*
* \see angle()
*/
void setAngle( double angle ) { mAngle = angle; }
/**
* Returns the rotation angle of the fill symbol, in degrees clockwise.
*
* \note Not all fill symbol layers support rotation.
*
* \see setAngle()
*/
double angle() const { return mAngle; }
/**