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{
8 {
9 public:
10 //Length Units
11 static ConstPointer<Unit> Meters();
12 static ConstPointer<Unit> Feet();
13 static ConstPointer<Unit> Inches();
14 static ConstPointer<Unit> Yards();
15
16
17 static ConstPointer<Unit> Centimeters();
18 static ConstPointer<Unit> FeetInches();
19 static ConstPointer<Unit> Kilometers();
20 static ConstPointer<Unit> Millimeters();
21#if NDEVR_US_SURVEY_UNITS
24#endif
25#if NDEVR_EXOTIC_UNITS
60
65#endif
66
67 //Time Units
68 static ConstPointer<Unit> Seconds();
69 static ConstPointer<Unit> Minutes();
70 static ConstPointer<Unit> MinutesSeconds();
71 static ConstPointer<Unit> Hours();
72
73 //Area Units
74 static ConstPointer<Unit> SqrMeters();
75 static ConstPointer<Unit> SqrKilometers();
76 static ConstPointer<Unit> SqrFeet();
77 static ConstPointer<Unit> SqrYards();
78 static ConstPointer<Unit> SqrInches();
79 static ConstPointer<Unit> Ares();
80 static ConstPointer<Unit> Hectares();
81 static ConstPointer<Unit> Acres();
82
83 //Volume Units
84 static ConstPointer<Unit> CubicMeters();
85 static ConstPointer<Unit> CubicFeet();
86 static ConstPointer<Unit> CubicYards();
87 static ConstPointer<Unit> CubicInches();
88#if NDEVR_EXOTIC_UNITS
92#endif
93 ///Angle Units
94 static ConstPointer<Unit> Degrees();
95 static ConstPointer<Unit> DegreesMinutes();
96 static ConstPointer<Unit> DegreesMinutesSeconds();
97 static ConstPointer<Unit> DDDMMSS();
98 static ConstPointer<Unit> Radians();
99 static ConstPointer<Unit> Gradians();
100
101 //Speed units
102 static ConstPointer<Unit> MilesPerHour();
103 static ConstPointer<Unit> KilometersPerHour();
104 static ConstPointer<Unit> FeetPerSecond();
105 static ConstPointer<Unit> MetersPerSecond();
106
107 //rotation speed units
108 static ConstPointer<Unit> RotationsPerMinute();
109 //Weight units
110 static ConstPointer<Unit> Pounds();
111 static ConstPointer<Unit> Kilograms();
112 static ConstPointer<Unit> Grams();
113#if NDEVR_EXOTIC_UNITS
118#endif
119 //Frequency Units
120 static ConstPointer<Unit> Hertz();
121 static ConstPointer<Unit> MegaHertz();
122
123 //Temperature
124 static ConstPointer<Unit> Celsius();
125 static ConstPointer<Unit> Fahrenheit();
126 static ConstPointer<Unit> Kelvin();
127
128
129 //Voltage
130 static ConstPointer<Unit> Volts();
131 static ConstPointer<Unit> Millivolts();
132
133 //Misc Units
134 static ConstPointer<Unit> Percent();
135 static ConstPointer<Unit> SurfaceNormalPercent();
136
137 //Coordinate Units
138 static ConstPointer<Unit> XYZ(const Unit& length_unit);
139 static ConstPointer<Unit> YXZ(const Unit& length_unit);
140
141 static ConstPointer<Unit> NorthingEastingElevation(const Unit& length_unit);
142 static ConstPointer<Unit> EastingNorthingElevation(const Unit& length_unit);
143 static ConstPointer<Unit> WestingSouthingElevation(const Unit& length_unit);
144
145 static ConstPointer<Unit> NorthingElevationEasting(const Unit& length_unit);
146 static ConstPointer<Unit> EastingElevationNorthing(const Unit& length_unit);
147 static ConstPointer<Unit> WestingElevationSouthing(const Unit& length_unit);
148
149 static ConstPointer<Unit> NorthOrientation(const Unit& length_unit, bool clockwise);
150 static ConstPointer<Unit> EastOrientation(const Unit& length_unit, bool clockwise);
151 static ConstPointer<Unit> WestOrientation(const Unit& length_unit, bool clockwise);
152 static ConstPointer<Unit> SouthOrientation(const Unit& length_unit, bool clockwise);
153
154
155 static ConstPointer<Unit> LatLonAlt(const Unit& angle_unit);
156
157 static ConstPointer<Unit> AppendInclinationOrientation(const Unit& orientation_unit, const Angle<fltp08>& horizontal_angle, bool upwards);
158
159 };
160}
#define NDEVR_BASE_API
Definition DLLInfo.h:78
Stores an angle in an optimized format.
Definition StringStream.h:352
Definition GraphicsPipeline.h:42
Definition UnitDefinitions.h:8
static ConstPointer< Unit > USSurveyFeetInches()
static ConstPointer< Unit > BenoitChains()
static ConstPointer< Unit > Barrel()
static ConstPointer< Unit > InternationalMiles()
static ConstPointer< Unit > Ounces()
static ConstPointer< Unit > ClarkesChains()
static ConstPointer< Unit > Liters()
static ConstPointer< Unit > LongTons()
static ConstPointer< Unit > GunterChains()
static ConstPointer< Unit > Dekameters()
static ConstPointer< Unit > Angstrom()
static ConstPointer< Unit > SouthAfricanRoods()
static ConstPointer< Unit > MetricTons()
static ConstPointer< Unit > Parsecs()
static ConstPointer< Unit > LightYears()
static ConstPointer< Unit > ClarkesFeet()
static ConstPointer< Unit > Microns()
static ConstPointer< Unit > NauticalMiles()
static ConstPointer< Unit > Microinches()
static ConstPointer< Unit > InternationalFeet()
static ConstPointer< Unit > GunterLinks()
static ConstPointer< Unit > Decimeters()
static ConstPointer< Unit > IndianYards()
static ConstPointer< Unit > AstronomicalUnits()
static ConstPointer< Unit > Nanometers()
static ConstPointer< Unit > ClarkesLinks()
static ConstPointer< Unit > SearsLinks()
static ConstPointer< Unit > GoldCoastFeet()
static ConstPointer< Unit > USSurveyFeet()
static ConstPointer< Unit > Hectometers()
static ConstPointer< Unit > BritishChains()
static ConstPointer< Unit > Rods()
static ConstPointer< Unit > BenoitLinks()
static ConstPointer< Unit > ShortTons()
static ConstPointer< Unit > InternationalInches()
static ConstPointer< Unit > GermanMeters()
static ConstPointer< Unit > SearsChains()
static ConstPointer< Unit > Gallon()
static ConstPointer< Unit > Links()
static ConstPointer< Unit > Gigameters()
static ConstPointer< Unit > CAGridUnits()
static ConstPointer< Unit > ClarkesYards()
static ConstPointer< Unit > Chains()
static ConstPointer< Unit > Mils()
static ConstPointer< Unit > GermanLegalMeters()
static ConstPointer< Unit > SearsYards()
static ConstPointer< Unit > Brealey()
Definition ACIColor.h:37
Definition Unit.h:28