19 #ifndef QGSSCALECALCULATOR_H
20 #define QGSSCALECALCULATOR_H
48 void setDpi(
double dpi );
71 double calculate(
const QgsRectangle &mapExtent,
int canvasWidth );
79 double calculateGeographicDistance(
const QgsRectangle &mapExtent );
90 #endif // #ifndef QGSSCALECALCULATOR_H
A rectangle specified with double values.
UnitType
Map units that qgis supports.
Calculates scale for a given combination of canvas size, map extent, and monitor dpi.