MeshLib Documentation
Loading...
Searching...
No Matches
MR::UnitSettings Namespace Reference

Functions

MRVIEWER_API void resetToDefaults ()
 
MRVIEWER_API bool getShowLeadingZero ()
 
MRVIEWER_API void setShowLeadingZero (bool show)
 
MRVIEWER_API char getThousandsSeparator ()
 
void setThousandsSeparator (char ch)
 
MRVIEWER_API std::optional< LengthUnitgetUiLengthUnit ()
 
MRVIEWER_API void setUiLengthUnit (std::optional< LengthUnit > unit, bool setPreferredLeadingZero)
 
MRVIEWER_API DegreesMode getDegreesMode ()
 
MRVIEWER_API void setDegreesMode (DegreesMode mode, bool setPreferredPrecision)
 
MRVIEWER_API int getUiLengthPrecision ()
 
MRVIEWER_API void setUiLengthPrecision (int precision)
 
MRVIEWER_API int getUiAnglePrecision ()
 
MRVIEWER_API void setUiAnglePrecision (int precision)
 

Function Documentation

◆ getDegreesMode()

MRVIEWER_API DegreesMode MR::UnitSettings::getDegreesMode ( )
nodiscard

◆ getShowLeadingZero()

MRVIEWER_API bool MR::UnitSettings::getShowLeadingZero ( )
nodiscard

◆ getThousandsSeparator()

MRVIEWER_API char MR::UnitSettings::getThousandsSeparator ( )
nodiscard

◆ getUiAnglePrecision()

MRVIEWER_API int MR::UnitSettings::getUiAnglePrecision ( )
nodiscard

◆ getUiLengthPrecision()

MRVIEWER_API int MR::UnitSettings::getUiLengthPrecision ( )
nodiscard

◆ getUiLengthUnit()

MRVIEWER_API std::optional< LengthUnit > MR::UnitSettings::getUiLengthUnit ( )
nodiscard

◆ resetToDefaults()

MRVIEWER_API void MR::UnitSettings::resetToDefaults ( )

◆ setDegreesMode()

MRVIEWER_API void MR::UnitSettings::setDegreesMode ( DegreesMode mode,
bool setPreferredPrecision )

◆ setShowLeadingZero()

MRVIEWER_API void MR::UnitSettings::setShowLeadingZero ( bool show)

◆ setThousandsSeparator()

void MR::UnitSettings::setThousandsSeparator ( char ch)

◆ setUiAnglePrecision()

MRVIEWER_API void MR::UnitSettings::setUiAnglePrecision ( int precision)

◆ setUiLengthPrecision()

MRVIEWER_API void MR::UnitSettings::setUiLengthPrecision ( int precision)

◆ setUiLengthUnit()

MRVIEWER_API void MR::UnitSettings::setUiLengthUnit ( std::optional< LengthUnit > unit,
bool setPreferredLeadingZero )