QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSCALLOUTPOSITION_H
17 #define QGSCALLOUTPOSITION_H
19 #include "qgis_core.h"
45 , providerID( providerId )
74 QPointF
origin()
const {
return mOrigin; }
84 void setOrigin(
const QPointF &origin ) { mOrigin = origin; }
104 void setDestination(
const QPointF &destination ) { mDestination = destination; }
150 QPointF mDestination;
152 bool mOriginIsPinned =
false;
153 bool mDestinationIsPinned =
false;
156 #endif // QGSCALLOUTPOSITION_H
QString providerID
ID of the associated label provider.
QPointF destination() const
Returns the destination of the callout line, in map coordinates.
QgsCalloutPosition(QgsFeatureId id, const QString &layer, const QString &providerId=QString())
Constructor for QgsCalloutPosition.
QPointF origin() const
Returns the origin of the callout line, in map coordinates.
void setDestination(const QPointF &destination)
Sets the destination of the callout line, in map coordinates.
Represents the calculated placement of a map label callout line.
void setDestinationIsPinned(bool pinned)
Sets whether the destination of the callout has pinned (manually placed).
bool destinationIsPinned() const
Returns true if the destination of the callout has pinned (manually placed).
void setOrigin(const QPointF &origin)
Sets the origin of the callout line, in map coordinates.
QString layerID
ID of associated map layer.
bool originIsPinned() const
Returns true if the origin of the callout has pinned (manually placed).
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
void setOriginIsPinned(bool pinned)
Sets whether the origin of the callout has pinned (manually placed).