|
QGIS API Documentation 4.3.0-Master (2b7e6c9893e)
|
Encapsulates details for an individual feature to label. More...
#include <qgsvectorlayerlabelprovider.h>
Public Member Functions | |
| bool | isSelected () const |
Returns true if the feature associated with the label is currently selected. | |
| QgsGeometry | obstacleGeometry () const |
| Returns the (optional) obstacle geometry for the label. | |
| void | setIsSelected (bool selected) |
| Sets whether the feature associated with the label is currently selected. | |
| void | setObstacleGeometry (const QgsGeometry &geometry) |
| Sets the (optional) obstacle geometry for the label. | |
| void | setSymbol (const QgsSymbol *symbol) |
| Sets the (optional) symbol associated with the feature to label. | |
| const QgsSymbol * | symbol () const |
| Returns the (optional) symbol associated with the feature to label. | |
Encapsulates details for an individual feature to label.
Definition at line 38 of file qgsvectorlayerlabelprovider.h.
| bool QgsLabelFeatureDetails::isSelected | ( | ) | const |
Returns true if the feature associated with the label is currently selected.
Definition at line 75 of file qgsvectorlayerlabelprovider.cpp.
| QgsGeometry QgsLabelFeatureDetails::obstacleGeometry | ( | ) | const |
Returns the (optional) obstacle geometry for the label.
This geometry is used when a different geometry to the feature's geometry should be used as an obstacle for labels (e.g., if the feature has been rendered with an offset point symbol, the obstacle geometry should represent the bounds of the offset symbol).
If not set, the feature's original geometry will be used as an obstacle for labels.
Definition at line 55 of file qgsvectorlayerlabelprovider.cpp.
| void QgsLabelFeatureDetails::setIsSelected | ( | bool | selected | ) |
Sets whether the feature associated with the label is currently selected.
Definition at line 80 of file qgsvectorlayerlabelprovider.cpp.
| void QgsLabelFeatureDetails::setObstacleGeometry | ( | const QgsGeometry & | geometry | ) |
Sets the (optional) obstacle geometry for the label.
This geometry is used when a different geometry to the feature's geometry should be used as an obstacle for labels (e.g., if the feature has been rendered with an offset point symbol, the obstacle geometry should represent the bounds of the offset symbol).
If not set, the feature's original geometry will be used as an obstacle for labels.
Definition at line 60 of file qgsvectorlayerlabelprovider.cpp.
| void QgsLabelFeatureDetails::setSymbol | ( | const QgsSymbol * | symbol | ) |
Sets the (optional) symbol associated with the feature to label.
Definition at line 70 of file qgsvectorlayerlabelprovider.cpp.
| const QgsSymbol * QgsLabelFeatureDetails::symbol | ( | ) | const |
Returns the (optional) symbol associated with the feature to label.
Definition at line 65 of file qgsvectorlayerlabelprovider.cpp.