This class will maintain information about the units, display units, and coordinate systems used in VR-Vantage.
Definitions:
- Unit: A unit of measurement for a display unit type. Ex: Meters, Minutes
- Display Unit: A collection of attributes that describe how to display information in a given context.
Example 'Display Unit' use cases this class addresses are:
- How should I display the velocity of a fixed-wing aircraft?
- How should I display visibility information as it relates to weather conditions, e.g. fog?
The class defaults are defined in DtSharedDisplayUnitsSettings::initEntries.
This class maintains information about the following units of measurements for distance:
- Meters - Feet - Nautical Miles
- Kilometers - Miles - Fathoms
- Inches - Millimeters
This class maintains information about the following units of measurements for velocity:
- Meters/Second - Kilometers/Hour - Miles/Hour
- Meters/Hour - Feet/Hour - Knots
- Millimeters/Hour - Inches/Hour
This class maintains information about the following units of measurements for acceleration:
- Meters/Second^2 - Feet/Second^2 - Miles/Second^2
- Kilometers/Second^2 - Nautical Miles/Second^2
This class maintains information about the following units of measurements for orientation:
This class maintains information about the following units of measurements for rotational velocity:
- Radians/Second - Radians/Minute - Radians/Hour
- Degrees/Second - Degrees/Minute - Degrees/Hour
This class maintains information about the following units of measurements for pressure:
- Pascals - Inches of Mercury - Millibars
- Kilopascals - Atmospheres
This class maintains information about the following units of measurements for temperature:
- Kelvin - Celsius - Fahrenheit
This class maintains multiple collections of display units by name. This class defines the following collections by default:
- Application
- Weather
- Default
- Fixed Wing
- Rotary Wing
- Lifeform
- Ground
- Surface
- Subsurface
- Space A collection of display units can have display units exclusive to that collection.
By default, the 'Application' display units are defined as:
- Coordinate System
- Coordinate System (Sensor View)
- Distance
- Distance (Small)
- Rotational Velocity
- Acceleration
- Orientation
- 3D Compass
- Heading
- Range/Bearing Lines
By default, the 'Weather' display units are defined as:
- Distance
- Altitude
- Visibility
- Pressure
- Temperature
- Precipitation Depth
- Precipitation Rate
- Wind Speed
- Direction
By default, the 'Default', 'Fixed Wing', 'Rotary Wing', 'Surface', 'Subsurface', and 'Space' display units are defined as:
This class maintains information about the following coordinate systems:
- Database - Geodetic Deg/Min/Sec - Geodetic Decimal
- Geocentric - UTM - MGRS
- Geodetic Deg/Dec/Min
This class maintains information about the following heading types:
- True North - Magnetic North - Grid North That is, a heading can be relative to either Earth's True North position, Magnetic North position, or a Grid North position
This class provides methods that allows users to access unit of measurement information. For example, to get information about all the units of measurements for Distance: Units foundUnits; getUnitAttributes(DtUnitConverterCollection::Distance, foundUnits);
This class considers each coordinate system as a 'unit of measurement' for the 'Coordinate System' display unit type. Thus getting information about all supported coordinate systems is the same as getting information about another display unit type. For example, for coordinate systems: Units foundAttributes; getUnitAttributes(DtUnitConverterCollection::CoordinateSystem, foundAttributes);
This class provides methods that allows users to access display unit information by name. For example, to get display unit information for Visibility, in the context of Weather, users of this class would do the following: DisplayAttributes desiredDisplayUnitAttributes; getDisplayUnitAttributes(theWeatherDisplayUnitCollectionName, theVisibilityDisplayUnitName, desiredDisplayUnitAttributes); or by doing the following: DisplayAttributes* desiredDisplayUnitAttributes; desiredDisplayUnitAttributes = findDisplayUnitAttributes( theWeatherDisplayUnitCollectionName, theVisibilityDisplayUnitName);
|
| virtual | ~DtSharedDisplayUnitsSettings () |
| |
| void | coordinateSystemLabels (const DtCoordinateSystem &displayCS, DtUnicode &x, DtUnicode &y, DtUnicode &z) const |
| |
| void | coordinateSystemLabels (const DtCoordinateSystem &displayCS, CoordSys coordSys, DtUnicode &x, DtUnicode &y, DtUnicode &z) const |
| |
| DtUnicode | xyUnitNotation (const DtCoordinateSystem &displayCS) const |
| |
| DtUnicode | xyUnitNotation (const DtCoordinateSystem &displayCS, CoordSys coordSys) const |
| |
| DtUnicode | zUnitNotation (const DtCoordinateSystem &displayCS) const |
| |
| DtUnicode | zUnitNotation (const DtCoordinateSystem &displayCS, CoordSys coordSys) const |
| |
|
| void | setUnitAttributes (makArchives::DtDisplayUnitsSettingsRecord::DisplayUnitType displayUnitType, const Units &data) |
| |
| bool | getUnitAttributes (makArchives::DtDisplayUnitsSettingsRecord::DisplayUnitType displayUnitType, Units &value) const |
| |
| const DisplayUnitCollectionMap & | displayUnitCollectionMap () const |
| |
| DisplayUnitCollectionMap & | displayUnitCollectionMap () |
| |
| void | setDisplayUnitAttributes (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName, const DisplayAttributes &data) |
| |
| bool | getDisplayUnitAttributes (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName, DisplayAttributes &value) const |
| |
| DisplayAttributes * | findDisplayUnitAttributes (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName) |
| |
| const DisplayAttributes * | findDisplayUnitAttributes (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName) const |
| |
| void | setSuppressMagneticNorthNotationEnabled (bool isEnabled) |
| |
| bool | isSuppressMagneticNorthNotationEnabled () const |
| |
|
| void | setCoordinateSystem (CoordSys cs) |
| |
|
| void | setDisplayUnitUnit (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName, unsigned int unitEnumerationValue) |
| |
| void | setDisplayUnitDecimals (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName, unsigned int decimals) |
| |
| unsigned int | displayUnitUnit (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName) const |
| |
| unsigned int | displayUnitDecimals (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName) const |
| |
| DtUnicode | displayUnitNotation (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName) const |
| |
|
| DtUnicode | coordinateSystemNotation (CoordSys cs) const |
| |
| DtUnicode | distanceUnitNotation (DistanceUnits distUnit) const |
| |
| DtUnicode | velocityUnitNotation (VelocityUnits velocityUnit) const |
| |
| DtUnicode | orientationUnitNotation (OrientationUnits oriUnit) const |
| |
| DtUnicode | accelerationUnitNotation (AccelerationUnits accelUnit) const |
| |
| DtUnicode | rotationalVelocityUnitNotation (RotVelocityUnits wUnit) const |
| |
| DtUnicode | temperatureUnitNotation (TemperatureUnits tempUnit) const |
| |
| DtUnicode | pressureUnitNotation (PressureUnits pressureUnit) const |
| |
| DtUnicode | northUnitNotation (NorthUnits northUnit) const |
| |
|
| CoordSys | currentCoordinateSystem () const |
| |
| int | currentCoordinateSystemDecimals () const |
| |
| DtUnicode | currentCoordinateSystemNotation () const |
| |
|
| void | setFromRecord (const makArchives::DtDisplayUnitsSettingsRecord &rec) |
| |
| void | getRecord (makArchives::DtDisplayUnitsSettingsRecord &rec) const |
| |
virtual const
DtDisplayUnitsSettingsBackup * | settingsBackup () const |
| |
virtual
DtDisplayUnitsSettingsBackup * | settingsBackup () |
| |
| virtual void | backup () |
| |
| | DtSharedSettings (const DtSharedSettingsManager &manager) |
| |
| virtual | ~DtSharedSettings () |
| |
| boost::shared_mutex & | mutex () |
| |
| SafetyKey | safeToEmitSignals () |
| |
| void | setCurrentWriteLock (boost::unique_lock< boost::shared_mutex > *currentWriteLock) |
| |
| | DtVirtualBaseClass () |
| |
| virtual | ~DtVirtualBaseClass () |
| |