24 const QString& name =
"",
25 double displayMultFactor = 1.0,
47 double m_displayMultFactor;
General implementation of the IUnitInfo interface.
virtual int GetUnitType() const override
Get type of unit.
void SetUnitType(int type)
void SetValueRange(const istd::CRange &range)
virtual istd::CRange GetValueRange() const override
Get range of possible values.
void SetUnitName(const QString &name)
virtual double GetDisplayMultiplicationFactor() const override
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=NULL)
void SetDisplayMultiplicationFactor(double factor)
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
virtual const imath::IDoubleManip & GetValueManip() const override
Return number manipulator object for numeric value.
virtual QString GetUnitName() const override
Get name 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.
Represents an input/output persistence archive for object serialization.
Common class for all classes which objects can be archived or restored from archive.
static const TRange & GetInvalid()
Return invalid range.
Package with mathematical functions and algebraical primitives.