19#ifndef QGSSCALECALCULATOR_H
20#define QGSSCALECALCULATOR_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;
DistanceUnit
Units of distance.
A rectangle specified with double values.
Calculates scale for a given combination of canvas size, map extent, and monitor dpi.