@@ -35,10 +35,16 @@ class QgsSymbol
35
35
/**Gets a reference to m_pen. Don't use the pen to change color/style */
36
36
virtual const QPen& pen() const;
37
37
38
+ /**Gets the path to the customs texture image*/
39
+ virtual QString customTexture() const;
40
+ /**Sets the path to the custom texture, and sets the brush to use TexturePattern */
41
+ virtual void setCustomTexture( QString path );
42
+
38
43
/**Set the line (pen) style*/
39
44
virtual void setLineStyle(Qt::PenStyle s);
40
45
/**Set the fill (brush) style*/
41
46
virtual void setFillStyle(Qt::BrushStyle s);
47
+
42
48
virtual void setLowerValue(QString value);
43
49
virtual QString lowerValue() const;
44
50
virtual void setUpperValue(QString value);
@@ -64,9 +70,14 @@ class QgsSymbol
64
70
virtual QImage getPolygonSymbolAsImage();
65
71
66
72
/** Get QImage representation of point symbol with current settings
67
- */
68
- virtual QImage getPointSymbolAsImage( double widthScale = 1,
69
- bool selected = false, QColor selectionColor = Qt::yellow );
73
+ * and scaled (can be slow when scale != 1.0)
74
+ */
75
+ virtual QImage getPointSymbolAsImage( double widthScale = 1.,
76
+ bool selected = false,
77
+ QColor selectionColor = Qt::yellow,
78
+ double scale = 1.0,
79
+ double rotation = 0.0,
80
+ double rasterScaleFactor = 1.0 );
70
81
71
82
/**Writes the contents of the symbol to a configuration file
72
83
@ return true in case of success*/
@@ -77,6 +88,18 @@ class QgsSymbol
77
88
/**Returns if this symbol is point/ line or polygon*/
78
89
QGis::GeometryType type() const;
79
90
91
+ /**Returns the number of the rotation classification field*/
92
+ int rotationClassificationField() const;
93
+ /**Sets the number of the rotation classicifation field
94
+ \param field the number of the field to classify for rotation*/
95
+ void setRotationClassificationField( int field );
96
+
97
+ /**Returns the number of the scale classification field*/
98
+ int scaleClassificationField() const;
99
+ /**Sets the number of the scale classicifation field
100
+ \param field the number of the field to classify for scale*/
101
+ void setScaleClassificationField( int field );
102
+
80
103
};
81
104
82
105
0 commit comments