INumericValue.h
Go to the documentation of this file.
1 #ifndef imeas_INumericValue_included
2 #define imeas_INumericValue_included
3 
4 
5 #include "iser/ISerializable.h"
6 #include "imath/CVarVector.h"
7 
8 
9 namespace imeas
10 {
11 
12 
13 class INumericConstraints;
14 
15 
19 class INumericValue: virtual public iser::ISerializable
20 {
21 public:
26  {
30  VTI_AUTO = 0,
31 
37 
42 
47 
52 
57 
62 
67 
72 
77  };
78 
84  virtual bool IsValueTypeSupported(ValueTypeId valueTypeId) const = 0;
85 
89  virtual const INumericConstraints* GetNumericConstraints() const = 0;
90 
96  virtual imath::CVarVector GetComponentValue(ValueTypeId valueTypeId) const = 0;
97 
101  virtual imath::CVarVector GetValues() const = 0;
102 
106  virtual bool SetValues(const imath::CVarVector& values) = 0;
107 };
108 
109 
110 } // namespace imeas
111 
112 
113 #endif // !imeas_INumericValue_included
114 
115 
Automatic value, implementation specific.
Definition: INumericValue.h:30
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:76
Describe additional meta information for set of numeric values.
Alpha value (proportion).
Definition: INumericValue.h:61
Weight of some value This value should be normalized to range [0, 1].
Definition: INumericValue.h:36
2D-transformation, given in the form (m11, m21, m12, m22, dx, dy)
Definition: INumericValue.h:71
virtual const INumericConstraints * GetNumericConstraints() const =0
Get parameter constraints describing possible parameter values.
General parameter set containing list of numeric values.
Definition: INumericValue.h:19
virtual bool SetValues(const imath::CVarVector &values)=0
Set list of numeric values.
Value of position (can be N-dimensional).
Definition: INumericValue.h:41
ValueTypeId
Define standard numeric value types.
Definition: INumericValue.h:25

© 2007-2011 Witold Gantzke and Kirill Lepskiy