@@ -28,10 +28,10 @@ class QDomNode;
28
28
class QDomDocument ;
29
29
30
30
/* *Encapsulates settings for drawing (QPen, QBrush, Point symbol) and classification
31
- (lower value, upper value)*/
31
+ (lower value, upper value)*/
32
32
class CORE_EXPORT QgsSymbol{
33
33
34
- public:
34
+ public:
35
35
/* *Constructor*/
36
36
QgsSymbol (QGis::VectorType t, QString lvalue=" " , QString uvalue=" " , QString label=" " );
37
37
/* *Constructor*/
@@ -66,10 +66,10 @@ class CORE_EXPORT QgsSymbol{
66
66
/* *Set the fill (brush) style*/
67
67
virtual void setFillStyle (Qt::BrushStyle s);
68
68
69
- /* *Gets the path to the customs texture image*/
70
- virtual QString customTexture () const ;
71
- /* *Sets the path to the custom texture, and sets the brush to use TexturePattern */
72
- virtual void setCustomTexture (QString path);
69
+ /* *Gets the path to the customs texture image*/
70
+ virtual QString customTexture () const ;
71
+ /* *Sets the path to the custom texture, and sets the brush to use TexturePattern */
72
+ virtual void setCustomTexture (QString path);
73
73
74
74
virtual void setLowerValue (QString value);
75
75
virtual QString lowerValue () const ;
@@ -94,22 +94,22 @@ class CORE_EXPORT QgsSymbol{
94
94
95
95
// ! Get a little icon for the legend
96
96
virtual QImage getPolygonSymbolAsImage ();
97
-
97
+
98
98
/* * Get QImage representation of point symbol with current settings
99
- */
99
+ */
100
100
virtual QImage getPointSymbolAsImage ( double widthScale = 1 .,
101
- bool selected = false , QColor selectionColor = Qt::yellow );
101
+ bool selected = false , QColor selectionColor = Qt::yellow );
102
102
103
103
/* *Writes the contents of the symbol to a configuration file
104
- @ return true in case of success*/
104
+ @ return true in case of success*/
105
105
virtual bool writeXML ( QDomNode & item, QDomDocument & document ) const ;
106
106
/* *Reads the contents of the symbol from a configuration file
107
- @ return true in case of success*/
107
+ @ return true in case of success*/
108
108
virtual bool readXML ( QDomNode & symbol );
109
109
/* *Returns if this symbol is point/ line or polygon*/
110
110
QGis::VectorType type () const {return mType ;}
111
111
112
- protected:
112
+ protected:
113
113
/* *Lower value for classification*/
114
114
QString mLowerValue ;
115
115
/* *Upper value for classification*/
@@ -120,7 +120,7 @@ class CORE_EXPORT QgsSymbol{
120
120
121
121
QPen mPen ;
122
122
QBrush mBrush ;
123
- QString mTextureFilePath ;
123
+ QString mTextureFilePath ;
124
124
/* Point symbol name */
125
125
QString mPointSymbolName ;
126
126
/* Point size */
@@ -137,7 +137,7 @@ class CORE_EXPORT QgsSymbol{
137
137
//
138
138
//
139
139
140
-
140
+
141
141
/* Point symbol cache */
142
142
QImage mPointSymbolImage ;
143
143
@@ -146,11 +146,11 @@ class CORE_EXPORT QgsSymbol{
146
146
147
147
/* Current line width scale used by mPointSymbolVectorImage */
148
148
double mWidthScale ;
149
-
149
+
150
150
/* Point symbol cache but with line width scale mWidthScale */
151
151
QImage mPointSymbolImage2 ;
152
152
QImage mPointSymbolImageSelected2 ;
153
-
153
+
154
154
/* Create point symbol mPointSymbolImage/mPointSymbolImage cache */
155
155
void cache ( QColor selectionColor );
156
156
@@ -170,52 +170,52 @@ class CORE_EXPORT QgsSymbol{
170
170
171
171
inline void QgsSymbol::setBrush (QBrush b)
172
172
{
173
- mBrush =b;
173
+ mBrush =b;
174
174
}
175
175
176
176
inline const QBrush& QgsSymbol::brush () const
177
177
{
178
- return mBrush ;
178
+ return mBrush ;
179
179
}
180
180
181
181
inline void QgsSymbol::setPen (QPen p)
182
182
{
183
- mPen =p;
183
+ mPen =p;
184
184
}
185
185
186
186
inline const QPen& QgsSymbol::pen () const
187
187
{
188
- return mPen ;
188
+ return mPen ;
189
189
}
190
190
191
191
inline void QgsSymbol::setLowerValue (QString value)
192
192
{
193
- mLowerValue =value;
193
+ mLowerValue =value;
194
194
}
195
195
196
196
inline QString QgsSymbol::lowerValue () const
197
197
{
198
- return mLowerValue ;
198
+ return mLowerValue ;
199
199
}
200
200
201
201
inline void QgsSymbol::setUpperValue (QString value)
202
202
{
203
- mUpperValue =value;
203
+ mUpperValue =value;
204
204
}
205
205
206
206
inline QString QgsSymbol::upperValue () const
207
207
{
208
- return mUpperValue ;
208
+ return mUpperValue ;
209
209
}
210
210
211
211
inline void QgsSymbol::setLabel (QString label)
212
212
{
213
- mLabel =label;
213
+ mLabel =label;
214
214
}
215
215
216
216
inline QString QgsSymbol::label () const
217
217
{
218
- return mLabel ;
218
+ return mLabel ;
219
219
}
220
220
221
221
#endif // QGSSYMBOL_H
0 commit comments