32MRVIEWER_API
void setUiLengthUnit( std::optional<LengthUnit> unit,
bool setPreferredLeadingZero );
DegreesMode
This controls how the degrees are printed.
Definition MRUnits.h:53
This abstracts away the UI measurement unit configuration. Internally this uses setDefaultUnitParams(...
Definition MRUnitSettings.h:9
MRVIEWER_API char getThousandsSeparator()
MRVIEWER_API void setThousandsSeparator(char ch)
MRVIEWER_API void setDegreesMode(DegreesMode mode, bool setPreferredPrecision)
MRVIEWER_API int getUiRatioPrecision()
MRVIEWER_API void setUiAnglePrecision(int precision)
MRVIEWER_API DegreesMode getDegreesMode()
Angle:
MRVIEWER_API void setShowLeadingZero(bool show)
MRVIEWER_API void setUiRatioPrecision(int precision)
MRVIEWER_API std::optional< LengthUnit > getUiLengthUnit()
Length:
MRVIEWER_API std::optional< LengthUnit > getActualModelLengthUnit()
MRVIEWER_API void setUiLengthPrecision(int precision)
MRVIEWER_API bool getShowLeadingZero()
Common:
MRVIEWER_API void setModelLengthUnit(std::optional< LengthUnit > unit)
MRVIEWER_API void setUiLengthUnit(std::optional< LengthUnit > unit, bool setPreferredLeadingZero)
MRVIEWER_API void resetToDefaults()
Reset to some sane default.
MRVIEWER_API std::optional< LengthUnit > getModelLengthUnit()
MRVIEWER_API int getUiAnglePrecision()
MRVIEWER_API int getUiLengthPrecision()
Precision: