|
ActiveLib
|
#include <AngleValue.h>


Public Member Functions | |
| AngleValue (double val=0.0) | |
| virtual utility::String | operator() (const measure::AngleUnit &unit) const override |
| virtual Value & | assign (const utility::String &val, const measure::AngleUnit &unit) override |
| Value & | operator= (const utility::String &val) override |
Public Member Functions inherited from active::setting::MeasuredValue< active::measure::AngleUnit > | |
| MeasuredValue () | |
| MeasuredValue (double val) | |
| MeasuredValue (const active::measure::AngleUnit &unit, double val=0.0) | |
| MeasuredValue (UnitRetrieval unitFinder, double val=0.0) | |
| Value & | operator= (const utility::String &val) override |
| virtual Value & | operator= (const Value &val) override |
| virtual Value & | operator= (bool val) override |
| virtual Value & | operator= (int32_t val) override |
| virtual Value & | operator= (uint32_t val) override |
| virtual Value & | operator= (int64_t val) override |
| virtual Value & | operator= (double val) override |
| virtual Value & | operator= (const active::utility::String &val) override |
| virtual Value & | operator= (const char *val) override |
| virtual Value & | operator= (const active::utility::Guid &val) override |
| virtual Value & | operator= (const active::utility::Time &val) override |
| Value & | operator= (const Value &val) |
| operator utility::String () const override | |
| virtual active::measure::AngleUnit | getUnit () const |
| virtual void | setUnit (const active::measure::AngleUnit &unit) |
| virtual void | setUnit (UnitRetrieval unitFinder) |
Public Member Functions inherited from active::setting::ValueBase< T > | |
| ValueBase () | |
| ValueBase (const T &val, Status stat=good) | |
| ValueBase (const Value &value) | |
| ValueBase (const utility::String &stringVal) | |
| ValueBase (const ValueBase &source)=default | |
| virtual Value * | clonePtr () const override |
| virtual bool | operator== (const Value &ref) const override |
| bool | operator!= (const Value &ref) const |
| virtual bool | operator< (const Value &ref) const override |
| virtual | operator bool () const override |
| virtual | operator int32_t () const override |
| virtual | operator uint32_t () const override |
| virtual | operator int64_t () const override |
| virtual | operator double () const override |
| virtual | operator active::utility::String () const override |
| virtual | operator active::utility::Guid () const override |
| virtual | operator active::utility::Time () const override |
| virtual bool | isNull () const override |
| virtual Type | getType () const override |
| virtual void | setDefault () override |
| Value & | operator= (const Value &val) |
Public Member Functions inherited from active::setting::Value | |
| Value (Status stat=good) | |
| virtual | ~Value ()=default |
| bool | operator!= (const Value &ref) const |
| virtual bool | isGood () const |
Public Member Functions inherited from active::utility::Cloner | |
| virtual | ~Cloner ()=default |
Additional Inherited Members | |
Public Types inherited from active::setting::MeasuredValue< active::measure::AngleUnit > | |
| using | Type |
| using | UnitRetrieval |
| Function retrieving a measument unit. | |
Public Types inherited from active::setting::Value | |
| enum class | Status { undefined = 0 , bad , good } |
| The value status (defines whether a value has been explicitly set and (if so) if it's meaningful. | |
| enum class | Type { null = 0 , boolType , idType , intType , floatType , stringType , timeType } |
| Supported value types (broad groups, e.g. int32_t and int64_t are both intType) | |
| using | Unique = std::unique_ptr<Value> |
| Unique pointer. | |
| using | Shared = std::shared_ptr<Value> |
| Shared pointer. | |
| using | Option = std::optional<Value> |
| Optional. | |
Static Public Member Functions inherited from active::setting::Value | |
| static std::optional< Type > | typeFromName (const utility::String &text) |
| static utility::String | nameForType (Type type) |
Public Attributes inherited from active::setting::ValueBase< T > | |
| T | data = T() |
| The value data. | |
Public Attributes inherited from active::setting::Value | |
| Status | status |
| The value status. | |
An angle measurement value
Angles are always stored in radians with the convention that zero degrees aligns to the positive x axis and a positive angle sweeps in an anticlockwise direction (viewed along the negative direction of the z axis). Formatting determines how this is displayed/edited in the UI, e.g. surveyor conventions may orientate 0° to North (positive y axis) with positive sweep in a clockwise direction. Refer to the Unit template for more detailed information about the presentation of measured values.
Refer to MeasuredValue for more detailed information and examples for using AngleValue.
|
inline |
Constructor
| val | The measurement value |

|
overridevirtual |
Assign a measurement value from a string
| val | A string value to assign |
| unit | The input unit |
Reimplemented from active::setting::MeasuredValue< active::measure::AngleUnit >.

|
overridevirtual |
Get the measurement as a formatted string
| unit | The output unit |
Reimplemented from active::setting::MeasuredValue< active::measure::AngleUnit >.

|
inlineoverridevirtual |
Assignment operator
| val | A string value to assign |
Reimplemented from active::setting::ValueBase< T >.