|
| | AngleUnit () |
| |
| | AngleUnit (AngleType type, uint8_t prec, bool isDecimal=true, bool suffixes=true) |
| |
| | AngleUnit (AngleType first, AngleType second, uint8_t prec, bool isDecimal=true) |
| |
| | AngleUnit (AngleType first, AngleType second, AngleType third, uint8_t prec, bool isDecimal=true) |
| |
| bool | isConventionalAngle () const |
| |
| | Unit (AngleType type) |
| |
| | Unit (AngleType first, AngleType second) |
| |
| | Unit (AngleType type, uint8_t prec, bool isDecimal=true, bool suffixes=true) |
| |
| | Unit (AngleType first, AngleType second, uint8_t prec, bool isDecimal=true) |
| |
| | Unit (AngleType first, AngleType second, AngleType third, uint8_t prec, bool isDecimal=true) |
| |
| bool | isDecimal () const |
| |
| double | divisor () const |
| |
| double | eps () const |
| |
| bool | isMetric (AngleType type) const |
| |
| double | simpleRatio (double value, double factor, bool reversed) const |
| |
| double | conversion (AngleType type, double value, bool reversed=false) const |
| |
| utility::String | suffix (AngleType type) const |
| |
| std::optional< AngleType > | fromTag (const utility::String &text) const |
| |
| utility::String | toTag (AngleType type) const |
| |
| std::optional< std::pair< AngleType, utility::String::size_type > > | findSuffix (const utility::String &text, utility::String::size_type startPos=0) const |
| |
|
|
bool | isSurveyBearing = false |
| | True if convention for survey bearings is used, e.g. N 25° W.
|
| |
|
bool | isClockwisePositive = false |
| | True if s clockwise sweep angle is positive. Ignored when isSurveyBearing = true.
|
| |
|
double | zeroOffset = 0.0 |
| | Offset to 0° (from the positive x axis)) e.g. zeroOffset = pi / 2 if 0° points North. Ignored when isSurveyBearing = true.
|
| |
|
AngleType | primary |
| | The primary unit to display.
|
| |
|
std::optional< AngleType > | secondary |
| | An optional secondary unit, e.g. for foot/inch combos (nullopt = none)
|
| |
|
std::optional< AngleType > | tertiary |
| | An optional teriary unit, e.g. for degrees/minutes/seconds combos (nullopt = none, ignored if no secondary unit)
|
| |
|
uint8_t | precision |
| | The display precision (decimal places for metric or 2^-n for fractional units.
|
| |
|
double | base |
| | The numeric base for fractional quantities (10.0 = floating point to specified decimal places, other values create a fraction)
|
| |
|
bool | isUnitSuffix |
| | True if values should be displayed with a unit suffix, e.g. "100.0mm" rather than "100.0" (always true when multiple units)
|
| |
|
bool | isLeadingZero |
| | True if a value is displayed with multiple units and zero values (apart from the last unit) should be included, e.g. 0' 10" vs 10".
|
| |
Structure to represent angle units