18 #ifndef QGSUNITTYPES_H 19 #define QGSUNITTYPES_H 21 #include "qgis_core.h" 112 RenderMillimeters = 0,
126 LayoutMillimeters = 0,
140 LayoutPaperUnits = 0,
263 Q_INVOKABLE
static AreaUnit decodeAreaUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
287 Q_INVOKABLE
static AreaUnit stringToAreaUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
380 Q_INVOKABLE
static QString formatDistance(
double distance,
int decimals,
QgsUnitTypes::DistanceUnit unit,
bool keepBaseUnit =
false );
393 Q_INVOKABLE
static QString formatArea(
double area,
int decimals,
QgsUnitTypes::AreaUnit unit,
bool keepBaseUnit =
false );
465 #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.
points (e.g., for font sizes)
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.
A combination of area value and unit.
LayoutUnit
Layout measurement units.
RenderUnit
Rendering size units.