#include <qgsmarkersymbollayerv2.h>
Public Member Functions | |
QgsFontMarkerSymbolLayerV2 (QString fontFamily=DEFAULT_FONTMARKER_FONT, QChar chr=DEFAULT_FONTMARKER_CHR, double pointSize=DEFAULT_FONTMARKER_SIZE, QColor color=DEFAULT_FONTMARKER_COLOR, double angle=DEFAULT_FONTMARKER_ANGLE) | |
QString | layerType () const |
void | startRender (QgsSymbolV2RenderContext &context) |
void | stopRender (QgsSymbolV2RenderContext &context) |
void | renderPoint (const QPointF &point, QgsSymbolV2RenderContext &context) |
QgsStringMap | properties () const |
QgsSymbolLayerV2 * | clone () const |
QString | fontFamily () const |
void | setFontFamily (QString family) |
QChar | character () const |
void | setCharacter (QChar ch) |
Static Public Member Functions | |
static QgsSymbolLayerV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
Protected Attributes | |
QString | mFontFamily |
QChar | mChr |
QPointF | mChrOffset |
QFont | mFont |
double | mOrigSize |
Definition at line 139 of file qgsmarkersymbollayerv2.h.
QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2 | ( | QString | fontFamily = DEFAULT_FONTMARKER_FONT , |
|
QChar | chr = DEFAULT_FONTMARKER_CHR , |
|||
double | pointSize = DEFAULT_FONTMARKER_SIZE , |
|||
QColor | color = DEFAULT_FONTMARKER_COLOR , |
|||
double | angle = DEFAULT_FONTMARKER_ANGLE | |||
) |
Definition at line 625 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, and QgsMarkerSymbolLayerV2::mSize.
QgsSymbolLayerV2 * QgsFontMarkerSymbolLayerV2::create | ( | const QgsStringMap & | properties = QgsStringMap() |
) | [static] |
Definition at line 634 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeColor(), DEFAULT_FONTMARKER_ANGLE, DEFAULT_FONTMARKER_CHR, DEFAULT_FONTMARKER_COLOR, DEFAULT_FONTMARKER_FONT, DEFAULT_FONTMARKER_SIZE, fontFamily(), and QgsFontMarkerSymbolLayerV2().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
QString QgsFontMarkerSymbolLayerV2::layerType | ( | ) | const [virtual] |
void QgsFontMarkerSymbolLayerV2::startRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 661 of file qgsmarkersymbollayerv2.cpp.
References mChr, mChrOffset, mFont, mFontFamily, mOrigSize, QgsMarkerSymbolLayerV2::mSize, and QgsSymbolV2RenderContext::outputLineWidth().
void QgsFontMarkerSymbolLayerV2::stopRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
void QgsFontMarkerSymbolLayerV2::renderPoint | ( | const QPointF & | point, | |
QgsSymbolV2RenderContext & | context | |||
) | [virtual] |
Implements QgsMarkerSymbolLayerV2.
Definition at line 675 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), QgsSymbolV2::DataDefinedSizeScale, QgsMarkerSymbolLayerV2::mAngle, mChr, mChrOffset, QgsSymbolLayerV2::mColor, mFont, mOrigSize, QgsMarkerSymbolLayerV2::mSize, QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolV2RenderContext::renderHints(), QgsSymbolV2RenderContext::selected(), and QgsSymbolV2RenderContext::selectionColor().
QgsStringMap QgsFontMarkerSymbolLayerV2::properties | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 699 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeColor(), QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, and QgsMarkerSymbolLayerV2::mSize.
QgsSymbolLayerV2 * QgsFontMarkerSymbolLayerV2::clone | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 710 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, QgsMarkerSymbolLayerV2::mSize, and QgsFontMarkerSymbolLayerV2().
QString QgsFontMarkerSymbolLayerV2::fontFamily | ( | ) | const [inline] |
void QgsFontMarkerSymbolLayerV2::setFontFamily | ( | QString | family | ) | [inline] |
Definition at line 169 of file qgsmarkersymbollayerv2.h.
QChar QgsFontMarkerSymbolLayerV2::character | ( | ) | const [inline] |
Definition at line 171 of file qgsmarkersymbollayerv2.h.
void QgsFontMarkerSymbolLayerV2::setCharacter | ( | QChar | ch | ) | [inline] |
Definition at line 172 of file qgsmarkersymbollayerv2.h.
QString QgsFontMarkerSymbolLayerV2::mFontFamily [protected] |
Definition at line 176 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), QgsFontMarkerSymbolLayerV2(), and startRender().
QChar QgsFontMarkerSymbolLayerV2::mChr [protected] |
Definition at line 177 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), QgsFontMarkerSymbolLayerV2(), renderPoint(), and startRender().
QPointF QgsFontMarkerSymbolLayerV2::mChrOffset [protected] |
Definition at line 179 of file qgsmarkersymbollayerv2.h.
Referenced by renderPoint(), and startRender().
QFont QgsFontMarkerSymbolLayerV2::mFont [protected] |
Definition at line 180 of file qgsmarkersymbollayerv2.h.
Referenced by renderPoint(), and startRender().
double QgsFontMarkerSymbolLayerV2::mOrigSize [protected] |
Definition at line 181 of file qgsmarkersymbollayerv2.h.
Referenced by renderPoint(), and startRender().