@@ -204,6 +204,7 @@ class QgsSymbolLayerV2Utils
204204 static void createGeometryElement( QDomDocument &doc, QDomElement &element, const QString& geomFunc );
205205 static bool geometryFromSldElement( QDomElement &element, QString &geomFunc );
206206
207+ static bool createExpressionElement( QDomDocument &doc, QDomElement &element, const QString& function );
207208 static bool createFunctionElement( QDomDocument &doc, QDomElement &element, const QString& function );
208209 static bool functionFromSldElement( QDomElement &element, QString &function );
209210
@@ -424,4 +425,34 @@ class QgsSymbolLayerV2Utils
424425 */
425426 static QList<double> prettyBreaks( double minimum, double maximum, int classes );
426427
428+ /** Rescales the given size based on the uomScale found in the props, if any is found, otherwise
429+ * returns the value un-modified
430+ * @note added in 3.0
431+ */
432+ static double rescaleUom( double size, QgsUnitTypes::RenderUnit unit, const QgsStringMap& props );
433+
434+ /** Rescales the given point based on the uomScale found in the props, if any is found, otherwise
435+ * returns a copy of the original point
436+ * @note added in 3.0
437+ */
438+ static QPointF rescaleUom( const QPointF& point, QgsUnitTypes::RenderUnit unit, const QgsStringMap& props ) /PyName=rescalePointUom/;
439+
440+ /** Rescales the given array based on the uomScale found in the props, if any is found, otherwise
441+ * returns a copy of the original point
442+ * @note added in 3.0
443+ */
444+ static QVector<qreal> rescaleUom( const QVector<qreal>& array, QgsUnitTypes::RenderUnit unit, const QgsStringMap& props ) /PyName=rescaleArrayUom/;
445+
446+ /**
447+ * Checks if the properties contain scaleMinDenom and scaleMaxDenom, if available, they are added into the SE Rule element
448+ * @note added in 3.0
449+ */
450+ static void applyScaleDependency( QDomDocument& doc, QDomElement& ruleElem, QgsStringMap& props );
451+
452+ /**
453+ * Merges the local scale limits, if any, with the ones already in the map, if any
454+ * @note added in 3.0
455+ */
456+ static void mergeScaleDependencies( int mScaleMinDenom, int mScaleMaxDenom, QgsStringMap& props );
457+
427458};
0 commit comments