#include <qgssymbolv2.h>
Public Member Functions |
| virtual | ~QgsSymbolV2 () |
| SymbolType | type () const |
| QgsSymbolLayerV2 * | symbolLayer (int layer) |
| int | symbolLayerCount () |
| bool | insertSymbolLayer (int index, QgsSymbolLayerV2 *layer) |
| | insert symbol layer to specified index
|
| bool | appendSymbolLayer (QgsSymbolLayerV2 *layer) |
| | append symbol layer at the end of the list
|
| bool | deleteSymbolLayer (int index) |
| | delete symbol layer at specified index
|
| QgsSymbolLayerV2 * | takeSymbolLayer (int index) |
| | remove symbol layer from the list and return pointer to it
|
| bool | changeSymbolLayer (int index, QgsSymbolLayerV2 *layer) |
| | delete layer at specified index and set a new one
|
| void | startRender (QgsRenderContext &context, const QgsFields *fields=0) |
| void | stopRender (QgsRenderContext &context) |
| void | setColor (const QColor &color) |
| QColor | color () const |
| void | drawPreviewIcon (QPainter *painter, QSize size, QgsRenderContext *customContext=0) |
| | Draw icon of the symbol that occupyies area given by size using the painter.
|
| QImage | asImage (QSize size, QgsRenderContext *customContext=0) |
| QImage | bigSymbolPreviewImage () |
| QString | dump () const |
| virtual QgsSymbolV2 * | clone () const =0 |
| void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
| QgsSymbolV2::OutputUnit | outputUnit () const |
| void | setOutputUnit (QgsSymbolV2::OutputUnit u) |
| QgsMapUnitScale | mapUnitScale () const |
| void | setMapUnitScale (const QgsMapUnitScale &scale) |
| qreal | alpha () const |
| | Get alpha transparency 1 for opaque, 0 for invisible.
|
| void | setAlpha (qreal alpha) |
| | Set alpha transparency 1 for opaque, 0 for invisible.
|
| void | setRenderHints (int hints) |
| int | renderHints () const |
| QSet< QString > | usedAttributes () const |
| void | setLayer (const QgsVectorLayer *layer) |
| const QgsVectorLayer * | layer () const |
Member Enumeration Documentation
- Enumerator:
| DataDefinedSizeScale |
|
| DataDefinedRotation |
|
Constructor & Destructor Documentation
| QgsSymbolV2::~QgsSymbolV2 |
( |
| ) |
|
|
virtual |
Member Function Documentation
| qreal QgsSymbolV2::alpha |
( |
| ) |
const |
|
inline |
Get alpha transparency 1 for opaque, 0 for invisible.
append symbol layer at the end of the list
| QImage QgsSymbolV2::asImage |
( |
QSize |
size, |
|
|
QgsRenderContext * |
customContext = 0 |
|
) |
| |
| QImage QgsSymbolV2::bigSymbolPreviewImage |
( |
| ) |
|
delete layer at specified index and set a new one
| QColor QgsSymbolV2::color |
( |
void |
| ) |
const |
return new default symbol for specified geometry type
| bool QgsSymbolV2::deleteSymbolLayer |
( |
int |
index | ) |
|
delete symbol layer at specified 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
| QString QgsSymbolV2::dump |
( |
| ) |
const |
insert symbol layer to specified index
| 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)
| int QgsSymbolV2::renderHints |
( |
| ) |
const |
|
inline |
| void QgsSymbolV2::setAlpha |
( |
qreal |
alpha | ) |
|
|
inline |
Set alpha transparency 1 for opaque, 0 for invisible.
| 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
| 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)
| int QgsSymbolV2::mRenderHints |
|
protected |
The documentation for this class was generated from the following files: