16 #ifndef QGSMARKERSYMBOLLAYERV2_H 17 #define QGSMARKERSYMBOLLAYERV2_H 22 #define DEFAULT_SIMPLEMARKER_NAME "circle" 23 #define DEFAULT_SIMPLEMARKER_COLOR QColor(255,0,0) 24 #define DEFAULT_SIMPLEMARKER_BORDERCOLOR QColor(0,0,0) 25 #define DEFAULT_SIMPLEMARKER_SIZE DEFAULT_POINT_SIZE 26 #define DEFAULT_SIMPLEMARKER_ANGLE 0 74 void setOutlineStyle( Qt::PenStyle outlineStyle ) { mOutlineStyle = outlineStyle; }
137 static const int mMaximumCacheWidth = 3000;
147 #define DEFAULT_SVGMARKER_NAME "/crosses/Star1.svg" 148 #define DEFAULT_SVGMARKER_SIZE 2*DEFAULT_POINT_SIZE 149 #define DEFAULT_SVGMARKER_ANGLE 0 181 void setPath(
const QString& path );
227 #define POINT2MM(x) ( (x) * 25.4 / 72 ) // point is 1/72 of inch 228 #define MM2POINT(x) ( (x) * 72 / 25.4 ) 230 #define DEFAULT_FONTMARKER_FONT "Dingbats" 231 #define DEFAULT_FONTMARKER_CHR QChar('A') 232 #define DEFAULT_FONTMARKER_SIZE POINT2MM(12) 233 #define DEFAULT_FONTMARKER_COLOR QColor(Qt::black) 234 #define DEFAULT_FONTMARKER_ANGLE 0 QColor borderColor() const
virtual void renderPoint(QPointF point, QgsSymbolV2RenderContext &context)=0
void setOutlineStyle(Qt::PenStyle outlineStyle)
QgsSymbolV2::OutputUnit outlineWidthUnit() const
double outlineWidth() const
QgsSymbolV2::OutputUnit outputUnit() const override
OutputUnit
The unit of the output.
QgsMapUnitScale mOutlineWidthMapUnitScale
virtual QgsSymbolLayerV2 * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
#define DEFAULT_FONTMARKER_COLOR
virtual QRectF bounds(QPointF point, QgsSymbolV2RenderContext &context)
Returns the approximate bounding box of the marker symbol layer, taking into account any data defined...
QgsSymbolV2::OutputUnit mOutlineWidthUnit
void setOutlineColor(const QColor &c) override
Set outline color.
#define DEFAULT_SIMPLEMARKER_ANGLE
virtual void writeSldMarker(QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const
#define DEFAULT_FONTMARKER_CHR
void setOutlineWidth(double w)
#define DEFAULT_SIMPLEMARKER_COLOR
void setFillColor(const QColor &color) override
Set fill color.
void setOutlineWidth(double w)
QColor fillColor() const override
Get fill color.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QMap< QString, QString > QgsStringMap
void setMapUnitScale(const QgsMapUnitScale &scale) override
#define DEFAULT_SVGMARKER_ANGLE
#define DEFAULT_SIMPLEMARKER_NAME
void setOutlineWidthUnit(QgsSymbolV2::OutputUnit unit)
void setOutlineWidthUnit(QgsSymbolV2::OutputUnit u)
void setFontFamily(const QString &family)
#define DEFAULT_SCALE_METHOD
Qt::PenStyle mOutlineStyle
QString fontFamily() const
void setFillColor(const QColor &color) override
Set fill color.
double outlineWidth() const
virtual QgsStringMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
#define DEFAULT_FONTMARKER_ANGLE
QgsMapUnitScale mOutlineWidthMapUnitScale
virtual QColor color() const
The fill color.
void setOutlineWidthMapUnitScale(const QgsMapUnitScale &scale)
QgsSymbolV2::OutputUnit mOutlineWidthUnit
#define DEFAULT_SVGMARKER_SIZE
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)
QFontMetrics * mFontMetrics
virtual QString layerType() const =0
Returns a string that represents this layer type.
void setOutlineWidthMapUnitScale(const QgsMapUnitScale &scale)
#define DEFAULT_FONTMARKER_SIZE
void startRender(QgsSymbolV2RenderContext &context) override
#define DEFAULT_FONTMARKER_FONT
QgsSymbolV2::OutputUnit outlineWidthUnit() const
#define DEFAULT_SVGMARKER_NAME
void setBorderColor(const QColor &color)
#define DEFAULT_SIMPLEMARKER_SIZE
const QgsMapUnitScale & outlineWidthMapUnitScale() const
Struct for storing maximum and minimum scales for measurements in map units.
QgsMapUnitScale mapUnitScale() const override
Qt::PenStyle outlineStyle() const
QColor fillColor() const override
Get fill color.
virtual void setColor(const QColor &color)
The fill color.
virtual bool writeDxf(QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolV2RenderContext *context, const QgsFeature *f, QPointF shift=QPointF(0.0, 0.0)) const
virtual void stopRender(QgsSymbolV2RenderContext &context)=0
QColor outlineColor() const override
Get outline color.
void setOutputUnit(QgsSymbolV2::OutputUnit unit) override
const QgsMapUnitScale & outlineWidthMapUnitScale() const
virtual QString ogrFeatureStyle(double mmScaleFactor, double mapUnitScaleFactor) const
QColor outlineColor() const override
Get outline color.
void setCharacter(QChar ch)
void setName(const QString &name)
#define DEFAULT_SIMPLEMARKER_BORDERCOLOR
void setOutlineColor(const QColor &color) override
Set outline color.