QGIS API Documentation
2.8.2-Wien
|
#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=0, const QgsFields *fields=0, const QgsMapUnitScale &mapUnitScale=QgsMapUnitScale()) | |
~QgsSymbolV2RenderContext () | |
qreal | alpha () const |
Get alpha transparency 1 for opaque, 0 for invisible. | |
const QgsFeature * | feature () const |
Current feature being rendered - may be null. | |
const QgsFields * | fields () const |
Fields of the layer. | |
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. | |
void | setFeature (const QgsFeature *f) |
void | setMapUnitScale (const QgsMapUnitScale &scale) |
void | setOutputUnit (QgsSymbolV2::OutputUnit u) |
void | setRenderHints (int hints) |
void | setSelected (bool selected) |
Definition at line 185 of file qgssymbolv2.h.
QgsSymbolV2RenderContext::QgsSymbolV2RenderContext | ( | QgsRenderContext & | c, |
QgsSymbolV2::OutputUnit | u, | ||
qreal | alpha = 1.0 , |
||
bool | selected = false , |
||
int | renderHints = 0 , |
||
const QgsFeature * | f = 0 , |
||
const QgsFields * | fields = 0 , |
||
const QgsMapUnitScale & | mapUnitScale = QgsMapUnitScale() |
||
) |
Definition at line 428 of file qgssymbolv2.cpp.
QgsSymbolV2RenderContext::~QgsSymbolV2RenderContext | ( | ) |
Definition at line 434 of file qgssymbolv2.cpp.
|
inline |
Get alpha transparency 1 for opaque, 0 for invisible.
Definition at line 201 of file qgssymbolv2.h.
|
inline |
Current feature being rendered - may be null.
Definition at line 213 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 219 of file qgssymbolv2.h.
|
inline |
Definition at line 197 of file qgssymbolv2.h.
QgsSymbolV2RenderContext & QgsSymbolV2RenderContext::operator= | ( | const QgsSymbolV2RenderContext & | ) |
Definition at line 450 of file qgssymbolv2.cpp.
double QgsSymbolV2RenderContext::outputLineWidth | ( | double | width | ) | const |
Definition at line 440 of file qgssymbolv2.cpp.
double QgsSymbolV2RenderContext::outputPixelSize | ( | double | size | ) | const |
Definition at line 445 of file qgssymbolv2.cpp.
|
inline |
Definition at line 194 of file qgssymbolv2.h.
|
inline |
Definition at line 191 of file qgssymbolv2.h.
|
inline |
Definition at line 192 of file qgssymbolv2.h.
|
inline |
Definition at line 208 of file qgssymbolv2.h.
|
inline |
Definition at line 205 of file qgssymbolv2.h.
|
inline |
Set alpha transparency 1 for opaque, 0 for invisible.
Definition at line 203 of file qgssymbolv2.h.
|
inline |
Definition at line 211 of file qgssymbolv2.h.
|
inline |
Definition at line 198 of file qgssymbolv2.h.
|
inline |
Definition at line 195 of file qgssymbolv2.h.
|
inline |
Definition at line 209 of file qgssymbolv2.h.
|
inline |
Definition at line 206 of file qgssymbolv2.h.