QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
QgsFontMarkerSymbolLayerV2 Class Reference

#include <qgsmarkersymbollayerv2.h>

Inheritance diagram for QgsFontMarkerSymbolLayerV2:
Inheritance graph
[legend]
Collaboration diagram for QgsFontMarkerSymbolLayerV2:
Collaboration graph
[legend]

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
QgsSymbolLayerV2clone () const
void writeSldMarker (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
QString fontFamily () const
void setFontFamily (QString family)
QChar character () const
void setCharacter (QChar ch)
- Public Member Functions inherited from QgsMarkerSymbolLayerV2
void drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size)
void setAngle (double angle)
double angle () const
void setSize (double size)
double size () const
void setScaleMethod (QgsSymbolV2::ScaleMethod scaleMethod)
QgsSymbolV2::ScaleMethod scaleMethod () const
void setOffset (QPointF offset)
QPointF offset ()
virtual void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
void setOffsetUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit offsetUnit () const
void setSizeUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit sizeUnit () const
virtual void setOutputUnit (QgsSymbolV2::OutputUnit unit)
virtual QgsSymbolV2::OutputUnit outputUnit () const
- Public Member Functions inherited from QgsSymbolLayerV2
virtual void setColor (const QColor &color)
virtual QColor color () const
virtual ~QgsSymbolLayerV2 ()
virtual QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
virtual QgsSymbolV2subSymbol ()
virtual bool setSubSymbol (QgsSymbolV2 *symbol)
QgsSymbolV2::SymbolType type () const
void setLocked (bool locked)
bool isLocked () const
void setRenderingPass (int renderingPass)
int renderingPass () const
virtual QSet< QString > usedAttributes () const
virtual const QgsExpressiondataDefinedProperty (const QString &property) const
virtual QString dataDefinedPropertyString (const QString &property) const
virtual void setDataDefinedProperty (const QString &property, const QString &expressionString)
virtual void removeDataDefinedProperty (const QString &property)
virtual void removeDataDefinedProperties ()

Static Public Member Functions

static QgsSymbolLayerV2create (const QgsStringMap &properties=QgsStringMap())
static QgsSymbolLayerV2createFromSld (QDomElement &element)

Protected Attributes

QString mFontFamily
QChar mChr
QPointF mChrOffset
QFont mFont
double mOrigSize
- Protected Attributes inherited from QgsMarkerSymbolLayerV2
double mAngle
double mSize
QgsSymbolV2::OutputUnit mSizeUnit
QPointF mOffset
QgsSymbolV2::OutputUnit mOffsetUnit
QgsSymbolV2::ScaleMethod mScaleMethod
- Protected Attributes inherited from QgsSymbolLayerV2
QgsSymbolV2::SymbolType mType
bool mLocked
QColor mColor
int mRenderingPass
QMap< QString, QgsExpression * > mDataDefinedProperties

Additional Inherited Members

- Protected Member Functions inherited from QgsMarkerSymbolLayerV2
 QgsMarkerSymbolLayerV2 (bool locked=false)
void markerOffset (QgsSymbolV2RenderContext &context, double &offsetX, double &offsetY)
- Static Protected Member Functions inherited from QgsMarkerSymbolLayerV2
static QPointF _rotatedOffset (const QPointF &offset, double angle)
- Static Protected Attributes inherited from QgsSymbolLayerV2
static const bool selectionIsOpaque = true
static const bool selectFillBorder = false
static const bool selectFillStyle = false

Detailed Description

Definition at line 184 of file qgsmarkersymbollayerv2.h.

Constructor & Destructor Documentation

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 
)

Member Function Documentation

QChar QgsFontMarkerSymbolLayerV2::character ( ) const
inline

Definition at line 219 of file qgsmarkersymbollayerv2.h.

QgsSymbolLayerV2 * QgsFontMarkerSymbolLayerV2::clone ( ) const
virtual
QgsSymbolLayerV2 * QgsFontMarkerSymbolLayerV2::create ( const QgsStringMap properties = QgsStringMap())
static
QgsSymbolLayerV2 * QgsFontMarkerSymbolLayerV2::createFromSld ( QDomElement &  element)
static
QString QgsFontMarkerSymbolLayerV2::fontFamily ( ) const
inline

Definition at line 216 of file qgsmarkersymbollayerv2.h.

Referenced by create(), createFromSld(), and QgsFontMarkerSymbolLayerV2().

QString QgsFontMarkerSymbolLayerV2::layerType ( ) const
virtual

Implements QgsSymbolLayerV2.

Definition at line 1151 of file qgsmarkersymbollayerv2.cpp.

QgsStringMap QgsFontMarkerSymbolLayerV2::properties ( ) const
virtual
void QgsFontMarkerSymbolLayerV2::renderPoint ( const QPointF &  point,
QgsSymbolV2RenderContext context 
)
virtual
void QgsFontMarkerSymbolLayerV2::setCharacter ( QChar  ch)
inline

Definition at line 220 of file qgsmarkersymbollayerv2.h.

void QgsFontMarkerSymbolLayerV2::setFontFamily ( QString  family)
inline

Definition at line 217 of file qgsmarkersymbollayerv2.h.

void QgsFontMarkerSymbolLayerV2::startRender ( QgsSymbolV2RenderContext context)
virtual
void QgsFontMarkerSymbolLayerV2::stopRender ( QgsSymbolV2RenderContext context)
virtual

Implements QgsSymbolLayerV2.

Definition at line 1166 of file qgsmarkersymbollayerv2.cpp.

void QgsFontMarkerSymbolLayerV2::writeSldMarker ( QDomDocument &  doc,
QDomElement &  element,
QgsStringMap  props 
) const
virtual

Member Data Documentation

QChar QgsFontMarkerSymbolLayerV2::mChr
protected
QPointF QgsFontMarkerSymbolLayerV2::mChrOffset
protected

Definition at line 227 of file qgsmarkersymbollayerv2.h.

Referenced by renderPoint(), and startRender().

QFont QgsFontMarkerSymbolLayerV2::mFont
protected

Definition at line 228 of file qgsmarkersymbollayerv2.h.

Referenced by renderPoint(), and startRender().

QString QgsFontMarkerSymbolLayerV2::mFontFamily
protected
double QgsFontMarkerSymbolLayerV2::mOrigSize
protected

Definition at line 229 of file qgsmarkersymbollayerv2.h.

Referenced by renderPoint(), and startRender().


The documentation for this class was generated from the following files: