18 #ifndef QGSUNITTYPES_H 19 #define QGSUNITTYPES_H 21 #include "qgis_core.h" 115 VolumeCubicMeters = 0,
147 RenderMillimeters = 0,
161 LayoutMillimeters = 0,
175 LayoutPaperUnits = 0,
318 Q_INVOKABLE
static AreaUnit decodeAreaUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
343 Q_INVOKABLE
static AreaUnit stringToAreaUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
392 Q_INVOKABLE
static VolumeUnit decodeVolumeUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
417 Q_INVOKABLE
static VolumeUnit stringToVolumeUnit(
const QString &
string,
bool *ok
SIP_OUT =
nullptr );
520 Q_INVOKABLE
static QString formatDistance(
double distance,
int decimals,
QgsUnitTypes::DistanceUnit unit,
bool keepBaseUnit =
false );
533 Q_INVOKABLE
static QString formatArea(
double area,
int decimals,
QgsUnitTypes::AreaUnit unit,
bool keepBaseUnit =
false );
614 #endif // QGSUNITTYPES_H
VolumeUnit
Units of volume.
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.
Cubic degrees, for planar geographic CRS volume 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.
Angular milliradians (SI definition, 1/1000 of radian)
Angular mil (NATO definition, 6400 mil = 2PI radians)
RenderUnit
Rendering size units.