|
| Layer (QgsAbstractLabelProvider *provider, const QString &name, Qgis::LabelPlacement arrangement, double defaultPriority, bool active, bool toLabel, Pal *pal) |
| Create a new layer. More...
|
|
virtual | ~Layer () |
|
bool | active () const |
| Returns whether the layer is currently active. More...
|
|
Qgis::LabelPlacement | arrangement () const |
| Returns the layer's arrangement policy. More...
|
|
bool | centroidInside () const |
| Returns whether labels placed at the centroid of features within the layer are forced to be placed inside the feature's geometry. More...
|
|
void | chopFeaturesAtRepeatDistance () |
| Chop layer features at the repeat distance. More...
|
|
int | connectedFeatureId (QgsFeatureId featureId) const |
| Returns the connected feature ID for a label feature ID, which is unique for all features which have been joined as a result of joinConnectedFeatures() More...
|
|
int | featureCount () |
| Returns the number of features in layer. More...
|
|
bool | isCurved () const |
| Returns true if the layer has curved labels. More...
|
|
void | joinConnectedFeatures () |
| Join connected features with the same label text. More...
|
|
bool | labelLayer () const |
| Returns whether the layer will be labeled or not. More...
|
|
std::size_t | maximumLineLabelCandidates () const |
| Returns the maximum number of line label candidates to generate for features in this layer. More...
|
|
std::size_t | maximumPointLabelCandidates () const |
| Returns the maximum number of point label candidates to generate for features in this layer. More...
|
|
std::size_t | maximumPolygonLabelCandidates () const |
| Returns the maximum number of polygon label candidates to generate for features in this layer. More...
|
|
bool | mergeConnectedLines () const |
| Returns whether connected lines will be merged before labeling. More...
|
|
QString | name () const |
| Returns the layer's name. More...
|
|
QgsLabelObstacleSettings::ObstacleType | obstacleType () const |
| Returns the obstacle type, which controls how features within the layer act as obstacles for labels. More...
|
|
double | priority () const |
| Returns the layer's priority, between 0 and 1. More...
|
|
QgsAbstractLabelProvider * | provider () const |
| Returns pointer to the associated provider. More...
|
|
bool | registerFeature (QgsLabelFeature *label) |
| Register a feature in the layer. More...
|
|
void | setActive (bool active) |
| Sets whether the layer is currently active. More...
|
|
void | setArrangement (Qgis::LabelPlacement arrangement) |
| Sets the layer's arrangement policy. More...
|
|
void | setCentroidInside (bool forceInside) |
| Sets whether labels placed at the centroid of features within the layer are forced to be placed inside the feature's geometry. More...
|
|
void | setLabelLayer (bool toLabel) |
| Sets whether the layer will be labeled. More...
|
|
void | setMergeConnectedLines (bool merge) |
| Sets whether connected lines should be merged before labeling. More...
|
|
void | setObstacleType (QgsLabelObstacleSettings::ObstacleType obstacleType) |
| Sets the obstacle type, which controls how features within the layer act as obstacles for labels. More...
|
|
void | setPriority (double priority) |
| Sets the layer's priority. More...
|
|
void | setUpsidedownLabels (Qgis::UpsideDownLabelHandling ud) |
| Sets how upside down labels will be handled within the layer. More...
|
|
Qgis::UpsideDownLabelHandling | upsidedownLabels () const |
| Returns how upside down labels are handled within the layer. More...
|
|