15 #ifndef QGSELLIPSESYMBOLLAYERV2_H 16 #define QGSELLIPSESYMBOLLAYERV2_H 18 #define DEFAULT_ELLIPSE_JOINSTYLE Qt::MiterJoin 21 #include <QPainterPath> 59 void setOutlineStyle( Qt::PenStyle outlineStyle ) { mOutlineStyle = outlineStyle; }
108 double mSymbolHeight;
112 Qt::PenStyle mOutlineStyle;
113 Qt::PenJoinStyle mPenJoinStyle;
114 double mOutlineWidth;
132 void calculateOffsetAndRotation(
QgsSymbolV2RenderContext& context,
double scaledWidth,
double scaledHeight,
bool& hasDataDefinedRotation,
QPointF& offset,
double&
angle )
const;
135 #endif // QGSELLIPSESYMBOLLAYERV2_H virtual void renderPoint(QPointF point, QgsSymbolV2RenderContext &context)=0
Renders a marker at the specified point.
Class for parsing and evaluation of expressions (formerly called "search strings").
void setSymbolHeight(double h)
void setSymbolWidthUnit(QgsSymbolV2::OutputUnit unit)
QColor fillColor() const override
Get fill color.
QgsSymbolV2::OutputUnit outputUnit() const override
OutputUnit
The unit of the output.
virtual QgsSymbolLayerV2 * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
void setSymbolWidth(double w)
virtual QRectF bounds(QPointF point, QgsSymbolV2RenderContext &context)
Returns the approximate bounding box of the marker symbol layer, taking into account any data defined...
void setOutlineWidthUnit(QgsSymbolV2::OutputUnit unit)
const QgsMapUnitScale & symbolHeightMapUnitScale() const
virtual bool writeDxf(QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolV2RenderContext &context, QPointF shift=QPointF(0.0, 0.0)) const
write as DXF
const QgsMapUnitScale & symbolWidthMapUnitScale() const
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QColor outlineColor() const override
Get outline color.
A symbol layer for rendering objects with major and minor axis (e.g.
QMap< QString, QString > QgsStringMap
double symbolHeight() const
void setMapUnitScale(const QgsMapUnitScale &scale) override
void setSymbolHeightMapUnitScale(const QgsMapUnitScale &scale)
QgsSymbolV2::OutputUnit symbolWidthUnit() const
QgsSymbolV2::OutputUnit outlineWidthUnit() const
double outlineWidth() const
virtual QgsStringMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
Qt::PenStyle outlineStyle() const
void setOutlineStyle(Qt::PenStyle outlineStyle)
void setSymbolName(const QString &name)
virtual QColor color() const
The fill color.
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 symbolName() const
virtual QString layerType() const =0
Returns a string that represents this layer type.
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.
QgsSymbolV2::OutputUnit symbolHeightUnit() const
virtual void writeSldMarker(QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const
Writes the symbol layer definition as a SLD XML element.
Struct for storing maximum and minimum scales for measurements in map units.
QgsMapUnitScale mapUnitScale() const override
void setSymbolWidthMapUnitScale(const QgsMapUnitScale &scale)
double symbolWidth() const
Qt::PenJoinStyle penJoinStyle() const
Get outline join style.
void setOutlineColor(const QColor &c) override
Set outline color.
const QgsMapUnitScale & outlineWidthMapUnitScale() const
virtual void setColor(const QColor &color)
The fill color.
Abstract base class for marker symbol layers.
void setPenJoinStyle(Qt::PenJoinStyle style)
Set outline join style.
virtual void stopRender(QgsSymbolV2RenderContext &context)=0
void setFillColor(const QColor &c) override
Set fill color.
void setSymbolHeightUnit(QgsSymbolV2::OutputUnit unit)
void setOutputUnit(QgsSymbolV2::OutputUnit unit) override
void setOutlineWidthMapUnitScale(const QgsMapUnitScale &scale)
void setOutlineWidth(double w)