QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
Contains additional contextual information about the context in which a callout is being rendered. More...
#include <qgscallout.h>
Public Member Functions | |
void | addCalloutPosition (const QgsCalloutPosition &position) |
Adds a rendered callout position. | |
QgsCoordinateTransform | originalFeatureToMapTransform (const QgsRenderContext &renderContext) const |
Returns the coordinate transform to convert from the original layer associated with the callout to the destination map CRS. | |
QList< QgsCalloutPosition > | positions () const |
Returns the list of rendered callout positions. | |
Public Attributes | |
bool | allFeaturePartsLabeled = false |
true if all parts of associated feature were labeled | |
QgsCoordinateReferenceSystem | originalFeatureCrs |
Contains the CRS of the original feature associated with this callout. | |
Contains additional contextual information about the context in which a callout is being rendered.
Definition at line 245 of file qgscallout.h.
|
inline |
Adds a rendered callout position.
The position details such as the callout line origin and destination should be populated by the callout subclass during rendering operations.
Definition at line 276 of file qgscallout.h.
QgsCoordinateTransform QgsCallout::QgsCalloutContext::originalFeatureToMapTransform | ( | const QgsRenderContext & | renderContext | ) | const |
Returns the coordinate transform to convert from the original layer associated with the callout to the destination map CRS.
Definition at line 515 of file qgscallout.cpp.
|
inline |
Returns the list of rendered callout positions.
Definition at line 283 of file qgscallout.h.
bool QgsCallout::QgsCalloutContext::allFeaturePartsLabeled = false |
true
if all parts of associated feature were labeled
Definition at line 249 of file qgscallout.h.
QgsCoordinateReferenceSystem QgsCallout::QgsCalloutContext::originalFeatureCrs |
Contains the CRS of the original feature associated with this callout.
Definition at line 256 of file qgscallout.h.