QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
18 #ifndef QGSUNITTYPES_H
19 #define QGSUNITTYPES_H
21 #include "qgis_core.h"
51 Q_ENUM( SystemOfMeasurement )
80 Q_ENUM( DistanceUnit )
116 VolumeCubicMeters = 0,
163 Q_ENUM( TemporalUnit )
168 RenderMillimeters = 0,
182 LayoutMillimeters = 0,
196 LayoutPaperUnits = 0,
599 Q_INVOKABLE
static QString formatDistance(
double distance,
int decimals,
QgsUnitTypes::DistanceUnit unit,
bool keepBaseUnit =
false );
612 Q_INVOKABLE
static QString formatArea(
double area,
int decimals,
QgsUnitTypes::AreaUnit unit,
bool keepBaseUnit =
false );
693 #endif // QGSUNITTYPES_H
@ TemporalDecades
Decades.
@ AreaSquareFeet
Square feet.
@ AreaSquareMiles
Square miles.
@ ImperialSystem
British Imperial.
RenderUnit
Rendering size units.
LayoutUnitType
Types of layout units.
@ DistanceUnknownUnit
Unknown distance unit.
VolumeUnit
Units of volume.
@ AngleSecondsOfArc
Seconds of arc.
@ UnknownType
Unknown unit type.
@ VolumeCubicDegrees
Cubic degrees, for planar geographic CRS volume measurements.
@ RenderPoints
Points (e.g., for font sizes)
@ AngleUnknownUnit
Unknown angle unit.
LayoutUnit
Layout measurement units.
@ RenderPercentage
Percentage of another measurement (e.g., canvas size, feature size)
@ VolumeUnknownUnit
Unknown volume unit.
@ VolumeCubicDecimeter
Cubic decimeters.
TemporalUnit
Temporal units.
DistanceUnit
Units of distance.
@ LayoutCentimeters
Centimeters.
@ DistanceKilometers
Kilometers.
SystemOfMeasurement
Systems of unit measurement.
@ AreaSquareKilometers
Square kilometers.
@ AngleRadians
Square kilometers.
@ TypeUnknown
Unknown unit type.
DistanceUnitType
Types of distance units.
@ TemporalSeconds
Seconds.
double value
The value part of the distance.
@ VolumeCubicCentimeter
Cubic Centimeters.
@ AreaSquareYards
Square yards.
@ DistanceDegrees
Degrees, for planar geographic CRS distance measurements.
AngleUnit
Units of angles.
@ LayoutPicas
Typographic picas.
A combination of area value and unit.
@ AreaSquareMillimeters
Square millimeters.
@ DistanceFeet
Imperial feet.
Helper functions for various unit types.
@ AngleMilliradiansSI
Angular milliradians (SI definition, 1/1000 of radian)
@ MetricSystem
International System of Units (SI)
double value
The value part of the distance.
@ AreaSquareDegrees
Square degrees, for planar geographic CRS area measurements.
@ VolumeGallonUS
US Gallons.
@ TemporalMinutes
Minutes.
A combination of distance value and unit.
@ AngleTurn
Turn/revolutions.
@ TemporalMilliseconds
Milliseconds.
@ AngleMinutesOfArc
Minutes of arc.
@ TemporalCenturies
Centuries.
@ VolumeCubicInch
Cubic inches.
@ DistanceMillimeters
Millimeters.
@ DistanceCentimeters
Centimeters.
@ RenderMetersInMapUnits
Meters value as Map units.
@ AngleMilNATO
Angular mil (NATO definition, 6400 mil = 2PI radians)
@ RenderUnknownUnit
Mixed or unknown units.
@ Geographic
Unit is a geographic (e.g., degree based) unit.
@ DistanceYards
Imperial yards.
@ VolumeCubicYards
Cubic yards.
@ VolumeCubicFeet
Cubic feet.
@ DistanceMiles
Terrestrial miles.
@ DistanceNauticalMiles
Nautical miles.
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)
@ LayoutPoints
Typographic points.
QgsUnitTypes::DistanceUnit unit
The value part of the distance.
@ AreaSquareNauticalMiles
Square nautical miles.
@ RenderMapUnits
Map units.
@ TypeTemporal
Temporal unit.
@ AreaSquareCentimeters
Square centimeters.
QgsUnitTypes::AreaUnit unit
The value part of the distance.
@ AreaUnknownUnit
Unknown areal unit.