CStaticCalibrationProviderComp.h
Go to the documentation of this file.
1 #ifndef icalib_CStaticCalibrationProviderComp_included
2 #define icalib_CStaticCalibrationProviderComp_included
3 
4 
5 // ACF includes
6 #include <icomp/CComponentBase.h>
8 #include <i2d/ICalibration2d.h>
10 
11 
12 namespace icalib
13 {
14 
15 
22  public icomp::CComponentBase,
24 {
25 public:
27 
28  I_BEGIN_COMPONENT(CStaticCalibrationProviderComp);
29  I_REGISTER_INTERFACE(i2d::ICalibrationProvider);
30  I_REGISTER_INTERFACE(istd::IChangeable);
31  I_ASSIGN(m_calibrationCompPtr, "Calibration", "Static calibration object", true, "Calibration");
32  I_ASSIGN_TO(m_calibrationModelCompPtr, m_calibrationCompPtr, false);
33  I_END_COMPONENT;
34 
36 
37  // reimplemented (i2d::ICalibrationProvider)
38  virtual const i2d::ICalibration2d* GetCalibration() const;
39 
40 protected:
41  // reimplemented (icomp::CComponentBase)
42  virtual void OnComponentCreated();
43  virtual void OnComponentDestroyed();
44 
45 private:
46  I_REF(i2d::ICalibration2d, m_calibrationCompPtr);
47  I_REF(imod::IModel, m_calibrationModelCompPtr);
48 
49  imod::CModelUpdateBridge m_updateBridge;
50 };
51 
52 
53 } // namespace icalib
54 
55 
56 #endif // !icalib_CStaticCalibrationProviderComp_included
57 
58 
virtual const i2d::ICalibration2d * GetCalibration() const
Implementation of a static calibration provider.

© 2007-2017 Witold Gantzke and Kirill Lepskiy