24 mObstacleGeometry = obstacleGeom;
29 return mObstacleGeometry;
41 double factorD = exprVal.toDouble( &ok );
44 factorD = std::clamp( factorD, 0.0, 10.0 );
45 factorD = factorD / 5.0 + 0.0001;
46 mObstacleFactor = factorD;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
void setOriginalValueVariable(const QVariant &value)
Sets the original value variable value for the context.
A geometry is the spatial representation of a feature.
void updateDataDefinedProperties(const QgsPropertyCollection &properties, QgsExpressionContext &context)
Updates the obstacle settings to respect any data defined properties set within the specified propert...
void setObstacleGeometry(const QgsGeometry &obstacleGeom)
Sets the label's obstacle geometry, if different to the feature geometry.
QgsGeometry obstacleGeometry() const
Returns the label's obstacle geometry, if different to the feature geometry.
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
QVariant value(int key, const QgsExpressionContext &context, const QVariant &defaultValue=QVariant()) const override
Returns the calculated value of the property with the specified key from within the collection.
bool isActive(int key) const override
Returns true if the collection contains an active property with the specified key.
static bool isNull(const QVariant &variant)
Returns true if the specified variant should be considered a NULL value.