Skip to content

Commit

Permalink
Remove unnecessary setAngle/angle overrides in QgsPointPatternFillSym…
Browse files Browse the repository at this point in the history
…bolLayer
  • Loading branch information
nyalldawson committed Apr 13, 2023
1 parent db6627d commit 06ed5bd
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 35 deletions.
19 changes: 0 additions & 19 deletions python/core/auto_generated/symbology/qgsfillsymbollayer.sip.in
Expand Up @@ -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 );


Expand Down
19 changes: 19 additions & 0 deletions python/core/auto_generated/symbology/qgssymbollayer.sip.in
Expand Up @@ -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
Expand Down
16 changes: 0 additions & 16 deletions src/core/symbology/qgsfillsymbollayer.h
Expand Up @@ -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;
Expand Down
15 changes: 15 additions & 0 deletions src/core/symbology/qgssymbollayer.h
Expand Up @@ -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; }

/**
Expand Down

0 comments on commit 06ed5bd

Please sign in to comment.