21 , mGeometry( geometry )
25 , mHasFixedPosition( false )
26 , mHasFixedAngle( false )
28 , mHasFixedQuadrant( false )
31 , mRepeatDistance( 0 )
32 , mAlwaysShow( false )
33 , mIsObstacle( false )
34 , mObstacleFactor( 1 )
46 if ( mPermissibleZoneGeosPrepared )
67 if ( mPermissibleZoneGeosPrepared )
71 mPermissibleZoneGeosPrepared =
nullptr;
72 mPermissibleZoneGeos =
nullptr;
79 if ( !mPermissibleZoneGeos )
bool isNull() const
Returns true if the geometry is null (ie, contains no underlying geometry accessible via geometry() )...
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.
static GEOSContextHandle_t getGEOSHandler()
Return GEOS context handle.
GEOSGeometry * exportToGeos(double precision=0) const
Returns a geos geometry - caller takes ownership of the object (should be deleted with GEOSGeom_destr...
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.