Quantum GIS API Documentation
1.7.4
|
#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 658 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2::color(), fontFamily(), QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, QgsMarkerSymbolLayerV2::mOffset, and QgsMarkerSymbolLayerV2::mSize.
QChar QgsFontMarkerSymbolLayerV2::character | ( | ) | const [inline] |
Definition at line 171 of file qgsmarkersymbollayerv2.h.
QgsSymbolLayerV2 * QgsFontMarkerSymbolLayerV2::clone | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 752 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mSize, QgsFontMarkerSymbolLayerV2(), and QgsMarkerSymbolLayerV2::setOffset().
QgsSymbolLayerV2 * QgsFontMarkerSymbolLayerV2::create | ( | const QgsStringMap & | properties = QgsStringMap() | ) | [static] |
Definition at line 668 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodePoint(), DEFAULT_FONTMARKER_ANGLE, DEFAULT_FONTMARKER_CHR, DEFAULT_FONTMARKER_COLOR, DEFAULT_FONTMARKER_FONT, DEFAULT_FONTMARKER_SIZE, fontFamily(), QgsFontMarkerSymbolLayerV2(), and QgsMarkerSymbolLayerV2::setOffset().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
QString QgsFontMarkerSymbolLayerV2::fontFamily | ( | ) | const [inline] |
Definition at line 168 of file qgsmarkersymbollayerv2.h.
Referenced by create(), and QgsFontMarkerSymbolLayerV2().
QString QgsFontMarkerSymbolLayerV2::layerType | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 693 of file qgsmarkersymbollayerv2.cpp.
QgsStringMap QgsFontMarkerSymbolLayerV2::properties | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 740 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2Utils::encodePoint(), QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, QgsMarkerSymbolLayerV2::mOffset, and QgsMarkerSymbolLayerV2::mSize.
void QgsFontMarkerSymbolLayerV2::renderPoint | ( | const QPointF & | point, |
QgsSymbolV2RenderContext & | context | ||
) | [virtual] |
Implements QgsMarkerSymbolLayerV2.
Definition at line 712 of file qgsmarkersymbollayerv2.cpp.
References _rotatedOffset(), QgsSymbolV2RenderContext::alpha(), QgsSymbolV2::DataDefinedSizeScale, QgsMarkerSymbolLayerV2::mAngle, mChr, mChrOffset, QgsSymbolLayerV2::mColor, mFont, QgsMarkerSymbolLayerV2::mOffset, mOrigSize, QgsMarkerSymbolLayerV2::mSize, QgsSymbolV2RenderContext::outputLineWidth(), QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolV2RenderContext::renderHints(), QgsSymbolV2RenderContext::selected(), and QgsSymbolV2RenderContext::selectionColor().
void QgsFontMarkerSymbolLayerV2::setCharacter | ( | QChar | ch | ) | [inline] |
Definition at line 172 of file qgsmarkersymbollayerv2.h.
void QgsFontMarkerSymbolLayerV2::setFontFamily | ( | QString | family | ) | [inline] |
Definition at line 169 of file qgsmarkersymbollayerv2.h.
void QgsFontMarkerSymbolLayerV2::startRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 698 of file qgsmarkersymbollayerv2.cpp.
References mChr, mChrOffset, mFont, mFontFamily, mOrigSize, QgsMarkerSymbolLayerV2::mSize, and QgsSymbolV2RenderContext::outputLineWidth().
void QgsFontMarkerSymbolLayerV2::stopRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 708 of file qgsmarkersymbollayerv2.cpp.
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().
QString QgsFontMarkerSymbolLayerV2::mFontFamily [protected] |
Definition at line 176 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), QgsFontMarkerSymbolLayerV2(), and startRender().
double QgsFontMarkerSymbolLayerV2::mOrigSize [protected] |
Definition at line 181 of file qgsmarkersymbollayerv2.h.
Referenced by renderPoint(), and startRender().