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
std::optional< LengthUnit > getActualModelLengthUnit()
char getThousandsSeparator()
DegreesMode getDegreesMode()
Angle:
int getUiLengthPrecision()
Precision:
void resetToDefaults()
Reset to some sane default.
void setUiLengthPrecision(int precision)
void setShowLeadingZero(bool show)
int getUiAnglePrecision()
void setThousandsSeparator(char ch)
bool getShowLeadingZero()
Common:
void setModelLengthUnit(std::optional< LengthUnit > unit)
void setDegreesMode(DegreesMode mode, bool setPreferredPrecision)
void setUiLengthUnit(std::optional< LengthUnit > unit, bool setPreferredLeadingZero)
int getUiRatioPrecision()
std::optional< LengthUnit > getModelLengthUnit()
std::optional< LengthUnit > getUiLengthUnit()
Length:
void setUiRatioPrecision(int precision)
void setUiAnglePrecision(int precision)