CMultiLayerBitmapSupplierComp.h
Go to the documentation of this file.
1 #ifndef icam_CMultiLayerBitmapSupplierComp_included
2 #define icam_CMultiLayerBitmapSupplierComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QPair>
7 
8 // ACF includes
9 #include "istd/TDelPtr.h"
11 
12 // ACF-Solutions includes
17 
18 
19 namespace icam
20 {
21 
22 
27  public iproc::TSupplierCompWrap< istd::TDelPtr<iimg::IMultiBitmapProvider> >,
28  virtual public iimg::IMultiBitmapProvider
29 {
30 public:
32 
33  I_BEGIN_COMPONENT(CMultiLayerBitmapSupplierComp);
34  I_REGISTER_INTERFACE(iimg::IMultiBitmapProvider);
35  I_REGISTER_SUBELEMENT(ScaleConstraints);
36  I_ASSIGN(m_bitmapCompFact, "BitmapFactory", "Use to create bitmap object", true, "BitmapFactory");
37  I_ASSIGN(m_bitmapAcquisitionCompPtr, "BitmapAcquisition", "Bitmap acquisition object for image snap", true, "BitmapAcquisition");
38  I_END_COMPONENT;
39 
40  // reimplemented (iimg::IMultiBitmapProvider)
41  virtual int GetBitmapsCount() const;
42  virtual const iimg::IBitmap* GetBitmap(int bitmapIndex) const;
43  virtual const iprm::IOptionsList* GetBitmapListInfo() const;
44 
45 protected:
46  // reimplemented (iproc::TSupplierCompWrap)
47  virtual bool InitializeWork();
48  virtual int ProduceObject(ProductType& result) const;
49 
50 private:
51  I_FACT(iimg::IMultiBitmapProvider, m_bitmapCompFact);
52  I_REF(IBitmapAcquisition, m_bitmapAcquisitionCompPtr);
53 };
54 
55 
56 } // namespace icam
57 
58 
59 #endif // !icam_CMultiLayerBitmapSupplierComp_included
60 
61 
virtual bool InitializeWork()
Called if the new work should be initialized.
I_REGISTER_SUBELEMENT(ScaleConstraints)
Implementation of bitmap supplier based on image acquisition.
virtual int ProduceObject(ProductType &result) const
Bitmap acquisition processor.
iproc::TSupplierCompWrap< istd::TDelPtr< iimg::IMultiBitmapProvider > > BaseClass
virtual int GetBitmapsCount() const
virtual const iimg::IBitmap * GetBitmap(int bitmapIndex) const
virtual const iprm::IOptionsList * GetBitmapListInfo() const
Standard implementation of interface iproc::ISupplier with preparation for component implementation...

© 2007-2011 Witold Gantzke and Kirill Lepskiy