mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
Remove unnecessary setAngle/angle overrides in QgsPointPatternFillSymbolLayer
This commit is contained in:
parent
db6627d2f9
commit
06ed5bd86e
@ -2457,31 +2457,12 @@ in different locations with every map refresh).
|
|||||||
|
|
||||||
.. seealso:: :py:func:`seed`
|
.. 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
|
.. versionadded:: 3.24
|
||||||
%End
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
virtual void applyDataDefinedSettings( QgsSymbolRenderContext &context );
|
virtual void applyDataDefinedSettings( QgsSymbolRenderContext &context );
|
||||||
|
|
||||||
|
|
||||||
|
@ -1354,7 +1354,26 @@ The ``rings`` argument optionally specifies a list of polygon rings to render as
|
|||||||
|
|
||||||
|
|
||||||
void setAngle( double angle );
|
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;
|
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;
|
virtual QImage toTiledPatternImage( ) const;
|
||||||
%Docstring
|
%Docstring
|
||||||
|
@ -2177,22 +2177,6 @@ class CORE_EXPORT QgsPointPatternFillSymbolLayer: public QgsImageFillSymbolLayer
|
|||||||
*/
|
*/
|
||||||
void setSeed( unsigned long seed ) { mSeed = seed; }
|
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:
|
protected:
|
||||||
std::unique_ptr< QgsMarkerSymbol > mMarkerSymbol;
|
std::unique_ptr< QgsMarkerSymbol > mMarkerSymbol;
|
||||||
double mDistanceX = 15;
|
double mDistanceX = 15;
|
||||||
|
@ -1272,7 +1272,22 @@ class CORE_EXPORT QgsFillSymbolLayer : public QgsSymbolLayer
|
|||||||
|
|
||||||
void drawPreviewIcon( QgsSymbolRenderContext &context, QSize size ) override;
|
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; }
|
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; }
|
double angle() const { return mAngle; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user