19 #ifndef QGSSCALECALCULATOR_H
20 #define QGSSCALECALCULATOR_H
51 void setDpi(
double dpi );
74 double calculate(
const QgsRectangle &mapExtent,
int canvasWidth );
82 double calculateGeographicDistance(
const QgsRectangle &mapExtent );
93 #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.