File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ public:
41
41
LabelFieldCount
42
42
};
43
43
44
+ struct labelpoint {
45
+ QgsPoint p;
46
+ double angle;
47
+ };
48
+
44
49
/** \brief render label
45
50
* \param sizeScale global scale factor for size in pixels, labels in map units are not scaled
46
51
*/
@@ -55,7 +60,7 @@ public:
55
60
void readXML(const QDomNode& node);
56
61
57
62
/** Writes the contents of the renderer to a configuration file */
58
- // TODO: wrap void writeXML(std::ostream& xml );
63
+ void writeXML( QDomNode & label_node, QDomDocument & document );
59
64
60
65
//! add vector of required fields to existing list of fields
61
66
void addRequiredFields ( QList<int> & fields );
@@ -82,5 +87,18 @@ public:
82
87
*/
83
88
QString fieldValue ( int attr, QgsFeature& feature );
84
89
90
+
91
+ /** Accessor and mutator for the minimum scale member */
92
+ void setMinScale( float theMinScale );
93
+ float minScale();
94
+
95
+ /** Accessor and mutator for the maximum scale member */
96
+ void setMaxScale( float theMaxScale );
97
+ float maxScale();
98
+
99
+ /** Accessor and mutator for the scale based visilibility flag */
100
+ void setScaleBasedVisibility( bool theVisibilityFlag );
101
+ bool scaleBasedVisibility();
102
+
85
103
};
86
104
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ public:
68
68
bool angleIsSet ( ) const;
69
69
double angle ( ) const;
70
70
71
+ bool angleIsAuto( ) const;
72
+ void setAutoAngle(bool state);
73
+
71
74
/* Alignment */
72
75
void setAlignment ( int alignment );
73
76
bool alignmentIsSet ( ) const;
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ class QgsRenderContext
30
30
31
31
bool drawEditingInformation() const;
32
32
33
+ double rendererScale() const;
34
+
33
35
//setters
34
36
35
37
/**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/
@@ -40,5 +42,6 @@ class QgsRenderContext
40
42
void setRenderingStopped(bool stopped);
41
43
void setScaleFactor(double factor);
42
44
void setRasterScaleFactor(double factor);
45
+ void setRendererScale( double scale );
43
46
void setPainter(QPainter* p);
44
47
};
You can’t perform that action at this time.
0 commit comments