22 , mGeometry( geometry )
23 , mObstacleGeometry( nullptr )
27 , mHasFixedPosition( false )
28 , mHasFixedAngle( false )
30 , mHasFixedQuadrant( false )
33 , mRepeatDistance( 0 )
34 , mAlwaysShow( false )
35 , mIsObstacle( false )
36 , mObstacleFactor( 1 )
38 , mPermissibleZoneGeosPrepared( nullptr )
50 if ( mPermissibleZoneGeosPrepared )
68 if ( mPermissibleZoneGeosPrepared )
71 mPermissibleZoneGeosPrepared =
nullptr;
virtual ~QgsLabelFeature()
Clean up geometry and curved label info (if present)
pal::LabelInfo * mInfo
extra information for curved labels (may be null)
QgsLabelFeature(QgsFeatureId id, GEOSGeometry *geometry, QSizeF size)
Create label feature, takes ownership of the geometry instance.
GEOSGeometry * geometry() const
Get access to the associated geometry.
A geometry is the spatial representation of a feature.
GEOSGeometry * mObstacleGeometry
Optional geometry to use for label obstacles, if different to mGeometry.
void setPermissibleZone(const QgsGeometry &geometry)
Sets the label's permissible zone geometry.
GEOSGeometry * mGeometry
Geometry of the feature to be labelled.
bool isEmpty() const
Returns true if the geometry is empty (ie, contains no underlying geometry accessible via geometry)...
static GEOSContextHandle_t getGEOSHandler()
Return GEOS context handle.
const GEOSGeometry * asGeos(double precision=0) const
Returns a geos geometry.
void setObstacleGeometry(GEOSGeometry *obstacleGeom)
Sets the label's obstacle geometry, if different to the feature geometry.
QgsGeometry mPermissibleZone
Optional geometry to use for label's permissible zone.