API Documentation
|
#include <Unit.h>
Public Member Functions | |
Unit (String name, TranslatedString translated_id) | |
virtual | ~Unit ()=default |
virtual fltp08 | convertToUnit (const fltp08 &program_space, const uint01 direction=X) const =0 |
virtual fltp08 | convertFromUnit (const fltp08 &unit_space, const uint01 direction=X) const =0 |
virtual Vertex< 3, fltp08 > | convertToUnit (const Vertex< 3, fltp08 > &program_space) const =0 |
virtual Vertex< 3, fltp08 > | convertFromUnit (const Vertex< 3, fltp08 > &unit_space) const =0 |
virtual Ray< 3, fltp08 > | convertToUnit (const Ray< 3, fltp08 > &program_space) const =0 |
virtual Ray< 3, fltp08 > | convertFromUnit (const Ray< 3, fltp08 > &unit_space) const =0 |
virtual const TranslatedString & | abbreviation (uint01 direction=X) const =0 |
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 |
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 |
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 |
virtual void | toString (String &string, const fltp08 &unit_space, bool add_comma, uint04 min_decimals, uint04 max_decimals, uint04 min_digits, bool include_abv=true, uint01 direction=X) const |
virtual fltp08 | convertFromString (const String &unit_string, uint01 direction=X) const |
virtual fltp08 | fromString (const String &unit_string, uint01 direction=X) const |
TranslatedString | translatedName () const |
virtual TranslatedString | translatedAxisName (uint04 index) const |
virtual String | getNextPreferredSeparator (const String ¤t_string, uint01 direction=X) const |
virtual String | toFormula (const String &unit_string, uint01 direction=X) const |
virtual fltp08 | epsilon (fltp08 value, uint01 direction=X) const |
virtual const Unit * | subUnit (uint01 direction) const =0 |
virtual Matrix< fltp08 > | matrix () const =0 |
bool | operator== (const Unit &other) const |
virtual Unit * | clone () const |
virtual Unit * | clone (const String &new_name, const TranslatedString &new_display_name) const =0 |
Public Attributes | |
const String | name |
const TranslatedString | translated_id |
TranslatedString | axis_name_ids [4] |
TranslatedString | axis_abbreviations [4] |
Static Protected Member Functions | |
static Buffer< String > | OperatorSplit (const String &string) |
Unit | ( | String | name, |
TranslatedString | translated_id ) |
|
virtualdefault |
|
nodiscardpure virtual |
Implemented in LocationElevationUnit, ReferenceUnit, ScaledOffsetUnit, ScaledUnit, and WGS84Unit.
|
nodiscardvirtual |
|
nodiscardpure virtual |
Implemented in AngleUnit, DDMMSSAngleUnit, LocationElevationUnit, MatrixUnit, ScaledOffsetUnit, ScaledUnit, ThreePartAngleUnit, TwoPartAngleUnit, TwoPartUnit, and WGS84Unit.
|
inlinenodiscard |
|
inlinenodiscardvirtual |
Reimplemented in LocationElevationUnit, ReferenceUnit, and ScaledUnit.
|
nodiscardpure virtual |
Implemented in AngleUnit, LocationElevationUnit, MatrixUnit, ReferenceUnit, ScaledOffsetUnit, and ScaledUnit.
|
nodiscardpure virtual |
Implemented in AngleUnit, LocationElevationUnit, MatrixUnit, ReferenceUnit, ScaledOffsetUnit, ScaledUnit, and WGS84Unit.
|
nodiscardpure virtual |
Implemented in AngleUnit, LocationElevationUnit, MatrixUnit, ReferenceUnit, ScaledOffsetUnit, ScaledUnit, and WGS84Unit.
|
inlinenodiscard |
|
inlinenodiscardvirtual |
Reimplemented in LocationElevationUnit, ReferenceUnit, and ScaledUnit.
|
inlinenodiscard |
|
nodiscardpure virtual |
Implemented in AngleUnit, LocationElevationUnit, MatrixUnit, ReferenceUnit, ScaledOffsetUnit, ScaledUnit, and WGS84Unit.
|
nodiscardpure virtual |
Implemented in AngleUnit, LocationElevationUnit, MatrixUnit, ReferenceUnit, ScaledOffsetUnit, ScaledUnit, and WGS84Unit.
|
nodiscardpure virtual |
Implemented in AngleUnit, LocationElevationUnit, MatrixUnit, ReferenceUnit, ScaledOffsetUnit, ScaledUnit, and WGS84Unit.
Reimplemented in AngleUnit, DDMMSSAngleUnit, LocationElevationUnit, MatrixUnit, ReferenceUnit, ThreePartAngleUnit, TwoPartAngleUnit, TwoPartUnit, and WGS84Unit.
|
inlinenodiscardvirtual |
Reimplemented in DDMMSSAngleUnit, LocationElevationUnit, ReferenceUnit, ScaledUnit, ThreePartAngleUnit, TwoPartAngleUnit, TwoPartUnit, and WGS84Unit.
|
nodiscardvirtual |
Reimplemented in DDMMSSAngleUnit, LocationElevationUnit, ReferenceUnit, ThreePartAngleUnit, TwoPartAngleUnit, and TwoPartUnit.
Implemented in LocationElevationUnit, MatrixUnit, ReferenceUnit, ScaledOffsetUnit, and ScaledUnit.
|
inline |
Implemented in LocationElevationUnit, MatrixUnit, ReferenceUnit, ScaledOffsetUnit, and ScaledUnit.
Reimplemented in LocationElevationUnit, and ReferenceUnit.
|
inlinenodiscard |
|
inlinevirtual |
Reimplemented in DDMMSSAngleUnit, LocationElevationUnit, ReferenceUnit, ThreePartAngleUnit, TwoPartAngleUnit, TwoPartUnit, and WGS84Unit.
|
nodiscardvirtual |
Reimplemented in LocationElevationUnit, and WGS84Unit.
|
nodiscard |
TranslatedString axis_abbreviations[4] |
TranslatedString axis_name_ids[4] |
const String name |
const TranslatedString translated_id |