CAffineCalibration2dComp.h
Go to the documentation of this file.
1 #ifndef icalib_CAffineCalibration2dComp_included
2 #define icalib_CAffineCalibration2dComp_included
3 
4 
5 // ACF includes
6 #include <icomp/CComponentBase.h>
7 
8 // ACF-Solutions includes
10 
11 
12 namespace icalib
13 {
14 
15 
20 {
21 public:
24 
25  I_BEGIN_COMPONENT(CAffineCalibration2dComp);
26  I_REGISTER_INTERFACE(ICalibration2d);
27  I_REGISTER_INTERFACE(ITransformation2d);
28  I_REGISTER_INTERFACE(iser::ISerializable);
29  I_REGISTER_INTERFACE(i2d::CAffineTransformation2d);
30  I_ASSIGN(m_m00AttrPtr, "M00", "Matrix value at the position (0, 0)", false, 1.0);
31  I_ASSIGN(m_m10AttrPtr, "M10", "Matrix value at the position (1, 0)", false, 0);
32  I_ASSIGN(m_m01AttrPtr, "M01", "Matrix value at the position (0, 1)", false, 0);
33  I_ASSIGN(m_m11AttrPtr, "M11", "Matrix value at the position (1, 1)", false, 1.0);
34  I_ASSIGN(m_translationXAttrPtr, "TranslationX", "Translation in X-direction", false, 0.0);
35  I_ASSIGN(m_translationYAttrPtr, "TranslationY", "Translation in Y-direction", false, 0.0);
36  I_ASSIGN(m_argumentUnitInfoCompPtr, "ArgumentUnitInfo", "Unit information for calibration argument", false, "ArgumentUnitInfo");
37  I_ASSIGN(m_resultUnitInfoCompPtr, "ResultUnitInfo", "Unit information for calibration argument", false, "ResultUnitInfo");
38  I_END_COMPONENT;
39 
40 protected:
41  // reimplemented (icomp::CComponentBase)
42  virtual void OnComponentCreated();
43  virtual void OnComponentDestroyed();
44 
45 private:
46  I_ATTR(double, m_m00AttrPtr);
47  I_ATTR(double, m_m10AttrPtr);
48  I_ATTR(double, m_m01AttrPtr);
49  I_ATTR(double, m_m11AttrPtr);
50  I_ATTR(double, m_translationXAttrPtr);
51  I_ATTR(double, m_translationYAttrPtr);
52  I_REF(imath::IUnitInfo, m_argumentUnitInfoCompPtr);
53  I_REF(imath::IUnitInfo, m_resultUnitInfoCompPtr);
54 };
55 
56 
57 } // namespace icalib
58 
59 
60 #endif // !icalib_CAffineCalibration2dComp_included
61 
62 
Attributable component for affine 2D calibration.
Definition of an affine transformation for 2D-spaces.

© 2007-2017 Witold Gantzke and Kirill Lepskiy