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