CCameraDelegatorComp.h
Go to the documentation of this file.
1 #ifndef _qcam_CCameraDelegatorBase_included
2 #define _qcam_CCameraDelegatorBase_included
3 
4 
5 // ACF includes
6 #include <ilog/TLoggerCompWrap.h>
7 #include <iprm/IParamsSet.h>
8 
9 // ACF-Solutions includes
11 
12 
13 namespace icam
14 {
15 
16 
23  public IBitmapAcquisition
24 {
25 public:
27 
28  I_BEGIN_COMPONENT(CCameraDelegatorComp);
29  I_REGISTER_INTERFACE(IBitmapAcquisition);
30  I_REGISTER_INTERFACE(iproc::IProcessor);
31  I_ASSIGN(m_slaveCameraCompPtr, "SlaveCamera", "Slave camera object", true, "SlaveCamera");
32  I_ASSIGN(m_parameterSetCompPtr, "ParamsSet", "Parameter set used for overriding of the input parameters", false, "ParamsSet");
33  I_END_COMPONENT;
34 
35  // reimplemented (iipr::IBitmapAcquisition)
36  virtual istd::CIndex2d GetBitmapSize(const iprm::IParamsSet* paramsPtr) const;
37 
38  // reimplemented (iproc::IProcessor)
39  virtual int GetProcessorState(const iprm::IParamsSet* paramsPtr) const;
40  virtual bool AreParamsAccepted(
41  const iprm::IParamsSet* paramsPtr,
42  const istd::IPolymorphic* inputPtr,
43  const istd::IChangeable* outputPtr) const;
44  virtual int DoProcessing(
45  const iprm::IParamsSet* paramsPtr,
46  const istd::IPolymorphic* inputPtr,
47  istd::IChangeable* outputPtr,
48  ibase::IProgressManager* progressManagerPtr = NULL);
49  virtual int BeginTask(
50  const iprm::IParamsSet* paramsPtr,
51  const istd::IPolymorphic* inputPtr,
52  istd::IChangeable* outputPtr,
53  ibase::IProgressManager* progressManagerPtr = NULL);
54  virtual int WaitTaskFinished(
55  int taskId = -1,
56  double timeoutTime = -1,
57  bool killOnTimeout = true);
58  virtual void CancelTask(int taskId = -1);
59  virtual int GetReadyTask();
60  virtual int GetTaskState(int taskId = -1) const;
61  virtual void InitProcessor(const iprm::IParamsSet* paramsPtr);
62 
63 protected:
64  virtual const iprm::IParamsSet* GetWorkingParamsSet(const iprm::IParamsSet* inputParamsPtr) const;
65 
66  // reimplemented (icomp::CComponentBase)
67  virtual void OnComponentCreated();
68 
69 protected:
70  I_REF(IBitmapAcquisition, m_slaveCameraCompPtr);
71  I_REF(iprm::IParamsSet, m_parameterSetCompPtr);
72 };
73 
74 
75 } // namespace icam
76 
77 
78 #endif // !_qcam_CCameraDelegatorBase_included
79 
80 
virtual istd::CIndex2d GetBitmapSize(const iprm::IParamsSet *paramsPtr) const
Get size of acquired bitmap for specified parameters.
Bitmap acquisition processor.
virtual int GetTaskState(int taskId=-1) const
Get actual task state.
ilog::CLoggerComponentBase BaseClass
virtual int DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
Do synchronized processing.
virtual int BeginTask(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
Begin new task for this processor and add them to queue.
virtual int WaitTaskFinished(int taskId=-1, double timeoutTime=-1, bool killOnTimeout=true)
Wait for task is finished.
Implementation of bitmap acquisition delegating all calls to some slave object.
virtual void InitProcessor(const iprm::IParamsSet *paramsPtr)
Init processor to optimal process with specified params.
virtual const iprm::IParamsSet * GetWorkingParamsSet(const iprm::IParamsSet *inputParamsPtr) const
Interface for all synchrone and asynchrone processors with "push data" model.
Definition: IProcessor.h:24
virtual int GetReadyTask()
Get the ID of any ready task.
virtual void OnComponentCreated()
virtual bool AreParamsAccepted(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, const istd::IChangeable *outputPtr) const
Check if specified parameter set is accepted for this processor.
virtual int GetProcessorState(const iprm::IParamsSet *paramsPtr) const
Get state of this processor for processing of specified parameters.
virtual void CancelTask(int taskId=-1)
Remove task from queue.

© 2007-2017 Witold Gantzke and Kirill Lepskiy