CCaliperFeature.h
Go to the documentation of this file.
1 #ifndef iipr_CCaliperFeature_included
2 #define iipr_CCaliperFeature_included
3 
4 
6 
7 
8 namespace iipr
9 {
10 
11 
16 {
17 public:
19 
20  enum EdgeMode
21  {
24  };
25 
27  double weight,
28  double position,
29  int edgeMode);
30 
31  double GetPosition() const;
32  double GetWeight() const;
33  int GetEdgeMode() const;
34 
35  // reimplemented (imeas::INumericValue)
36  virtual bool IsValueTypeSupported(ValueTypeId valueTypeId) const;
37  virtual imath::CVarVector GetComponentValue(ValueTypeId valueTypeId) const;
38 
39  // reimplemented (iser::ISerializable)
40  virtual bool Serialize(iser::IArchive& archive);
41 
42 private:
43  double m_position;
44  double m_weight;
45  int m_edgeMode;
46 };
47 
48 
49 } // namespace iipr
50 
51 
52 #endif // !iipr_CCaliperFeature_included
53 
54 
virtual imath::CVarVector GetComponentValue(ValueTypeId valueTypeId) const
Get access to component value of the given type.
int GetEdgeMode() const
double GetWeight() const
Basic implementation of imeas::INumericValue interface.
virtual bool Serialize(iser::IArchive &archive)
Implementation of INumericValue interface for caliper-extracted features.
double GetPosition() const
imeas::CSimpleNumericValue BaseClass
CCaliperFeature(double weight, double position, int edgeMode)
ValueTypeId
Define standard numeric value types.
Definition: INumericValue.h:25
virtual bool IsValueTypeSupported(ValueTypeId valueTypeId) const
Check if the given value type (or value component) is supported.

© 2007-2011 Witold Gantzke and Kirill Lepskiy