16#ifndef QGSCALLOUTPOSITION_H
17#define QGSCALLOUTPOSITION_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;
Represents the calculated placement of a map label callout line.
void setDestination(const QPointF &destination)
Sets the destination of the callout line, in map coordinates.
QString providerID
ID of the associated label provider.
QPointF origin() const
Returns the origin of the callout line, in map coordinates.
void setOrigin(const QPointF &origin)
Sets the origin of the callout line, in map coordinates.
QgsCalloutPosition()=default
Constructor for QgsCalloutPosition.
QPointF destination() const
Returns the destination of the callout line, in map coordinates.
bool originIsPinned() const
Returns true if the origin of the callout has pinned (manually placed).
bool destinationIsPinned() const
Returns true if the destination of the callout has pinned (manually placed).
QgsCalloutPosition(QgsFeatureId id, const QString &layer, const QString &providerId=QString())
Constructor for QgsCalloutPosition.
QString layerID
ID of associated map layer.
void setDestinationIsPinned(bool pinned)
Sets whether the destination of the callout has pinned (manually placed).
void setOriginIsPinned(bool pinned)
Sets whether the origin of the callout has pinned (manually placed).
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features