CFeatureToImageMapperProcessorComp.h
Go to the documentation of this file.
1 #ifndef iipr_CFeatureToImageMapperProcessorComp_included
2 #define iipr_CFeatureToImageMapperProcessorComp_included
3 
4 
5 // ACF includes
6 #include <i2d/CPosition2d.h>
7 #include <icomp/CComponentBase.h>
9 
13 
14 
15 namespace iipr
16 {
17 
18 
24  public icomp::CComponentBase,
25  public iproc::TSyncProcessorWrap<IFeatureToFeatureProcessor>
26 {
27 public:
29 
30  I_BEGIN_COMPONENT(CFeatureToImageMapperProcessorComp);
31  I_REGISTER_INTERFACE(IFeatureToFeatureProcessor);
32  I_REGISTER_INTERFACE(iproc::IProcessor);
33  I_ASSIGN(m_featuresMapperCompPtr, "FeaturesMapper", "Calculate position from caliper extracted features", true, "FeaturesMapper");
34  I_ASSIGN(m_ignoreNotMappableAttrPtr, "IgnoreNonMappable", "Enable ignoring of non-mappable features, if it is false and some feature cannot be mapped, error occures", true, false);
35  I_END_COMPONENT;
36 
37  // reimplemented (iipr::IFeatureToFeatureProcessor)
38  virtual int DoConvertFeatures(
39  const iprm::IParamsSet* paramsPtr,
40  const IFeaturesProvider& container,
41  IFeaturesConsumer& results);
42 
43  // reimplemented (iproc::IProcessor)
44  virtual int DoProcessing(
45  const iprm::IParamsSet* paramsPtr,
46  const istd::IPolymorphic* inputPtr,
47  istd::IChangeable* outputPtr,
48  ibase::IProgressManager* progressManagerPtr = NULL);
49 
50 protected:
52 
53 private:
54  I_REF(iipr::IFeatureToImageMapper, m_featuresMapperCompPtr);
55  I_ATTR(bool, m_ignoreNotMappableAttrPtr);
56 };
57 
58 
59 } // namespace iipr
60 
61 
62 #endif // !iipr_CFeatureToImageMapperProcessorComp_included
63 
64 
virtual int DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
Wrapper of iproc::IProcessor for simple synchrone processor implementations.
Processor converting feature container into set of positions using image position mapper...
TWeightedFeatureWrap< i2d::CPosition2d > PositionFeature
Interface allowing mapping of extracted features to native coordinate systems.
Container allowing access to features.
Allow to extract some features from another one.
Common interface for a features container consuming feature objects.
Interface for all synchrone and asynchrone processors with "push data" model.
Definition: IProcessor.h:24
virtual int DoConvertFeatures(const iprm::IParamsSet *paramsPtr, const IFeaturesProvider &container, IFeaturesConsumer &results)

© 2007-2017 Witold Gantzke and Kirill Lepskiy