19#ifndef QGSSCALECALCULATOR_H
20#define QGSSCALECALCULATOR_H
70 void setDpi(
double dpi );
100 double calculate(
const QgsRectangle &mapExtent,
double canvasWidth )
const;
111 QSizeF calculateImageSize(
const QgsRectangle &mapExtent,
double scale )
const;
124 double calculateGeographicDistance(
const QgsRectangle &mapExtent )
const;
140 double calculateGeographicDistanceAtLatitude(
double latitude,
double longitude1,
double longitude2 )
const;
145 void calculateMetrics(
const QgsRectangle &mapExtent,
double &delta,
double &conversionFactor )
const;
DistanceUnit
Units of distance.
@ Unknown
Unknown distance unit.
ScaleCalculationMethod
Scale calculation logic.
@ HorizontalMiddle
Calculate horizontally, across midle of map.
A rectangle specified with double values.
Calculates scale for a given combination of canvas size, map extent, and monitor dpi.
Qgis::ScaleCalculationMethod method() const
Returns the method to use for map scale calculations.