API Documentation
Loading...
Searching...
No Matches
UnitDefinitions.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/Unit.h>
4#include <NDEVR/Pointer.h>
5namespace NDEVR
6{
7 /**--------------------------------------------------------------------------------------------------
8 \brief Returns common and uncommon definitions of units that can be used by the software.
9 **/
11 {
12 public:
13 //Length Units
18
19
24#if NDEVR_US_SURVEY_UNITS
25 static ConstPointer<Unit> USSurveyFeet();
26 static ConstPointer<Unit> USSurveyFeetInches();
27#endif
28#if NDEVR_EXOTIC_UNITS
29 static ConstPointer<Unit> Mils();
30 static ConstPointer<Unit> Microinches();
31 static ConstPointer<Unit> Angstrom();
32 static ConstPointer<Unit> Nanometers();
33 static ConstPointer<Unit> Microns();
34 static ConstPointer<Unit> Decimeters();
35 static ConstPointer<Unit> Dekameters();
36 static ConstPointer<Unit> Hectometers();
37 static ConstPointer<Unit> Gigameters();
38 static ConstPointer<Unit> AstronomicalUnits();
39 static ConstPointer<Unit> LightYears();
40 static ConstPointer<Unit> Parsecs();
41 static ConstPointer<Unit> Links();
42 static ConstPointer<Unit> Chains();
43 static ConstPointer<Unit> BenoitChains();
44 static ConstPointer<Unit> BenoitLinks();
45 static ConstPointer<Unit> Brealey();
46 static ConstPointer<Unit> CAGridUnits();
47 static ConstPointer<Unit> GoldCoastFeet();
48 static ConstPointer<Unit> GermanMeters();
49 static ConstPointer<Unit> GermanLegalMeters();
50 static ConstPointer<Unit> GunterChains();
51 static ConstPointer<Unit> GunterLinks();
52 static ConstPointer<Unit> InternationalFeet();
53 static ConstPointer<Unit> InternationalInches();
54 static ConstPointer<Unit> InternationalMiles();
55 static ConstPointer<Unit> IndianYards();
56 static ConstPointer<Unit> NauticalMiles();
57 static ConstPointer<Unit> Rods();
58 static ConstPointer<Unit> SouthAfricanRoods();
59 static ConstPointer<Unit> SearsChains();
60 static ConstPointer<Unit> BritishChains();
61 static ConstPointer<Unit> SearsLinks();
62 static ConstPointer<Unit> SearsYards();
63
64 static ConstPointer<Unit> ClarkesFeet();
65 static ConstPointer<Unit> ClarkesYards();
66 static ConstPointer<Unit> ClarkesChains();
67 static ConstPointer<Unit> ClarkesLinks();
68#endif
69
70 //Time Units
75
76 //Area Units
85
86 //Volume Units
91#if NDEVR_EXOTIC_UNITS
92 static ConstPointer<Unit> Liters();
93 static ConstPointer<Unit> Gallon();
94 static ConstPointer<Unit> Barrel();
95#endif
96 ///Angle Units
103
104 //Speed units
109
110 //rotation speed units
112 //Weight units
116#if NDEVR_EXOTIC_UNITS
117 static ConstPointer<Unit> LongTons();
118 static ConstPointer<Unit> ShortTons();
119 static ConstPointer<Unit> Ounces();
120 static ConstPointer<Unit> MetricTons();
121#endif
122 //Frequency Units
125
126 //Temperature
130
131
132 //Voltage
135
136 //Misc Units
139
140 //Coordinate Units
141 static ConstPointer<Unit> XYZ(const Unit& length_unit);
142 static ConstPointer<Unit> YXZ(const Unit& length_unit);
143
147
151
152 static ConstPointer<Unit> NorthOrientation(const Unit& length_unit, bool clockwise);
153 static ConstPointer<Unit> EastOrientation(const Unit& length_unit, bool clockwise);
154 static ConstPointer<Unit> WestOrientation(const Unit& length_unit, bool clockwise);
155 static ConstPointer<Unit> SouthOrientation(const Unit& length_unit, bool clockwise);
156
157
158 static ConstPointer<Unit> LatLonAlt(const Unit& angle_unit);
159
160 static ConstPointer<Unit> AppendInclinationOrientation(const Unit& orientation_unit, const Angle<fltp08>& horizontal_angle, bool upwards);
161
162 };
163}
#define NDEVR_BASE_API
Definition DLLInfo.h:57
The primary angle storage class for this API. Stores an angle in an optimized format.
Definition StringStream.h:540
Provides a constant, unmodifiable pointer that has shared ownership of a dynamically allocated object...
Definition GraphicsPipeline.h:42
Returns common and uncommon definitions of units that can be used by the software.
Definition UnitDefinitions.h:11
static ConstPointer< Unit > FeetPerSecond()
static ConstPointer< Unit > CubicYards()
static ConstPointer< Unit > MinutesSeconds()
static ConstPointer< Unit > Kelvin()
static ConstPointer< Unit > Gradians()
static ConstPointer< Unit > SqrMeters()
static ConstPointer< Unit > Inches()
static ConstPointer< Unit > MegaHertz()
static ConstPointer< Unit > Kilograms()
static ConstPointer< Unit > Centimeters()
static ConstPointer< Unit > Pounds()
static ConstPointer< Unit > EastingElevationNorthing(const Unit &length_unit)
static ConstPointer< Unit > DegreesMinutesSeconds()
static ConstPointer< Unit > Minutes()
static ConstPointer< Unit > DDDMMSS()
static ConstPointer< Unit > Radians()
static ConstPointer< Unit > WestingElevationSouthing(const Unit &length_unit)
static ConstPointer< Unit > RotationsPerMinute()
static ConstPointer< Unit > Millivolts()
static ConstPointer< Unit > SouthOrientation(const Unit &length_unit, bool clockwise)
static ConstPointer< Unit > SqrInches()
static ConstPointer< Unit > DegreesMinutes()
static ConstPointer< Unit > EastingNorthingElevation(const Unit &length_unit)
static ConstPointer< Unit > Millimeters()
static ConstPointer< Unit > Fahrenheit()
static ConstPointer< Unit > MilesPerHour()
static ConstPointer< Unit > WestingSouthingElevation(const Unit &length_unit)
static ConstPointer< Unit > CubicInches()
static ConstPointer< Unit > Hours()
static ConstPointer< Unit > NorthOrientation(const Unit &length_unit, bool clockwise)
static ConstPointer< Unit > Kilometers()
static ConstPointer< Unit > CubicFeet()
static ConstPointer< Unit > Yards()
static ConstPointer< Unit > SurfaceNormalPercent()
static ConstPointer< Unit > Hectares()
static ConstPointer< Unit > AppendInclinationOrientation(const Unit &orientation_unit, const Angle< fltp08 > &horizontal_angle, bool upwards)
static ConstPointer< Unit > Volts()
static ConstPointer< Unit > YXZ(const Unit &length_unit)
static ConstPointer< Unit > Degrees()
Angle Units.
static ConstPointer< Unit > WestOrientation(const Unit &length_unit, bool clockwise)
static ConstPointer< Unit > MetersPerSecond()
static ConstPointer< Unit > Ares()
static ConstPointer< Unit > XYZ(const Unit &length_unit)
static ConstPointer< Unit > Celsius()
static ConstPointer< Unit > Grams()
static ConstPointer< Unit > FeetInches()
static ConstPointer< Unit > Hertz()
static ConstPointer< Unit > KilometersPerHour()
static ConstPointer< Unit > Acres()
static ConstPointer< Unit > LatLonAlt(const Unit &angle_unit)
static ConstPointer< Unit > Meters()
static ConstPointer< Unit > NorthingElevationEasting(const Unit &length_unit)
static ConstPointer< Unit > CubicMeters()
static ConstPointer< Unit > Percent()
static ConstPointer< Unit > SqrKilometers()
static ConstPointer< Unit > SqrYards()
static ConstPointer< Unit > EastOrientation(const Unit &length_unit, bool clockwise)
static ConstPointer< Unit > Seconds()
static ConstPointer< Unit > SqrFeet()
static ConstPointer< Unit > NorthingEastingElevation(const Unit &length_unit)
static ConstPointer< Unit > Feet()
Definition ACIColor.h:37
A definition of how to describe and display data. Units can be of any type.
Definition Unit.h:36