18 #ifndef QGSUNITTYPES_H 19 #define QGSUNITTYPES_H 21 #include "qgis_core.h" 113 RenderMillimeters = 0,
127 LayoutMillimeters = 0,
141 LayoutPaperUnits = 0,
265 Q_INVOKABLE
static AreaUnit decodeAreaUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
290 Q_INVOKABLE
static AreaUnit stringToAreaUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
383 Q_INVOKABLE
static QString formatDistance(
double distance,
int decimals,
QgsUnitTypes::DistanceUnit unit,
bool keepBaseUnit =
false );
396 Q_INVOKABLE
static QString formatArea(
double area,
int decimals,
QgsUnitTypes::AreaUnit unit,
bool keepBaseUnit =
false );
477 #endif // QGSUNITTYPES_H
Meters value as Map units.
SystemOfMeasurement
Systems of unit measurement.
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.
Degrees, for planar geographic CRS distance measurements.
International System of Units (SI)
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.
Points (e.g., for font sizes)
A combination of area value and unit.
LayoutUnit
Layout measurement units.
RenderUnit
Rendering size units.