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 <iinsp/ISupplier.h>
14 #include <iimg/IBitmapProvider.h>
18 
19 
20 namespace iipr
21 {
22 
23 
25  public iinsp::TSupplierCompWrap<CFeaturesContainer>,
26  virtual public IFeaturesProvider
27 {
28 public:
30 
31  I_BEGIN_COMPONENT(CEdgeDistancesSupplierComp);
32  I_REGISTER_INTERFACE(IFeaturesProvider);
33  I_ASSIGN(m_bitmapProviderCompPtr, "BitmapProvider", "Provide image to analyse", true, "BitmapProvider");
34  I_ASSIGN_TO(m_bitmapSupplierCompPtr, m_bitmapProviderCompPtr, false);
35  I_ASSIGN_TO(m_bitmapProviderModelCompPtr, m_bitmapProviderCompPtr, false);
36  I_ASSIGN(m_processorCompPtr, "Processor", "Processor calculating set of positions from image", true, "Processor");
37  I_END_COMPONENT;
38 
39  // reimplemented (iipr::IFeaturesProvider)
40  virtual int GetFeaturesCount() const;
41  virtual const imeas::INumericValue& GetFeature(int index) const;
42 
43 protected:
44  // reimplemented (iinsp::TSupplierCompWrap)
45  virtual int ProduceObject(ProductType& result) const;
46 
47  // reimplemented (icomp::CComponentBase)
48  virtual void OnComponentCreated();
49 
50 private:
51  I_REF(iimg::IBitmapProvider, m_bitmapProviderCompPtr);
52  I_REF(iinsp::ISupplier, m_bitmapSupplierCompPtr);
53  I_REF(imod::IModel, m_bitmapProviderModelCompPtr);
54  I_REF(iproc::IProcessor, m_processorCompPtr);
55 };
56 
57 
58 } // namespace iipr
59 
60 
61 #endif // !iipr_CEdgeDistancesSupplierComp_included
62 
63 
Standard implementation of interface iinsp::ISupplier with preparation for component implementation...
virtual int GetFeaturesCount() const
Get number of stored features.
Container allowing access to features.
iinsp::TSupplierCompWrap< CFeaturesContainer > BaseClass
virtual const imeas::INumericValue & GetFeature(int index) const
Get access to single feature.
General parameter set containing list of numeric values.
Definition: INumericValue.h:20
virtual int ProduceObject(ProductType &result) const
Base interface for suppliers providing calculating of objects on demand ("pull data" model)...
Definition: ISupplier.h:22
Interface for all synchrone and asynchrone processors with "push data" model.
Definition: IProcessor.h:24

© 2007-2017 Witold Gantzke and Kirill Lepskiy