QGIS API Documentation
2.8.2-Wien
|
#include <qgssymbollayerv2.h>
Public Types | |
enum | HorizontalAnchorPoint { Left, HCenter, Right } |
enum | VerticalAnchorPoint { Top, VCenter, Bottom } |
Public Member Functions | |
double | angle () const |
void | drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size) override |
HorizontalAnchorPoint | horizontalAnchorPoint () const |
QgsMapUnitScale | mapUnitScale () const override |
QPointF | offset () |
const QgsMapUnitScale & | offsetMapUnitScale () const |
QgsSymbolV2::OutputUnit | offsetUnit () const |
QgsSymbolV2::OutputUnit | outputUnit () const override |
virtual void | renderPoint (const QPointF &point, QgsSymbolV2RenderContext &context)=0 |
QgsSymbolV2::ScaleMethod | scaleMethod () const |
void | setAngle (double angle) |
void | setHorizontalAnchorPoint (HorizontalAnchorPoint h) |
void | setMapUnitScale (const QgsMapUnitScale &scale) override |
void | setOffset (QPointF offset) |
void | setOffsetMapUnitScale (const QgsMapUnitScale &scale) |
void | setOffsetUnit (QgsSymbolV2::OutputUnit unit) |
void | setOutputUnit (QgsSymbolV2::OutputUnit unit) override |
void | setScaleMethod (QgsSymbolV2::ScaleMethod scaleMethod) |
void | setSize (double size) |
void | setSizeMapUnitScale (const QgsMapUnitScale &scale) |
void | setSizeUnit (QgsSymbolV2::OutputUnit unit) |
void | setVerticalAnchorPoint (VerticalAnchorPoint v) |
double | size () const |
const QgsMapUnitScale & | sizeMapUnitScale () const |
QgsSymbolV2::OutputUnit | sizeUnit () const |
void | startRender (QgsSymbolV2RenderContext &context) override |
virtual void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const override |
VerticalAnchorPoint | verticalAnchorPoint () const |
virtual void | writeSldMarker (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
Public Member Functions inherited from QgsSymbolLayerV2 | |
virtual | ~QgsSymbolLayerV2 () |
virtual QgsSymbolLayerV2 * | clone () const =0 |
virtual QColor | color () const |
virtual const QgsExpression * | dataDefinedProperty (const QString &property) const |
virtual QString | dataDefinedPropertyString (const QString &property) const |
virtual QColor | dxfBrushColor (const QgsSymbolV2RenderContext &context) const |
virtual Qt::BrushStyle | dxfBrushStyle () const |
virtual QColor | dxfColor (const QgsSymbolV2RenderContext &context) const |
virtual QVector< qreal > | dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) const |
virtual double | dxfOffset (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const |
virtual Qt::PenStyle | dxfPenStyle () const |
virtual double | dxfWidth (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const |
virtual double | estimateMaxBleed () const |
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape. | |
virtual QColor | fillColor () const |
Get fill color. | |
bool | hasDataDefinedProperties () const |
bool | isLocked () const |
virtual QString | layerType () const =0 |
virtual QString | ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const |
virtual QColor | outlineColor () const |
Get outline color. | |
virtual QgsStringMap | properties () const =0 |
virtual void | removeDataDefinedProperties () |
virtual void | removeDataDefinedProperty (const QString &property) |
int | renderingPass () const |
virtual void | setColor (const QColor &color) |
virtual void | setDataDefinedProperty (const QString &property, const QString &expressionString) |
virtual void | setFillColor (const QColor &color) |
Set fill color. | |
void | setLocked (bool locked) |
virtual void | setOutlineColor (const QColor &color) |
Set outline color. | |
void | setRenderingPass (int renderingPass) |
virtual bool | setSubSymbol (QgsSymbolV2 *symbol) |
virtual void | stopRender (QgsSymbolV2RenderContext &context)=0 |
virtual QgsSymbolV2 * | subSymbol () |
QgsSymbolV2::SymbolType | type () const |
virtual QSet< QString > | usedAttributes () const |
virtual bool | writeDxf (QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, const QgsSymbolV2RenderContext *context, const QgsFeature *f, const QPointF &shift=QPointF(0.0, 0.0)) const |
Protected Member Functions | |
QgsMarkerSymbolLayerV2 (bool locked=false) | |
void | markerOffset (const QgsSymbolV2RenderContext &context, double &offsetX, double &offsetY) const |
void | markerOffset (const QgsSymbolV2RenderContext &context, double width, double height, double &offsetX, double &offsetY) const |
void | markerOffset (const QgsSymbolV2RenderContext &context, double width, double height, QgsSymbolV2::OutputUnit widthUnit, QgsSymbolV2::OutputUnit heightUnit, double &offsetX, double &offsetY, const QgsMapUnitScale &widthMapUnitScale, const QgsMapUnitScale &heightMapUnitScale) const |
Protected Member Functions inherited from QgsSymbolLayerV2 | |
QgsSymbolLayerV2 (QgsSymbolV2::SymbolType type, bool locked=false) | |
void | copyDataDefinedProperties (QgsSymbolLayerV2 *destLayer) const |
Copies data defined properties of this layer to another symbol layer. | |
virtual QgsExpression * | expression (const QString &property) const |
virtual void | prepareExpressions (const QgsFields *fields, double scale=-1.0) |
void | saveDataDefinedProperties (QgsStringMap &stringMap) const |
Saves data defined properties to string map. |
Static Protected Member Functions | |
static QPointF | _rotatedOffset (const QPointF &offset, double angle) |
Protected Attributes | |
double | mAngle |
HorizontalAnchorPoint | mHorizontalAnchorPoint |
QPointF | mOffset |
QgsMapUnitScale | mOffsetMapUnitScale |
QgsSymbolV2::OutputUnit | mOffsetUnit |
QgsSymbolV2::ScaleMethod | mScaleMethod |
double | mSize |
QgsMapUnitScale | mSizeMapUnitScale |
QgsSymbolV2::OutputUnit | mSizeUnit |
VerticalAnchorPoint | mVerticalAnchorPoint |
Protected Attributes inherited from QgsSymbolLayerV2 | |
QColor | mColor |
QMap< QString, QgsExpression * > | mDataDefinedProperties |
bool | mLocked |
int | mRenderingPass |
QgsSymbolV2::SymbolType | mType |
Additional Inherited Members | |
Static Protected Attributes inherited from QgsSymbolLayerV2 | |
static const bool | selectFillBorder = false |
static const bool | selectFillStyle = false |
static const bool | selectionIsOpaque = true |
Definition at line 161 of file qgssymbollayerv2.h.
Definition at line 165 of file qgssymbollayerv2.h.
Definition at line 172 of file qgssymbollayerv2.h.
|
protected |
Definition at line 213 of file qgssymbollayerv2.cpp.
|
staticprotected |
Definition at line 324 of file qgssymbollayerv2.cpp.
|
inline |
Definition at line 186 of file qgssymbollayerv2.h.
|
overridevirtual |
Implements QgsSymbolLayerV2.
Reimplemented in QgsVectorFieldSymbolLayer.
Definition at line 251 of file qgssymbollayerv2.cpp.
|
inline |
Definition at line 221 of file qgssymbollayerv2.h.
|
overridevirtual |
Reimplemented from QgsSymbolLayerV2.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsEllipseSymbolLayerV2, and QgsVectorFieldSymbolLayer.
Definition at line 384 of file qgssymbollayerv2.cpp.
|
protected |
Definition at line 258 of file qgssymbollayerv2.cpp.
|
protected |
Definition at line 263 of file qgssymbollayerv2.cpp.
|
protected |
Definition at line 268 of file qgssymbollayerv2.cpp.
|
inline |
Definition at line 195 of file qgssymbollayerv2.h.
|
inline |
Definition at line 206 of file qgssymbollayerv2.h.
|
inline |
Definition at line 203 of file qgssymbollayerv2.h.
|
overridevirtual |
Reimplemented from QgsSymbolLayerV2.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsEllipseSymbolLayerV2, and QgsVectorFieldSymbolLayer.
Definition at line 369 of file qgssymbollayerv2.cpp.
|
pure virtual |
|
inline |
Definition at line 192 of file qgssymbollayerv2.h.
|
inline |
Definition at line 185 of file qgssymbollayerv2.h.
|
inline |
Definition at line 220 of file qgssymbollayerv2.h.
|
overridevirtual |
Reimplemented from QgsSymbolLayerV2.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsEllipseSymbolLayerV2, and QgsVectorFieldSymbolLayer.
Definition at line 378 of file qgssymbollayerv2.cpp.
|
inline |
Definition at line 194 of file qgssymbollayerv2.h.
|
inline |
Definition at line 205 of file qgssymbollayerv2.h.
|
inline |
Definition at line 202 of file qgssymbollayerv2.h.
|
overridevirtual |
Reimplemented from QgsSymbolLayerV2.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsEllipseSymbolLayerV2, and QgsVectorFieldSymbolLayer.
Definition at line 363 of file qgssymbollayerv2.cpp.
|
inline |
Definition at line 191 of file qgssymbollayerv2.h.
|
inline |
Definition at line 188 of file qgssymbollayerv2.h.
|
inline |
Definition at line 211 of file qgssymbollayerv2.h.
|
inline |
Definition at line 208 of file qgssymbollayerv2.h.
|
inline |
Definition at line 223 of file qgssymbollayerv2.h.
|
inline |
Definition at line 189 of file qgssymbollayerv2.h.
|
inline |
Definition at line 212 of file qgssymbollayerv2.h.
|
inline |
Definition at line 209 of file qgssymbollayerv2.h.
|
overridevirtual |
Implements QgsSymbolLayerV2.
Reimplemented in QgsFontMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleMarkerSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 243 of file qgssymbollayerv2.cpp.
|
overridevirtual |
Reimplemented from QgsSymbolLayerV2.
Reimplemented in QgsVectorFieldSymbolLayer, and QgsEllipseSymbolLayerV2.
Definition at line 493 of file qgssymbollayerv2.cpp.
|
inline |
Definition at line 224 of file qgssymbollayerv2.h.
|
inlinevirtual |
Reimplemented in QgsFontMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 199 of file qgssymbollayerv2.h.
|
protected |
Definition at line 242 of file qgssymbollayerv2.h.
|
protected |
Definition at line 250 of file qgssymbollayerv2.h.
|
protected |
Definition at line 246 of file qgssymbollayerv2.h.
|
protected |
Definition at line 248 of file qgssymbollayerv2.h.
|
protected |
Definition at line 247 of file qgssymbollayerv2.h.
|
protected |
Definition at line 249 of file qgssymbollayerv2.h.
|
protected |
Definition at line 243 of file qgssymbollayerv2.h.
|
protected |
Definition at line 245 of file qgssymbollayerv2.h.
|
protected |
Definition at line 244 of file qgssymbollayerv2.h.
|
protected |
Definition at line 251 of file qgssymbollayerv2.h.