CEdgeDistancesSupplierComp.h
Go to the documentation of this file.
1 #ifndef iipr_CEdgeDistancesSupplierComp_included
2 #define iipr_CEdgeDistancesSupplierComp_included
3 
4 
5 // ACF includes
6 #include "istd/TPointerVector.h"
7 #include "i2d/CVector2d.h"
8 
9 // ACF-Solutions includes
10 #include "iproc/IProcessor.h"
11 #include "iproc/ISupplier.h"
15 #include "iimg/IBitmapProvider.h"
19 
20 
21 namespace iipr
22 {
23 
24 
26  public iproc::TSupplierCompWrap<CFeaturesContainer>,
27  virtual public imeas::INumericValueProvider
28 {
29 public:
31 
32  I_BEGIN_COMPONENT(CEdgeDistancesSupplierComp);
33  I_REGISTER_INTERFACE(imeas::INumericValueProvider);
34  I_ASSIGN(m_bitmapProviderCompPtr, "BitmapProvider", "Provide image to analyse", true, "BitmapProvider");
35  I_ASSIGN_TO(m_bitmapSupplierCompPtr, m_bitmapProviderCompPtr, false);
36  I_ASSIGN_TO(m_bitmapProviderModelCompPtr, m_bitmapProviderCompPtr, false);
37  I_ASSIGN(m_processorCompPtr, "Processor", "Processor calculating set of positions from image", true, "Processor");
38  I_END_COMPONENT;
39 
40  // reimplemented (imeas::INumericValueProvider)
41  virtual int GetValuesCount() const;
42  virtual const imeas::INumericValue& GetNumericValue(int index) const;
43 
44 protected:
45  // reimplemented (iproc::TSupplierCompWrap)
46  virtual int ProduceObject(ProductType& result) const;
47 
48  // reimplemented (icomp::CComponentBase)
49  virtual void OnComponentCreated();
50 
51 private:
52  I_REF(iimg::IBitmapProvider, m_bitmapProviderCompPtr);
53  I_REF(iproc::ISupplier, m_bitmapSupplierCompPtr);
54  I_REF(imod::IModel, m_bitmapProviderModelCompPtr);
55  I_REF(iproc::IProcessor, m_processorCompPtr);
56 };
57 
58 
59 } // namespace iipr
60 
61 
62 #endif // !iipr_CEdgeDistancesSupplierComp_included
63 
64 
iproc::TSupplierCompWrap< CFeaturesContainer > BaseClass
Base interface for suppliers providing synchrone processing of single object with "pull data" model...
Definition: ISupplier.h:22
Provide access to the list of the numeric values.
General parameter set containing list of numeric values.
Definition: INumericValue.h:19
virtual int ProduceObject(ProductType &result) const
virtual int GetValuesCount() const
Get number of numeric values in the list.
Interface for all synchrone and assynchrone processors with "push data" model.
Definition: IProcessor.h:24
virtual const imeas::INumericValue & GetNumericValue(int index) const
Returns a single numeric value from the list.
I_ASSIGN_TO(m_bitmapSupplierCompPtr, m_bitmapProviderCompPtr, false)
Standard implementation of interface iproc::ISupplier with preparation for component implementation...

© 2007-2011 Witold Gantzke and Kirill Lepskiy