IUnitInfo.h
Go to the documentation of this file.
1 #ifndef imath_IUnitInfo_included
2 #define imath_IUnitInfo_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 // ACF includes
9 #include <istd/IPolymorphic.h>
10 #include <istd/TRange.h>
11 #include <imath/IDoubleManip.h>
12 
13 
14 namespace imath
15 {
16 
17 
21 class IUnitInfo: virtual public istd::IPolymorphic
22 {
23 public:
27  enum UnitType
28  {
49  };
50 
54  virtual int GetUnitType() const = 0;
55 
59  virtual QString GetUnitName() const = 0;
60 
64  virtual double GetDisplayMultiplicationFactor() const = 0;
65 
70  virtual istd::CRange GetValueRange() const = 0;
71 
75  virtual const imath::IDoubleManip& GetValueManip() const = 0;
76 };
77 
78 
79 } // namespace imath
80 
81 
82 #endif // !imath_IUnitInfo_included
83 
84 
Physical unit like volt or amper.
Definition: IUnitInfo.h:36
Common interface to get information about a measurement unit.
Definition: IUnitInfo.h:21
Integer number counter, it represents number of occurence of something.
Definition: IUnitInfo.h:48
Unit relative to something others (for example %).
Definition: IUnitInfo.h:44
Interface for all manipulation using values represent as double.
Definition: IDoubleManip.h:20
Technical unit without physical dimension like pixel.
Definition: IUnitInfo.h:40
Unit type is unknown.
Definition: IUnitInfo.h:32
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
UnitType
General type of unit.
Definition: IUnitInfo.h:27
virtual QString GetUnitName() const =0
Get name of unit.
virtual istd::CRange GetValueRange() const =0
Get range of possible values.
virtual double GetDisplayMultiplicationFactor() const =0
Get multiplication factor used to calculate user input values.
virtual int GetUnitType() const =0
Get type of unit.
virtual const imath::IDoubleManip & GetValueManip() const =0
Return number manipulator object for numeric value.

© 2007-2017 Witold Gantzke and Kirill Lepskiy