ICF 3.1.1.10
Technical documentation of ICF Libraries
CExtremumCaliperProcessorComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iipr_CExtremumCaliperProcessorComp_included
7#define iipr_CExtremumCaliperProcessorComp_included
8
9
10// ICF includes
11#include <QtCore/QString>
14
17
18
19namespace iipr
20{
21
22
25 public iproc::TSyncProcessorWrap<ICaliperProcessor>,
26 virtual public IFeatureToProjectionMapper
27{
28public:
31
32 I_BEGIN_COMPONENT(CExtremumCaliperProcessorComp);
33 I_REGISTER_INTERFACE(iproc::IProcessor);
34 I_REGISTER_INTERFACE(ICaliperProcessor);
35 I_REGISTER_INTERFACE(IFeatureToProjectionMapper);
36 I_ASSIGN(m_caliperParamsIdAttrPtr, "CaliperParamsId", "ID of caliper parameters in parameter set", true, "CaliperParams");
37 I_END_COMPONENT;
38
39 // reimplemented (iipr::ICaliperProcessor)
40 virtual bool DoCaliper(
41 const imeas::IDataSequence& derivative,
42 const ICaliperParams* paramsPtr,
43 IFeaturesConsumer& results) override;
44
45 // reimplemented (iproc::IProcessor)
47 const iprm::IParamsSet* paramsPtr,
48 const istd::IPolymorphic* inputPtr,
49 istd::IChangeable* outputPtr,
50 bool allowAsync = false,
51 iproc::IProgressManager* progressManagerPtr = nullptr) override;
52
53 // reimplemented (iipr::IFeatureToProjectionMapper)
55 const imeas::INumericValue& feature,
56 const iprm::IParamsSet* paramsPtr,
57 double& result) const override;
58
59private:
60 I_ATTR(QByteArray, m_caliperParamsIdAttrPtr);
61};
62
63
64} // namespace iipr
65
66
67#endif // !iipr_CExtremumCaliperProcessorComp_included
68
69
Base class for component implementation.
virtual bool DoCaliper(const imeas::IDataSequence &derivative, const ICaliperParams *paramsPtr, IFeaturesConsumer &results) override
virtual bool GetProjectionPosition(const imeas::INumericValue &feature, const iprm::IParamsSet *paramsPtr, double &result) const override
Get position on projection using position extracted from projection.
iproc::TSyncProcessorWrap< ICaliperProcessor > BaseClass2
virtual iproc::CTaskState DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, bool allowAsync=false, iproc::IProgressManager *progressManagerPtr=nullptr) override
Interface allowing mapping of extracted features to native coordinate systems.
Common interface for a features container consuming feature objects.
General definition of sequence contains samples in regular time grid.
General parameter set containing list of numeric values.
Set of general parameters.
Definition IParamsSet.h:29
Represent state of asynchronous operation.
Definition CTaskState.h:28
Interface for all synchrone and asynchrone processors with "push data" model.
Definition IProcessor.h:26
Consume information about progress of some process.
Wrapper of iproc::IProcessor for simple synchrone processor implementations.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
Contains the image processing classes.

© Witold Gantzke and Kirill Lepskiy