INumericValue.h
Go to the documentation of this file.
1 #ifndef imeas_INumericValue_included
2 #define imeas_INumericValue_included
3 
4 
5 // ACF includes
6 #include <iser/ISerializable.h>
7 #include <imath/CVarVector.h>
8 
9 
10 namespace imeas
11 {
12 
13 
14 class INumericConstraints;
15 
16 
20 class INumericValue: virtual public iser::ISerializable
21 {
22 public:
27  {
31  VTI_AUTO = 0,
32 
38 
43 
48 
53 
58 
63 
68 
73 
78  };
79 
85  virtual bool IsValueTypeSupported(ValueTypeId valueTypeId) const = 0;
86 
90  virtual const INumericConstraints* GetNumericConstraints() const = 0;
91 
97  virtual imath::CVarVector GetComponentValue(ValueTypeId valueTypeId) const = 0;
98 
102  virtual imath::CVarVector GetValues() const = 0;
103 
107  virtual bool SetValues(const imath::CVarVector& values) = 0;
108 };
109 
110 
111 } // namespace imeas
112 
113 
114 #endif // !imeas_INumericValue_included
115 
116 
Automatic value, implementation specific.
Definition: INumericValue.h:31
virtual imath::CVarVector GetValues() const =0
Get list of numeric values.
virtual bool IsValueTypeSupported(ValueTypeId valueTypeId) const =0
Check if the given value type (or value component) is supported.
virtual imath::CVarVector GetComponentValue(ValueTypeId valueTypeId) const =0
Get access to component value of the given type.
Line in 2D-space given in the form (x1, y1, x2, y2)
Definition: INumericValue.h:77
Describe additional meta information for set of numeric values.
Alpha value (proportion).
Definition: INumericValue.h:62
Weight of some value This value should be normalized to range [0, 1].
Definition: INumericValue.h:37
2D-transformation, given in the form (m11, m21, m12, m22, dx, dy)
Definition: INumericValue.h:72
virtual const INumericConstraints * GetNumericConstraints() const =0
Get parameter constraints describing possible parameter values.
General parameter set containing list of numeric values.
Definition: INumericValue.h:20
virtual bool SetValues(const imath::CVarVector &values)=0
Set list of numeric values.
Value of position (can be N-dimensional).
Definition: INumericValue.h:42
ValueTypeId
Define standard numeric value types.
Definition: INumericValue.h:26

© 2007-2017 Witold Gantzke and Kirill Lepskiy