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

#include <UnitTypes.h>

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

Public Member Functions

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

Public Attributes

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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ LocationElevationUnit()

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

Member Function Documentation

◆ abbreviation()

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

Implements Unit.

◆ clone()

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

Implements Unit.

◆ convertFromString()

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

Reimplemented from Unit.

◆ convertFromUnit() [1/3]

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

Implements Unit.

◆ convertFromUnit() [2/3]

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

Implements Unit.

◆ convertFromUnit() [3/3]

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

Implements Unit.

◆ convertToString()

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]

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

Implements Unit.

◆ convertToUnit() [2/3]

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

Implements Unit.

◆ convertToUnit() [3/3]

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()

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

Reimplemented from Unit.

◆ getNextPreferredSeparator()

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

Reimplemented from Unit.

◆ matrix()

Matrix< fltp08 > matrix ( ) const
nodiscardoverridevirtual

Implements Unit.

◆ subUnit()

const Unit * subUnit ( uint01 direction) const
nodiscardoverridevirtual

Implements Unit.

◆ toFormula()

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()

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 files: