CCaliperDistanceFeature.h
Go to the documentation of this file.
1 #ifndef iipr_CCaliperDistanceFeature_included
2 #define iipr_CCaliperDistanceFeature_included
3 
4 
5 // ACF includes
6 #include "i2d/CLine2d.h"
7 
8 // ACF-Solutions includes
10 
11 
12 namespace iipr
13 {
14 
15 
20 {
21 public:
23 
24  CCaliperDistanceFeature(const i2d::CLine2d& caliperLine, double weight);
25 
26  double GetDistance() const;
27 
28  // reimplemented (imeas::INumericValue)
29  virtual bool IsValueTypeSupported(ValueTypeId valueTypeId) const;
30  virtual imath::CVarVector GetComponentValue(ValueTypeId valueTypeId) const;
31 };
32 
33 
34 } // namespace iipr
35 
36 
37 #endif // !iipr_CCaliperDistanceFeature_included
38 
39 
iipr::TWeightedFeatureWrap< i2d::CLine2d > BaseClass
virtual bool IsValueTypeSupported(ValueTypeId valueTypeId) const
Check if the given value type (or value component) is supported.
virtual imath::CVarVector GetComponentValue(ValueTypeId valueTypeId) const
Get access to component value of the given type.
CCaliperDistanceFeature(const i2d::CLine2d &caliperLine, double weight)
Implementation of INumericValue interface for caliper based distance measurement feature.
Wrapper allowing to create feature object from some another serializable one.
ValueTypeId
Define standard numeric value types.
Definition: INumericValue.h:25

© 2007-2011 Witold Gantzke and Kirill Lepskiy