|
QGIS API Documentation
2.14.11-Essen
|
#include <qgssymbolv2.h>
Public Member Functions | |
| QgsSymbolV2RenderContext (QgsRenderContext &c, QgsSymbolV2::OutputUnit u, qreal alpha=1.0, bool selected=false, int renderHints=0, const QgsFeature *f=nullptr, const QgsFields *fields=nullptr, const QgsMapUnitScale &mapUnitScale=QgsMapUnitScale()) | |
| ~QgsSymbolV2RenderContext () | |
| qreal | alpha () const |
| Get alpha transparency 1 for opaque, 0 for invisible. More... | |
| QgsExpressionContextScope * | expressionContextScope () |
| This scope is always available when a symbol of this type is being rendered. More... | |
| const QgsFeature * | feature () const |
| Current feature being rendered - may be null. More... | |
| const QgsFields * | fields () const |
| Fields of the layer. More... | |
| QgsMapUnitScale | mapUnitScale () const |
| QgsSymbolV2RenderContext & | operator= (const QgsSymbolV2RenderContext &) |
| double | outputLineWidth (double width) const |
| double | outputPixelSize (double size) const |
| QgsSymbolV2::OutputUnit | outputUnit () const |
| QgsRenderContext & | renderContext () |
| const QgsRenderContext & | renderContext () const |
| int | renderHints () const |
| bool | selected () const |
| void | setAlpha (qreal alpha) |
| Set alpha transparency 1 for opaque, 0 for invisible. More... | |
| void | setExpressionContextScope (QgsExpressionContextScope *contextScope) |
| Set an expression scope for this symbol. More... | |
| void | setFeature (const QgsFeature *f) |
| void | setMapUnitScale (const QgsMapUnitScale &scale) |
| void | setOriginalValueVariable (const QVariant &value) |
| Sets the original value variable value for data defined symbology. More... | |
| void | setOutputUnit (QgsSymbolV2::OutputUnit u) |
| void | setRenderHints (int hints) |
| void | setSelected (bool selected) |
Definition at line 340 of file qgssymbolv2.h.
| QgsSymbolV2RenderContext::QgsSymbolV2RenderContext | ( | QgsRenderContext & | c, |
| QgsSymbolV2::OutputUnit | u, | ||
| qreal | alpha = 1.0, |
||
| bool | selected = false, |
||
| int | renderHints = 0, |
||
| const QgsFeature * | f = nullptr, |
||
| const QgsFields * | fields = nullptr, |
||
| const QgsMapUnitScale & | mapUnitScale = QgsMapUnitScale() |
||
| ) |
Definition at line 953 of file qgssymbolv2.cpp.
| QgsSymbolV2RenderContext::~QgsSymbolV2RenderContext | ( | ) |
Definition at line 966 of file qgssymbolv2.cpp.
|
inline |
Get alpha transparency 1 for opaque, 0 for invisible.
Definition at line 363 of file qgssymbolv2.h.
| QgsExpressionContextScope * QgsSymbolV2RenderContext::expressionContextScope | ( | ) |
This scope is always available when a symbol of this type is being rendered.
Definition at line 996 of file qgssymbolv2.cpp.
|
inline |
Current feature being rendered - may be null.
Definition at line 375 of file qgssymbolv2.h.
|
inline |
Fields of the layer.
Currently only available in startRender() calls to allow symbols with data-defined properties prepare the expressions (other times fields() returns null)
Definition at line 381 of file qgssymbolv2.h.
|
inline |
Definition at line 359 of file qgssymbolv2.h.
| QgsSymbolV2RenderContext & QgsSymbolV2RenderContext::operator= | ( | const QgsSymbolV2RenderContext & | ) |
Definition at line 986 of file qgssymbolv2.cpp.
| double QgsSymbolV2RenderContext::outputLineWidth | ( | double | width | ) | const |
Definition at line 976 of file qgssymbolv2.cpp.
| double QgsSymbolV2RenderContext::outputPixelSize | ( | double | size | ) | const |
Definition at line 981 of file qgssymbolv2.cpp.
|
inline |
Definition at line 356 of file qgssymbolv2.h.
|
inline |
Definition at line 346 of file qgssymbolv2.h.
|
inline |
Definition at line 347 of file qgssymbolv2.h.
|
inline |
Definition at line 370 of file qgssymbolv2.h.
|
inline |
Definition at line 367 of file qgssymbolv2.h.
|
inline |
Set alpha transparency 1 for opaque, 0 for invisible.
Definition at line 365 of file qgssymbolv2.h.
| void QgsSymbolV2RenderContext::setExpressionContextScope | ( | QgsExpressionContextScope * | contextScope | ) |
Set an expression scope for this symbol.
Will take ownership.
| contextScope | An expression scope for details about this symbol |
Definition at line 1001 of file qgssymbolv2.cpp.
|
inline |
Definition at line 373 of file qgssymbolv2.h.
|
inline |
Definition at line 360 of file qgssymbolv2.h.
| void QgsSymbolV2RenderContext::setOriginalValueVariable | ( | const QVariant & | value | ) |
Sets the original value variable value for data defined symbology.
| value | value for original value variable. This usually represents the symbol property value before any data defined overrides have been applied. |
Definition at line 971 of file qgssymbolv2.cpp.
|
inline |
Definition at line 357 of file qgssymbolv2.h.
|
inline |
Definition at line 371 of file qgssymbolv2.h.
|
inline |
Definition at line 368 of file qgssymbolv2.h.
1.8.8