6#ifndef imath_CGeneralUnitInfo_included
7#define imath_CGeneralUnitInfo_included
29 const QString& name =
"",
30 double displayMultFactor = 1.0,
52 double m_displayMultFactor;
General implementation of the IUnitInfo interface.
virtual const imath::IDoubleManip & GetValueManip() const
Return number manipulator object for numeric value.
virtual bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
void SetUnitType(int type)
void SetValueRange(const istd::CRange &range)
void SetUnitName(const QString &name)
virtual double GetDisplayMultiplicationFactor() const
Get multiplication factor used to calculate user input values.
CGeneralUnitInfo(int type=UT_UNKNOWN, const QString &name="", double displayMultFactor=1.0, const istd::CRange &range=istd::CRange::GetInvalid(), const imath::IDoubleManip *valueManipPtr=nullptr)
void SetDisplayMultiplicationFactor(double factor)
virtual istd::CRange GetValueRange() const
Get range of possible values.
virtual QString GetUnitName() const
Get name of unit.
virtual int GetUnitType() const
Get type of unit.
Interface for all manipulation using values represent as double.
Common interface to get information about a measurement unit.
@ UT_UNKNOWN
Unit type is unknown.
Represent input/output persistence archive.
Common class for all classes which objects can be archived or restored from archive.
static constexpr TRange & GetInvalid()
Package with mathematical functions and algebraical primitives.