![]() |
NDEVR
API Documentation
|
A definition of how to describe coordinate data. More...
Public Member Functions | |
| CoordinateUnitOption (const StringView &id, const TranslatedString &name) | |
| Constructs a CoordinateUnitOption with the given identifier and name. | |
| virtual bool | hasMemberUnit (const ConstPointer< Unit > &unit) const final override |
| Checks whether the given unit is a member of this coordinate option. | |
| virtual ConstPointer< Unit > | unit () const final override |
| Returns the coordinate unit. | |
| virtual ConstPointer< Unit > | unit (const ConstPointer< Unit > &distance_unit) const final override |
| Returns a coordinate unit resolved relative to the given distance unit. | |
| Public Member Functions inherited from UnitOption | |
| UnitOption (const StringView &id, const TranslatedString &name) | |
| Constructs a UnitOption with the given identifier and display name. | |
| virtual | ~UnitOption () |
| Virtual destructor. | |
| virtual Buffer< ConstPointer< UnitOption > > | subOptions () const |
| Returns the sub-options contained within this unit option. | |
| virtual TranslatedString | title () const |
| Returns the translated display title for this unit option. | |
Additional Inherited Members | |
| Public Attributes inherited from UnitOption | |
| String | id |
| The unique string identifier of this unit option. | |
| TranslatedString | name |
| The translated display name of this unit option. | |
|
inline |
Constructs a CoordinateUnitOption with the given identifier and name.
| [in] | id | The unique string identifier for this coordinate option. |
| [in] | name | The translated display name for this coordinate option. |
Definition at line 127 of file UnitManager.h.
References UnitOption::UnitOption(), UnitOption::id, and UnitOption::name.
|
finaloverridevirtual |
Checks whether the given unit is a member of this coordinate option.
| [in] | unit | The unit to check membership for. |
Implements UnitOption.
References hasMemberUnit(), and unit().
Referenced by hasMemberUnit().
|
finaloverridevirtual |
Returns the coordinate unit.
Implements UnitOption.
Referenced by hasMemberUnit(), and unit().
|
finaloverridevirtual |
Returns a coordinate unit resolved relative to the given distance unit.
| [in] | distance_unit | The distance unit used to resolve the coordinate unit. |
Reimplemented from UnitOption.
References unit().