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
65 QString
ogrFeatureStyle(
double mmScaleFactor,
double mapUnitScaleFactor )
const;
67 QString
name()
const {
return mName; }
68 void setName( QString name ) { mName = name; }
74 void setOutlineStyle( Qt::PenStyle outlineStyle ) { mOutlineStyle = outlineStyle; }
110 bool prepareShape( QString name = QString() );
111 bool preparePath( QString name = QString() );
134 static const int mMaximumCacheWidth = 3000;
143 #define DEFAULT_SVGMARKER_NAME "/crosses/Star1.svg"
144 #define DEFAULT_SVGMARKER_SIZE 2*DEFAULT_POINT_SIZE
145 #define DEFAULT_SVGMARKER_ANGLE 0
176 QString
path()
const {
return mPath; }
177 void setPath( QString path );
218 #define POINT2MM(x) ( (x) * 25.4 / 72 ) // point is 1/72 of inch
219 #define MM2POINT(x) ( (x) * 72 / 25.4 )
221 #define DEFAULT_FONTMARKER_FONT "Dingbats"
222 #define DEFAULT_FONTMARKER_CHR QChar('A')
223 #define DEFAULT_FONTMARKER_SIZE POINT2MM(12)
224 #define DEFAULT_FONTMARKER_COLOR QColor(Qt::black)
225 #define DEFAULT_FONTMARKER_ANGLE 0
QColor borderColor() const
Class for parsing and evaluation of expressions (formerly called "search strings").
void setOutlineStyle(Qt::PenStyle outlineStyle)
QgsSymbolV2::OutputUnit outlineWidthUnit() const
double outlineWidth() const
QgsMapUnitScale mOutlineWidthMapUnitScale
QgsSymbolV2::OutputUnit outputUnit() const
virtual QgsSymbolLayerV2 * clone() const =0
void setMapUnitScale(const QgsMapUnitScale &scale)
#define DEFAULT_FONTMARKER_COLOR
QgsSymbolV2::OutputUnit mOutlineWidthUnit
#define DEFAULT_SIMPLEMARKER_ANGLE
void startRender(QgsSymbolV2RenderContext &context)
void setFillColor(const QColor &c)
Set fill color.
#define DEFAULT_FONTMARKER_CHR
void setOutlineWidth(double w)
#define DEFAULT_SIMPLEMARKER_COLOR
void setOutlineWidth(double w)
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
void setOutputUnit(QgsSymbolV2::OutputUnit unit)
QMap< QString, QString > QgsStringMap
#define DEFAULT_SVGMARKER_ANGLE
void setFontFamily(QString family)
#define DEFAULT_SIMPLEMARKER_NAME
void setOutlineWidthUnit(QgsSymbolV2::OutputUnit unit)
virtual void writeSldMarker(QDomDocument &doc, QDomElement &element, QgsStringMap props) const
void setOutlineWidthUnit(QgsSymbolV2::OutputUnit u)
virtual void renderPoint(const QPointF &point, QgsSymbolV2RenderContext &context)=0
QColor fillColor() const
Get fill color.
#define DEFAULT_SCALE_METHOD
Qt::PenStyle mOutlineStyle
QColor outlineColor() const
Get outline color.
QString fontFamily() const
double outlineWidth() const
void setFillColor(const QColor &color)
Set fill color.
virtual QgsStringMap properties() const =0
#define DEFAULT_FONTMARKER_ANGLE
QgsMapUnitScale mOutlineWidthMapUnitScale
virtual QColor color() const
void setOutlineWidthMapUnitScale(const QgsMapUnitScale &scale)
QColor fillColor() const
Get fill color.
QgsMapUnitScale mapUnitScale() const
QgsSymbolV2::OutputUnit mOutlineWidthUnit
#define DEFAULT_SVGMARKER_SIZE
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
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)
virtual QString layerType() const =0
void setOutlineWidthMapUnitScale(const QgsMapUnitScale &scale)
QColor outlineColor() const
Get outline color.
#define DEFAULT_FONTMARKER_SIZE
#define DEFAULT_FONTMARKER_FONT
QgsSymbolV2::OutputUnit outlineWidthUnit() const
#define DEFAULT_SVGMARKER_NAME
QgsExpression * mAngleExpression
#define DEFAULT_SIMPLEMARKER_SIZE
const QgsMapUnitScale & outlineWidthMapUnitScale() const
Qt::PenStyle outlineStyle() const
void setOutlineColor(const QColor &color)
Set outline color.
void setName(QString name)
virtual void setColor(const QColor &color)
void setBorderColor(QColor color)
QgsExpression * mNameExpression
void setOutlineColor(const QColor &c)
Set outline color.
virtual void stopRender(QgsSymbolV2RenderContext &context)=0
const QgsMapUnitScale & outlineWidthMapUnitScale() const
virtual QString ogrFeatureStyle(double mmScaleFactor, double mapUnitScaleFactor) const
void setCharacter(QChar ch)
#define DEFAULT_SIMPLEMARKER_BORDERCOLOR