mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
Doxygen for QgsSymbolLayer::setRenderingPass
This commit is contained in:
parent
4ee40991a8
commit
ac6ed1a18c
@ -288,7 +288,20 @@ layer may use it to specify the units for the line width.
|
|||||||
virtual QgsMapUnitScale mapUnitScale() const;
|
virtual QgsMapUnitScale mapUnitScale() const;
|
||||||
|
|
||||||
void setRenderingPass( int renderingPass );
|
void setRenderingPass( int renderingPass );
|
||||||
|
%Docstring
|
||||||
|
Specifies the rendering pass in which this symbol layer should be rendered.
|
||||||
|
The lower the number, the lower the symbol will be rendered.
|
||||||
|
0: first pass, 1: second pass, ...
|
||||||
|
Defaults to 0
|
||||||
|
%End
|
||||||
|
|
||||||
int renderingPass() const;
|
int renderingPass() const;
|
||||||
|
%Docstring
|
||||||
|
Specifies the rendering pass in which this symbol layer should be rendered.
|
||||||
|
The lower the number, the lower the symbol will be rendered.
|
||||||
|
0: first pass, 1: second pass, ...
|
||||||
|
Defaults to 0
|
||||||
|
%End
|
||||||
|
|
||||||
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
|
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
|
||||||
%Docstring
|
%Docstring
|
||||||
|
@ -176,7 +176,6 @@ QgsSymbolLayer::QgsSymbolLayer( QgsSymbol::SymbolType type, bool locked )
|
|||||||
: mType( type )
|
: mType( type )
|
||||||
, mEnabled( true )
|
, mEnabled( true )
|
||||||
, mLocked( locked )
|
, mLocked( locked )
|
||||||
, mRenderingPass( 0 )
|
|
||||||
|
|
||||||
{
|
{
|
||||||
mPaintEffect = QgsPaintEffectRegistry::defaultStack();
|
mPaintEffect = QgsPaintEffectRegistry::defaultStack();
|
||||||
@ -218,6 +217,16 @@ bool QgsSymbolLayer::isCompatibleWithSymbol( QgsSymbol *symbol ) const
|
|||||||
return symbol->type() == mType;
|
return symbol->type() == mType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QgsSymbolLayer::setRenderingPass( int renderingPass )
|
||||||
|
{
|
||||||
|
mRenderingPass = renderingPass;
|
||||||
|
}
|
||||||
|
|
||||||
|
int QgsSymbolLayer::renderingPass() const
|
||||||
|
{
|
||||||
|
return mRenderingPass;
|
||||||
|
}
|
||||||
|
|
||||||
QSet<QString> QgsSymbolLayer::usedAttributes( const QgsRenderContext &context ) const
|
QSet<QString> QgsSymbolLayer::usedAttributes( const QgsRenderContext &context ) const
|
||||||
{
|
{
|
||||||
QSet<QString> columns = mDataDefinedProperties.referencedFields( context.expressionContext() );
|
QSet<QString> columns = mDataDefinedProperties.referencedFields( context.expressionContext() );
|
||||||
|
@ -308,9 +308,21 @@ class CORE_EXPORT QgsSymbolLayer
|
|||||||
virtual void setMapUnitScale( const QgsMapUnitScale &scale ) { Q_UNUSED( scale ); }
|
virtual void setMapUnitScale( const QgsMapUnitScale &scale ) { Q_UNUSED( scale ); }
|
||||||
virtual QgsMapUnitScale mapUnitScale() const { return QgsMapUnitScale(); }
|
virtual QgsMapUnitScale mapUnitScale() const { return QgsMapUnitScale(); }
|
||||||
|
|
||||||
// used only with rending with symbol levels is turned on (0 = first pass, 1 = second, ...)
|
/**
|
||||||
void setRenderingPass( int renderingPass ) { mRenderingPass = renderingPass; }
|
* Specifies the rendering pass in which this symbol layer should be rendered.
|
||||||
int renderingPass() const { return mRenderingPass; }
|
* The lower the number, the lower the symbol will be rendered.
|
||||||
|
* 0: first pass, 1: second pass, ...
|
||||||
|
* Defaults to 0
|
||||||
|
*/
|
||||||
|
void setRenderingPass( int renderingPass );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the rendering pass in which this symbol layer should be rendered.
|
||||||
|
* The lower the number, the lower the symbol will be rendered.
|
||||||
|
* 0: first pass, 1: second pass, ...
|
||||||
|
* Defaults to 0
|
||||||
|
*/
|
||||||
|
int renderingPass() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the set of attributes referenced by the layer. This includes attributes
|
* Returns the set of attributes referenced by the layer. This includes attributes
|
||||||
@ -419,7 +431,7 @@ class CORE_EXPORT QgsSymbolLayer
|
|||||||
|
|
||||||
bool mLocked;
|
bool mLocked;
|
||||||
QColor mColor;
|
QColor mColor;
|
||||||
int mRenderingPass;
|
int mRenderingPass = 0;
|
||||||
|
|
||||||
QgsPropertyCollection mDataDefinedProperties;
|
QgsPropertyCollection mDataDefinedProperties;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user