16#ifndef QGSCALLOUTPOSITION_H
17#define QGSCALLOUTPOSITION_H
45 , providerID( providerId )
73 QPointF
origin()
const {
return mOrigin; }
83 void setOrigin(
const QPointF &origin ) { mOrigin = origin; }
103 void setDestination(
const QPointF &destination ) { mDestination = destination; }
149 QPointF mDestination;
151 bool mOriginIsPinned =
false;
152 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
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