18 #ifndef QGSUNITTYPES_H 19 #define QGSUNITTYPES_H 21 #include "qgis_core.h" 102 RenderMillimeters = 0,
116 LayoutMillimeters = 0,
130 LayoutPaperUnits = 0,
253 Q_INVOKABLE
static AreaUnit decodeAreaUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
277 Q_INVOKABLE
static AreaUnit stringToAreaUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
370 Q_INVOKABLE
static QString formatDistance(
double distance,
int decimals,
QgsUnitTypes::DistanceUnit unit,
bool keepBaseUnit =
false );
383 Q_INVOKABLE
static QString formatArea(
double area,
int decimals,
QgsUnitTypes::AreaUnit unit,
bool keepBaseUnit =
false );
455 #endif // QGSUNITTYPES_H
Meters value as Map units.
double value
The value part of the distance.
QgsUnitTypes::DistanceUnit unit
The value part of the distance.
double value
The value part of the distance.
Helper functions for various unit types.
LayoutUnitType
Types of layout units.
DistanceUnitType
Types of distance units.
Percentage of another measurement (e.g., canvas size, feature size)
QList< QgsUnitTypes::RenderUnit > RenderUnitList
List of render units.
double ANALYSIS_EXPORT angle(QgsPoint *p1, QgsPoint *p2, QgsPoint *p3, QgsPoint *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
AngleUnit
Units of angles.
points (e.g., for font sizes)
Degrees, for planar geographic CRS distance measurements.
Square degrees, for planar geographic CRS area measurements.
A combination of distance value and unit.
DistanceUnit
Units of distance.
QgsUnitTypes::AreaUnit unit
The value part of the distance.
Unit is a geographic (e.g., degree based) unit.
A combination of area value and unit.
LayoutUnit
Layout measurement units.
RenderUnit
Rendering size units.