CBitmapProviderCacheComp.h
Go to the documentation of this file.
1 #ifndef iipr_CBitmapProviderCacheComp_included
2 #define iipr_CBitmapProviderCacheComp_included
3 
4 
5 // ACF includes
6 #include "istd/TDelPtr.h"
7 #include "icomp/CComponentBase.h"
9 
10 // ACF-Solutions includes
11 #include "iimg/IBitmapProvider.h"
12 
13 
14 namespace iipr
15 {
16 
17 
24  public icomp::CComponentBase,
25  virtual public iimg::IBitmapProvider,
26  virtual public i2d::ICalibrationProvider
27 {
28 public:
30 
31  I_BEGIN_COMPONENT(CBitmapProviderCacheComp);
32  I_REGISTER_INTERFACE(iimg::IBitmapProvider);
33  I_REGISTER_INTERFACE(ICalibrationProvider);
34  I_END_COMPONENT;
35 
36  // reimplemented (iimg::IBitmapProvider)
37  virtual const iimg::IBitmap* GetBitmap() const;
38 
39  // reimplemented (i2d::ICalibrationProvider)
40  virtual const i2d::ICalibration2d* GetCalibration() const;
41 
42  // reimplemented (istd::IChangeable)
43  virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
44 
45 private:
46  istd::TDelPtr<iimg::IBitmap> m_bitmapPtr;
48 };
49 
50 
51 } // namespace iipr
52 
53 
54 #endif // !iipr_CBitmapProviderCacheComp_included
55 
56 
virtual const i2d::ICalibration2d * GetCalibration() const
Bitmap provider returning always stored bitmap.
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
virtual const iimg::IBitmap * GetBitmap() const

© 2007-2011 Witold Gantzke and Kirill Lepskiy