18 #ifndef QGSVECTORFIELDSYMBOLLAYER_H 19 #define QGSVECTORFIELDSYMBOLLAYER_H 37 ClockwiseFromNorth = 0,
38 CounterclockwiseFromEast
81 double scale()
const {
return mScale; }
118 void convertPolarToCartesian(
double length,
double angle,
double& x,
double& y )
const;
121 #endif // QGSVECTORFIELDSYMBOLLAYER_H
virtual void renderPoint(QPointF point, QgsSymbolV2RenderContext &context)=0
Renders a marker at the specified point.
void setXAttribute(const QString &attribute)
QgsSymbolV2::OutputUnit outputUnit() const override
QgsSymbolV2 * subSymbol() override
OutputUnit
The unit of the output.
void setYAttribute(const QString &attribute)
virtual QgsSymbolLayerV2 * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
void setAngleUnits(AngleUnits units)
virtual QSet< QString > usedAttributes() const
Returns the set of attributes referenced by the layer.
AngleOrientation angleOrientation() const
QgsSymbolV2::OutputUnit distanceUnit() const
QString yAttribute() const
QMap< QString, QString > QgsStringMap
void setMapUnitScale(const QgsMapUnitScale &scale) override
QString layerType() const override
Returns a string that represents this layer type.
A symbol layer class for displaying displacement arrows based on point layer attributes.
const QgsMapUnitScale & distanceMapUnitScale() const
virtual QgsStringMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
void setDistanceMapUnitScale(const QgsMapUnitScale &scale)
virtual QColor color() const
The fill color.
AngleUnits angleUnits() const
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
QString xAttribute() const
void startRender(QgsSymbolV2RenderContext &context) override
virtual void toSld(QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const override
Writes the SLD element following the SLD v1.1 specs.
Struct for storing maximum and minimum scales for measurements in map units.
QgsMapUnitScale mapUnitScale() const override
void drawPreviewIcon(QgsSymbolV2RenderContext &context, QSize size) override
void setDistanceUnit(QgsSymbolV2::OutputUnit unit)
void setAngleOrientation(AngleOrientation orientation)
virtual void setColor(const QColor &color)
The fill color.
Abstract base class for marker symbol layers.
VectorFieldType vectorFieldType() const
QgsSymbolV2::SymbolType type() const
virtual bool setSubSymbol(QgsSymbolV2 *symbol)
set layer's subsymbol. takes ownership of the passed symbol
void setVectorFieldType(VectorFieldType type)
virtual void stopRender(QgsSymbolV2RenderContext &context)=0
void setOutputUnit(QgsSymbolV2::OutputUnit unit) override