|
QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
|
Represents the calculated placement of a map label callout line. More...
#include <qgscalloutposition.h>
Public Member Functions | |
| QgsCalloutPosition ()=default | |
| QgsCalloutPosition (QgsFeatureId id, const QString &layer, const QString &providerId=QString()) | |
| Constructor for QgsCalloutPosition. | |
| QPointF | destination () const |
| Returns the destination of the callout line, in map coordinates. | |
| bool | destinationIsPinned () const |
Returns true if the destination of the callout has pinned (manually placed). | |
| QPointF | origin () const |
| Returns the origin of the callout line, in map coordinates. | |
| bool | originIsPinned () const |
Returns true if the origin of the callout has pinned (manually placed). | |
| void | setDestination (const QPointF &destination) |
| Sets the destination of the callout line, in map coordinates. | |
| void | setDestinationIsPinned (bool pinned) |
| Sets whether the destination of the callout has pinned (manually placed). | |
| void | setOrigin (const QPointF &origin) |
| Sets the origin of the callout line, in map coordinates. | |
| void | setOriginIsPinned (bool pinned) |
| Sets whether the origin of the callout has pinned (manually placed). | |
Public Attributes | |
| QgsFeatureId | featureId = FID_NULL |
| ID of feature associated with this callout. | |
| QString | layerID |
| ID of associated map layer. | |
| QString | providerID |
| ID of the associated label provider. | |
Represents the calculated placement of a map label callout line.
Definition at line 31 of file qgscalloutposition.h.
|
inline |
Constructor for QgsCalloutPosition.
| id | associated feature ID |
| layer | ID of associated map layer |
| providerId | ID of associated label provider |
Definition at line 40 of file qgscalloutposition.h.
|
default |
|
inline |
Returns the destination of the callout line, in map coordinates.
The destination of the callout line is the line point associated with the feature's geometry.
Definition at line 91 of file qgscalloutposition.h.
|
inline |
Returns true if the destination of the callout has pinned (manually placed).
The destination of the callout line is the line point associated with the feature's geometry.
Definition at line 131 of file qgscalloutposition.h.
|
inline |
Returns the origin of the callout line, in map coordinates.
The origin of the callout line is the line point associated with the label text.
Definition at line 71 of file qgscalloutposition.h.
|
inline |
Returns true if the origin of the callout has pinned (manually placed).
The origin of the callout line is the line point associated with the label text.
Definition at line 111 of file qgscalloutposition.h.
|
inline |
Sets the destination of the callout line, in map coordinates.
The destination of the callout line is the line point associated with the feature's geometry.
Definition at line 101 of file qgscalloutposition.h.
|
inline |
Sets whether the destination of the callout has pinned (manually placed).
The destination of the callout line is the line point associated with the feature's geometry.
Definition at line 141 of file qgscalloutposition.h.
|
inline |
Sets the origin of the callout line, in map coordinates.
The origin of the callout line is the line point associated with the label text.
Definition at line 81 of file qgscalloutposition.h.
|
inline |
Sets whether the origin of the callout has pinned (manually placed).
The origin of the callout line is the line point associated with the label text.
Definition at line 121 of file qgscalloutposition.h.
| QgsFeatureId QgsCalloutPosition::featureId = FID_NULL |
ID of feature associated with this callout.
Definition at line 51 of file qgscalloutposition.h.
| QString QgsCalloutPosition::layerID |
ID of associated map layer.
Definition at line 56 of file qgscalloutposition.h.
| QString QgsCalloutPosition::providerID |
ID of the associated label provider.
Definition at line 61 of file qgscalloutposition.h.