QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Struct for storing maximum and minimum scales for measurements in map units. More...
#include <qgsmapunitscale.h>
Public Member Functions | |
QgsMapUnitScale (double minScale=0.0, double maxScale=0.0) | |
Constructor for QgsMapUnitScale. More... | |
double | computeMapUnitsPerPixel (const QgsRenderContext &c) const |
Computes a map units per pixel scaling factor, respecting the minimum and maximum scales set for the object. More... | |
bool | operator!= (const QgsMapUnitScale &other) const |
bool | operator== (const QgsMapUnitScale &other) const |
Public Attributes | |
double | maxScale |
The maximum scale, or 0.0 if unset. More... | |
double | maxSizeMM |
The maximum size in millimeters, or 0.0 if unset. More... | |
bool | maxSizeMMEnabled |
Whether the maximum size in mm should be respected. More... | |
double | minScale |
The minimum scale, or 0.0 if unset. More... | |
double | minSizeMM |
The minimum size in millimeters, or 0.0 if unset. More... | |
bool | minSizeMMEnabled |
Whether the minimum size in mm should be respected. More... | |
Struct for storing maximum and minimum scales for measurements in map units.
For measurements in map units, a minimum and a maximum scale can be defined. Outside this range, the measurements aren't scaled anymore proportionally to the map scale.
Definition at line 33 of file qgsmapunitscale.h.
|
inline |
Constructor for QgsMapUnitScale.
minScale | minimum allowed scale, or 0.0 if no minimum scale set |
maxScale | maximum allowed scale, or 0.0 if no maximum scale set |
Definition at line 41 of file qgsmapunitscale.h.
|
inline |
Computes a map units per pixel scaling factor, respecting the minimum and maximum scales set for the object.
c | render context |
Definition at line 69 of file qgsmapunitscale.h.
|
inline |
Definition at line 94 of file qgsmapunitscale.h.
|
inline |
Definition at line 84 of file qgsmapunitscale.h.
double QgsMapUnitScale::maxScale |
The maximum scale, or 0.0 if unset.
Definition at line 53 of file qgsmapunitscale.h.
double QgsMapUnitScale::maxSizeMM |
The maximum size in millimeters, or 0.0 if unset.
Definition at line 62 of file qgsmapunitscale.h.
bool QgsMapUnitScale::maxSizeMMEnabled |
Whether the maximum size in mm should be respected.
Definition at line 60 of file qgsmapunitscale.h.
double QgsMapUnitScale::minScale |
The minimum scale, or 0.0 if unset.
Definition at line 51 of file qgsmapunitscale.h.
double QgsMapUnitScale::minSizeMM |
The minimum size in millimeters, or 0.0 if unset.
Definition at line 58 of file qgsmapunitscale.h.
bool QgsMapUnitScale::minSizeMMEnabled |
Whether the minimum size in mm should be respected.
Definition at line 56 of file qgsmapunitscale.h.