16 #ifndef QGSLINESYMBOLLAYERV2_H 17 #define QGSLINESYMBOLLAYERV2_H 26 #define DEFAULT_SIMPLELINE_COLOR QColor(0,0,0) 27 #define DEFAULT_SIMPLELINE_WIDTH DEFAULT_LINE_WIDTH 28 #define DEFAULT_SIMPLELINE_PENSTYLE Qt::SolidLine 29 #define DEFAULT_SIMPLELINE_JOINSTYLE Qt::BevelJoin 30 #define DEFAULT_SIMPLELINE_CAPSTYLE Qt::SquareCap 79 Qt::PenStyle
penStyle()
const {
return mPenStyle; }
137 #define DEFAULT_MARKERLINE_ROTATE true 138 #define DEFAULT_MARKERLINE_INTERVAL 3 209 virtual void setWidth(
double width )
override;
210 virtual double width()
const override;
319 double markerAngle(
const QPolygonF& points,
bool isRing,
int vertex );
void setIntervalUnit(QgsSymbolV2::OutputUnit unit)
Class for parsing and evaluation of expressions (formerly called "search strings").
Qt::PenCapStyle penCapStyle() const
#define DEFAULT_SIMPLELINE_PENSTYLE
#define DEFAULT_MARKERLINE_ROTATE
OutputUnit
The unit of the output.
Placement placement() const
The placement of the markers.
virtual QgsSymbolLayerV2 * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
A container class for data source field mapping or expression.
virtual Qt::PenStyle dxfPenStyle() const
get pen style
Qt::PenJoinStyle penJoinStyle() const
virtual QColor dxfColor(QgsSymbolV2RenderContext &context) const
get color
#define DEFAULT_MARKERLINE_INTERVAL
virtual QSet< QString > usedAttributes() const
Returns the set of attributes referenced by the layer.
void setCustomDashPatternUnit(QgsSymbolV2::OutputUnit unit)
bool drawInsidePolygon() const
Placement
Defines how/where the marker should be placed on the line.
QgsMapUnitScale mCustomDashPatternMapUnitScale
Qt::PenStyle penStyle() const
void setUseCustomDashPattern(bool b)
QgsSymbolV2::OutputUnit outputUnit() const override
void setPenJoinStyle(Qt::PenJoinStyle style)
Qt::PenCapStyle mPenCapStyle
void setIntervalMapUnitScale(const QgsMapUnitScale &scale)
QMap< QString, QString > QgsStringMap
virtual void toSld(QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const
Writes the SLD element following the SLD v1.1 specs.
QgsMapUnitScale mOffsetAlongLineMapUnitScale
const QgsMapUnitScale & offsetAlongLineMapUnitScale() const
Returns the map unit scale used for calculating the offset in map units along line for markers...
void setOffsetAlongLine(double offsetAlongLine)
Sets the the offset along the line for the marker placement.
virtual void startRender(QgsSymbolV2RenderContext &context)=0
void setInterval(double interval)
The interval between individual markers.
bool mUseCustomDashPattern
void setDrawInsidePolygon(bool drawInsidePolygon)
void setRotateMarker(bool rotate)
Shall the marker be rotated.
virtual double width() const
QgsSymbolV2::OutputUnit mIntervalUnit
virtual double estimateMaxBleed() const
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape...
QgsSymbolV2::OutputUnit offsetAlongLineUnit() const
Returns the unit used for calculating the offset along line for markers.
void setOutputUnit(QgsSymbolV2::OutputUnit unit) override
const QgsMapUnitScale & intervalMapUnitScale() const
double interval() const
The interval between individual markers.
Qt::PenJoinStyle mPenJoinStyle
double offsetAlongLine() const
Returns the offset along the line for the marker placement.
QVector< qreal > mCustomDashVector
Vector with an even number of entries for the.
#define DEFAULT_SIMPLELINE_WIDTH
virtual void setWidth(double width)
bool useCustomDashPattern() const
virtual QgsStringMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
QVector< qreal > customDashVector() const
void setOffsetAlongLineMapUnitScale(const QgsMapUnitScale &scale)
Sets the map unit scale used for calculating the offset in map units along line for markers...
virtual QVector< qreal > dxfCustomDashPattern(QgsSymbolV2::OutputUnit &unit) const
get dash pattern
virtual void renderPolygonOutline(const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context)
const QgsMapUnitScale & customDashPatternMapUnitScale() const
void setOffsetAlongLineUnit(QgsSymbolV2::OutputUnit unit)
Sets the unit used for calculating the offset along line for markers.
virtual QColor color() const
The fill color.
void setPenCapStyle(Qt::PenCapStyle style)
void setCustomDashVector(const QVector< qreal > &vector)
QgsMarkerSymbolV2 * mMarker
virtual void renderPolyline(const QPolygonF &points, QgsSymbolV2RenderContext &context)=0
QgsSymbolV2::OutputUnit mCustomDashPatternUnit
virtual QString layerType() const =0
Returns a string that represents this layer type.
virtual double dxfOffset(const QgsDxfExport &e, QgsSymbolV2RenderContext &context) const
get offset
QgsSymbolV2::OutputUnit intervalUnit() const
virtual QgsSymbolV2 * subSymbol()
#define DEFAULT_SIMPLELINE_COLOR
QgsMapUnitScale mIntervalMapUnitScale
QgsMapUnitScale mapUnitScale() const override
QgsSymbolV2::OutputUnit mOffsetAlongLineUnit
void setPenStyle(Qt::PenStyle style)
void setMapUnitScale(const QgsMapUnitScale &scale) override
void setPlacement(Placement p)
The placement of the markers.
Struct for storing maximum and minimum scales for measurements in map units.
void setCustomDashPatternMapUnitScale(const QgsMapUnitScale &scale)
virtual void setColor(const QColor &color)
The fill color.
QgsSymbolV2::OutputUnit customDashPatternUnit() const
virtual double dxfWidth(const QgsDxfExport &e, QgsSymbolV2RenderContext &context) const override
get line width
virtual bool setSubSymbol(QgsSymbolV2 *symbol)
set layer's subsymbol. takes ownership of the passed symbol
virtual void stopRender(QgsSymbolV2RenderContext &context)=0
bool rotateMarker() const
Shall the marker be rotated.
virtual QString ogrFeatureStyle(double mmScaleFactor, double mapUnitScaleFactor) const
virtual Q_DECL_DEPRECATED void setDataDefinedProperty(const QString &property, const QString &expressionString)
Sets a data defined expression for a property.