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

© 2007-2017 Witold Gantzke and Kirill Lepskiy