API Documentation
Loading...
Searching...
No Matches
LocationElevationUnit Struct Reference

An Unit that has both a location and elevation (Think Lat/Lon which has meters for elevation) More...

#include <UnitTypes.h>

Inheritance diagram for LocationElevationUnit:
[legend]
Collaboration diagram for LocationElevationUnit:
[legend]

Public Member Functions

virtual const TranslatedStringabbreviation (uint01 direction=X) const override
 
virtual Unitclone (const String &name, const TranslatedString &translated_id) const override
 
virtual fltp08 convertFromString (const String &unit_string, uint01 direction=X) const override
 
virtual fltp08 convertFromUnit (const fltp08 &program_space, uint01 direction=X) const override
 
virtual Ray< 3, fltp08convertFromUnit (const Ray< 3, fltp08 > &program_space) const override
 
virtual Vertex< 3, fltp08convertFromUnit (const Vertex< 3, fltp08 > &program_space) const override
 
virtual String convertToString (const fltp08 &program_space, bool add_comma, uint04 min_decimals, uint04 max_decimals, uint04 min_digits, bool include_abv=true, uint01 direction=X) const override
 
virtual fltp08 convertToUnit (const fltp08 &program_space, uint01 direction=X) const override
 
virtual Ray< 3, fltp08convertToUnit (const Ray< 3, fltp08 > &program_space) const override
 
virtual Vertex< 3, fltp08convertToUnit (const Vertex< 3, fltp08 > &program_space) const override
 
fltp08 epsilon (fltp08 value, uint01 direction) const override
 
virtual fltp08 fromString (const String &unit_string, uint01 direction=X) const override
 
virtual String getNextPreferredSeparator (const String &current_string, uint01 direction=X) const override
 
 LocationElevationUnit (String name, TranslatedString translated_id, const Unit *location_unit, const Unit *elevation_unit)
 
virtual Matrix< fltp08matrix () const override
 
virtual const UnitsubUnit (uint01 direction) const override
 
virtual String toFormula (const String &unit_string, uint01 direction=X) const override
 
void toString (String &string, const fltp08 &program_space, bool add_comma, uint04 min_decimals, uint04 max_decimals, uint04 min_digits, bool include_abv=true, uint01 direction=X) const override
 
virtual TranslatedString translatedAxisName (uint04 index) const override
 
- Public Member Functions inherited from Unit
virtual Unitclone () const
 
template<class t_angle_type >
Angle< t_angle_type > convertAngleFromUnit (const fltp08 &unit_space, uint01 direction=X) const
 
template<class t_angle_type >
String convertToString (const Angle< t_angle_type > &program_space, bool add_comma, uint04 min_decimals, uint04 max_decimals, uint04 min_digits, bool include_abv=true, uint01 direction=X) const
 
template<class t_angle_type >
fltp08 convertToUnit (const Angle< t_angle_type > &program_space, uint01 direction=X) const
 
bool operator== (const Unit &other) const
 
String toString (const fltp08 &unit_space, bool add_comma, uint04 min_decimals, uint04 max_decimals, uint04 min_digits, bool include_abv=true, uint01 direction=X) const
 
TranslatedString translatedName () const
 
 Unit (String name, TranslatedString translated_id)
 
virtual ~Unit ()=default
 

Public Attributes

const Unitelevation_unit
 
const Unitlocation_unit
 
- Public Attributes inherited from Unit
TranslatedString axis_abbreviations [4]
 
TranslatedString axis_name_ids [4]
 
const String name
 
const TranslatedString translated_id
 

Additional Inherited Members

- Static Protected Member Functions inherited from Unit
static Buffer< StringOperatorSplit (const String &string)
 

Detailed Description

An Unit that has both a location and elevation (Think Lat/Lon which has meters for elevation)


Constructor & Destructor Documentation

◆ LocationElevationUnit()

LocationElevationUnit ( String name,
TranslatedString translated_id,
const Unit * location_unit,
const Unit * elevation_unit )

Member Function Documentation

◆ abbreviation()

virtual const TranslatedString & abbreviation ( uint01 direction = X) const
nodiscardoverridevirtual

Implements Unit.

◆ clone()

virtual Unit * clone ( const String & name,
const TranslatedString & translated_id ) const
nodiscardoverridevirtual

Implements Unit.

◆ convertFromString()

virtual fltp08 convertFromString ( const String & unit_string,
uint01 direction = X ) const
nodiscardoverridevirtual

Reimplemented from Unit.

◆ convertFromUnit() [1/3]

virtual fltp08 convertFromUnit ( const fltp08 & program_space,
uint01 direction = X ) const
nodiscardoverridevirtual

Implements Unit.

◆ convertFromUnit() [2/3]

virtual Ray< 3, fltp08 > convertFromUnit ( const Ray< 3, fltp08 > & program_space) const
nodiscardoverridevirtual

Implements Unit.

◆ convertFromUnit() [3/3]

virtual Vertex< 3, fltp08 > convertFromUnit ( const Vertex< 3, fltp08 > & program_space) const
nodiscardoverridevirtual

Implements Unit.

◆ convertToString()

virtual String convertToString ( const fltp08 & program_space,
bool add_comma,
uint04 min_decimals,
uint04 max_decimals,
uint04 min_digits,
bool include_abv = true,
uint01 direction = X ) const
nodiscardoverridevirtual

Reimplemented from Unit.

◆ convertToUnit() [1/3]

virtual fltp08 convertToUnit ( const fltp08 & program_space,
uint01 direction = X ) const
nodiscardoverridevirtual

Implements Unit.

◆ convertToUnit() [2/3]

virtual Ray< 3, fltp08 > convertToUnit ( const Ray< 3, fltp08 > & program_space) const
nodiscardoverridevirtual

Implements Unit.

◆ convertToUnit() [3/3]

virtual Vertex< 3, fltp08 > convertToUnit ( const Vertex< 3, fltp08 > & program_space) const
nodiscardoverridevirtual

Implements Unit.

◆ epsilon()

fltp08 epsilon ( fltp08 value,
uint01 direction ) const
overridevirtual

Reimplemented from Unit.

◆ fromString()

virtual fltp08 fromString ( const String & unit_string,
uint01 direction = X ) const
nodiscardoverridevirtual

Reimplemented from Unit.

◆ getNextPreferredSeparator()

virtual String getNextPreferredSeparator ( const String & current_string,
uint01 direction = X ) const
nodiscardoverridevirtual

Reimplemented from Unit.

◆ matrix()

virtual Matrix< fltp08 > matrix ( ) const
nodiscardoverridevirtual

Implements Unit.

◆ subUnit()

virtual const Unit * subUnit ( uint01 direction) const
nodiscardoverridevirtual

Implements Unit.

◆ toFormula()

virtual String toFormula ( const String & unit_string,
uint01 direction = X ) const
nodiscardoverridevirtual

Reimplemented from Unit.

◆ toString()

void toString ( String & string,
const fltp08 & program_space,
bool add_comma,
uint04 min_decimals,
uint04 max_decimals,
uint04 min_digits,
bool include_abv = true,
uint01 direction = X ) const
overridevirtual

Reimplemented from Unit.

◆ translatedAxisName()

virtual TranslatedString translatedAxisName ( uint04 index) const
nodiscardoverridevirtual

Reimplemented from Unit.

Member Data Documentation

◆ elevation_unit

const Unit* elevation_unit

◆ location_unit

const Unit* location_unit

The documentation for this struct was generated from the following file: