QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Represents the calculated placement of a map label callout line. More...
#include <qgscalloutposition.h>
Public Member Functions | |
QgsCalloutPosition ()=default | |
Constructor for QgsCalloutPosition. More... | |
QgsCalloutPosition (QgsFeatureId id, const QString &layer, const QString &providerId=QString()) | |
Constructor for QgsCalloutPosition. More... | |
QPointF | destination () const |
Returns the destination of the callout line, in map coordinates. More... | |
bool | destinationIsPinned () const |
Returns true if the destination of the callout has pinned (manually placed). More... | |
QPointF | origin () const |
Returns the origin of the callout line, in map coordinates. More... | |
bool | originIsPinned () const |
Returns true if the origin of the callout has pinned (manually placed). More... | |
void | setDestination (const QPointF &destination) |
Sets the destination of the callout line, in map coordinates. More... | |
void | setDestinationIsPinned (bool pinned) |
Sets whether the destination of the callout has pinned (manually placed). More... | |
void | setOrigin (const QPointF &origin) |
Sets the origin of the callout line, in map coordinates. More... | |
void | setOriginIsPinned (bool pinned) |
Sets whether the origin of the callout has pinned (manually placed). More... | |
Public Attributes | |
QgsFeatureId | featureId = FID_NULL |
ID of feature associated with this callout. More... | |
QString | layerID |
ID of associated map layer. More... | |
QString | providerID |
ID of the associated label provider. More... | |
Represents the calculated placement of a map label callout line.
Definition at line 32 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 42 of file qgscalloutposition.h.
|
default |
Constructor for QgsCalloutPosition.
|
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 94 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 134 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 74 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 114 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 104 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 144 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 84 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 124 of file qgscalloutposition.h.
QgsFeatureId QgsCalloutPosition::featureId = FID_NULL |
ID of feature associated with this callout.
Definition at line 54 of file qgscalloutposition.h.
QString QgsCalloutPosition::layerID |
ID of associated map layer.
Definition at line 59 of file qgscalloutposition.h.
QString QgsCalloutPosition::providerID |
ID of the associated label provider.
Definition at line 64 of file qgscalloutposition.h.