@@ -380,56 +380,6 @@ class QgsSymbolLayerUtils
380380 */
381381 static QColor parseColorWithAlpha ( const QString& colorStr, bool &containsAlpha, bool strictEval = false );
382382
383- /* * Returns the line width scale factor depending on the unit and the paint device.
384- * Consider using convertToPainterUnits() instead, as convertToPainterUnits() respects the size limits specified by the scale
385- * parameter.
386- * @param c render context
387- * @param u units to convert from
388- * @param scale map unit scale, specifying limits for the map units to convert from
389- * @see convertToPainterUnits()
390- */
391- static double lineWidthScaleFactor ( const QgsRenderContext& c, QgsUnitTypes::RenderUnit u, const QgsMapUnitScale& scale = QgsMapUnitScale() );
392-
393- /* * Converts a size from the specied units to painter units. The conversion respects the limits
394- * specified by the optional scale parameter.
395- * @param c render context
396- * @param size size to convert
397- * @param unit units for specified size
398- * @param scale map unit scale
399- * @note added in QGIS 2.12
400- * @see lineWidthScaleFactor()
401- * @see convertToMapUnits()
402- */
403- static double convertToPainterUnits ( const QgsRenderContext&c, double size, QgsUnitTypes::RenderUnit unit, const QgsMapUnitScale& scale = QgsMapUnitScale() );
404-
405- /* * Converts a size from the specied units to map units. The conversion respects the limits
406- * specified by the optional scale parameter.
407- * @param c render context
408- * @param size size to convert
409- * @param unit units for specified size
410- * @param scale map unit scale
411- * @note added in QGIS 2.16
412- * @see convertFromMapUnits()
413- * @see convertToPainterUnits()
414- */
415- static double convertToMapUnits ( const QgsRenderContext&c, double size, QgsUnitTypes::RenderUnit unit, const QgsMapUnitScale& scale = QgsMapUnitScale() );
416-
417- /* * Converts a size from map units to the specied units.
418- * @param context render context
419- * @param sizeInMapUnits size (in map units) to convert
420- * @param outputUnit output units
421- * @note added in QGIS 3.0
422- * @see convertToMapUnits()
423- */
424- static double convertFromMapUnits ( const QgsRenderContext& context, double sizeInMapUnits, QgsUnitTypes::RenderUnit outputUnit );
425-
426-
427- /* * Returns scale factor painter units -> pixel dimensions*/
428- static double pixelSizeScaleFactor ( const QgsRenderContext& c, QgsUnitTypes::RenderUnit u, const QgsMapUnitScale& scale = QgsMapUnitScale() );
429-
430- /* * Returns scale factor painter units -> map units*/
431- static double mapUnitScaleFactor ( const QgsRenderContext& c, QgsUnitTypes::RenderUnit u, const QgsMapUnitScale& scale = QgsMapUnitScale() );
432-
433383 /* * Multiplies opacity of image pixel values with a (global) transparency value*/
434384 static void multiplyImageOpacity ( QImage* image, qreal alpha );
435385
0 commit comments