19 #ifndef QGSSCALECALCULATOR_H
20 #define QGSSCALECALCULATOR_H
22 #include "qgis_core.h"
50 void setDpi(
double dpi );
80 double calculate(
const QgsRectangle &mapExtent,
double canvasWidth )
const;
91 QSizeF calculateImageSize(
const QgsRectangle &mapExtent,
double scale )
const;
99 double calculateGeographicDistance(
const QgsRectangle &mapExtent )
const;
104 void calculateMetrics(
const QgsRectangle &mapExtent,
double &delta,
double &conversionFactor )
const;
DistanceUnit
Units of distance.
@ Unknown
Unknown distance unit.
A rectangle specified with double values.
Calculates scale for a given combination of canvas size, map extent, and monitor dpi.