106 void readXML(
const QDomNode& node );
109 void writeXML( QDomNode & label_node, QDomDocument & document )
const;
115 void setFields(
const QgsFields & fields );
127 void setLabelField(
int attr,
int fieldIndex );
130 QString labelField(
int attr )
const;
137 QString fieldValue(
int attr,
QgsFeature& feature );
140 void setMinScale(
float theMinScale );
141 float minScale()
const;
144 void setMaxScale(
float theMaxScale );
145 float maxScale()
const;
148 void setScaleBasedVisibility(
bool theVisibilityFlag );
149 bool scaleBasedVisibility()
const;
156 QString text, QFont font, QPen pen,
158 double xoffset,
double yoffset,
160 int width,
int height,
int alignment );
162 bool readLabelField( QDomElement &el,
int attr, QString prefix );
165 void labelPoint( std::vector<labelpoint>&,
QgsFeature &feature );
168 const unsigned char* labelPoint(
labelpoint& point,
const unsigned char* wkb,
size_t wkblen );
QgsLabelAttributes * mLabelAttributes
Default layer attributes.
QColor mSelectionColor
Color to draw selected features.
QMap< int, QgsField > QgsFieldMap
Container of fields for a vector layer.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
bool mScaleBasedVisibility
A flag that tells us whether to use the above vars to restrict the label's visibility.
QgsFields mFields
Available layer fields.
QList< int > QgsAttributeList
float mMaxScale
Maximum scale at which this label should be displayed.
QList< int > QgsAttributeList
Encapsulate a field in an attribute table or data source.
A class to represent a point geometry.
A class to render labels.
Contains information about the context of a rendering operation.
std::vector< int > mLabelFieldIdx
Label field indexes.
std::vector< QString > mLabelField
Label fields.
A class to store attributes needed for label rendering.
float mMinScale
Minimum scale at which this label should be displayed.