#include <qgssymbolv2.h>
Public Member Functions |
virtual | ~QgsSymbolV2 () |
qreal | alpha () const |
| Get alpha transparency 1 for opaque, 0 for invisible.
|
bool | appendSymbolLayer (QgsSymbolLayerV2 *layer) |
| append symbol layer at the end of the list
|
QImage | asImage (QSize size, QgsRenderContext *customContext=0) |
QImage | bigSymbolPreviewImage () |
bool | changeSymbolLayer (int index, QgsSymbolLayerV2 *layer) |
| delete layer at specified index and set a new one
|
virtual QgsSymbolV2 * | clone () const =0 |
QColor | color () const |
bool | deleteSymbolLayer (int index) |
| delete symbol layer at specified index
|
void | drawPreviewIcon (QPainter *painter, QSize size, QgsRenderContext *customContext=0) |
| Draw icon of the symbol that occupyies area given by size using the painter.
|
QString | dump () const |
bool | insertSymbolLayer (int index, QgsSymbolLayerV2 *layer) |
| insert symbol layer to specified index
|
const QgsVectorLayer * | layer () const |
QgsMapUnitScale | mapUnitScale () const |
QgsSymbolV2::OutputUnit | outputUnit () const |
int | renderHints () const |
void | setAlpha (qreal alpha) |
| Set alpha transparency 1 for opaque, 0 for invisible.
|
void | setColor (const QColor &color) |
void | setLayer (const QgsVectorLayer *layer) |
void | setMapUnitScale (const QgsMapUnitScale &scale) |
void | setOutputUnit (QgsSymbolV2::OutputUnit u) |
void | setRenderHints (int hints) |
void | startRender (QgsRenderContext &context, const QgsFields *fields=0) |
void | stopRender (QgsRenderContext &context) |
QgsSymbolLayerV2 * | symbolLayer (int layer) |
| Returns a specific symbol layers contained in the symbol.
|
int | symbolLayerCount () |
| Returns total number of symbol layers contained in the symbol.
|
QgsSymbolLayerV2List | symbolLayers () |
| Returns list of symbol layers contained in the symbol.
|
QgsSymbolLayerV2 * | takeSymbolLayer (int index) |
| remove symbol layer from the list and return pointer to it
|
void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
SymbolType | type () const |
QSet< QString > | usedAttributes () const |
Detailed Description
Definition at line 43 of file qgssymbolv2.h.
Member Enumeration Documentation
- Enumerator:
DataDefinedSizeScale |
|
DataDefinedRotation |
|
Definition at line 68 of file qgssymbolv2.h.
Constructor & Destructor Documentation
QgsSymbolV2::~QgsSymbolV2 |
( |
| ) |
|
|
virtual |
Member Function Documentation
qreal QgsSymbolV2::alpha |
( |
| ) |
const |
|
inline |
Get alpha transparency 1 for opaque, 0 for invisible.
Definition at line 151 of file qgssymbolv2.h.
append symbol layer at the end of the list
Definition at line 204 of file qgssymbolv2.cpp.
QImage QgsSymbolV2::asImage |
( |
QSize |
size, |
|
|
QgsRenderContext * |
customContext = 0 |
|
) |
| |
QImage QgsSymbolV2::bigSymbolPreviewImage |
( |
| ) |
|
delete layer at specified index and set a new one
Definition at line 234 of file qgssymbolv2.cpp.
QColor QgsSymbolV2::color |
( |
void |
| ) |
const |
return new default symbol for specified geometry type
Definition at line 126 of file qgssymbolv2.cpp.
bool QgsSymbolV2::deleteSymbolLayer |
( |
int |
index | ) |
|
void QgsSymbolV2::drawPreviewIcon |
( |
QPainter * |
painter, |
|
|
QSize |
size, |
|
|
QgsRenderContext * |
customContext = 0 |
|
) |
| |
Draw icon of the symbol that occupyies area given by size using the painter.
Optionally custom context may be given in order to get rendering of symbols that use map units right.
- Note
- customContext parameter added in 2.6
Definition at line 286 of file qgssymbolv2.cpp.
QString QgsSymbolV2::dump |
( |
| ) |
const |
bool QgsSymbolV2::isSymbolLayerCompatible |
( |
SymbolType |
t | ) |
|
|
protected |
check whether a symbol layer type can be used within the symbol (marker-marker, line-line, fill-fill/line)
Definition at line 182 of file qgssymbolv2.cpp.
int QgsSymbolV2::renderHints |
( |
| ) |
const |
|
inline |
void QgsSymbolV2::setAlpha |
( |
qreal |
alpha | ) |
|
|
inline |
Set alpha transparency 1 for opaque, 0 for invisible.
Definition at line 153 of file qgssymbolv2.h.
void QgsSymbolV2::setColor |
( |
const QColor & |
color | ) |
|
void QgsSymbolV2::setRenderHints |
( |
int |
hints | ) |
|
|
inline |
int QgsSymbolV2::symbolLayerCount |
( |
| ) |
|
|
inline |
remove symbol layer from the list and return pointer to it
Definition at line 225 of file qgssymbolv2.cpp.
void QgsSymbolV2::toSld |
( |
QDomDocument & |
doc, |
|
|
QDomElement & |
element, |
|
|
QgsStringMap |
props |
|
) |
| const |
QSet< QString > QgsSymbolV2::usedAttributes |
( |
| ) |
const |
Member Data Documentation
qreal QgsSymbolV2::mAlpha |
|
protected |
Symbol opacity (in the range 0 - 1)
Definition at line 176 of file qgssymbolv2.h.
int QgsSymbolV2::mRenderHints |
|
protected |
The documentation for this class was generated from the following files: