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 
8 // ACF-Solutions includes
10 
11 
12 namespace icam
13 {
14 
15 
22  public IBitmapAcquisition
23 {
24 public:
26 
27  I_BEGIN_COMPONENT(CCameraDelegatorComp);
28  I_REGISTER_INTERFACE(IBitmapAcquisition);
29  I_REGISTER_INTERFACE(iproc::IProcessor);
30  I_ASSIGN(m_slaveCameraCompPtr, "SlaveCamera", "Slave camera object", true, "SlaveCamera");
31  I_END_COMPONENT;
32 
33  // reimplemented (iipr::IBitmapAcquisition)
34  virtual istd::CIndex2d GetBitmapSize(const iprm::IParamsSet* paramsPtr) const;
35 
36  // reimplemented (iproc::IProcessor)
37  virtual int GetProcessorState(const iprm::IParamsSet* paramsPtr) const;
38  virtual bool AreParamsAccepted(
39  const iprm::IParamsSet* paramsPtr,
40  const istd::IPolymorphic* inputPtr,
41  const istd::IChangeable* outputPtr) const;
42  virtual int DoProcessing(
43  const iprm::IParamsSet* paramsPtr,
44  const istd::IPolymorphic* inputPtr,
45  istd::IChangeable* outputPtr,
46  ibase::IProgressManager* progressManagerPtr = NULL);
47  virtual int BeginTask(
48  const iprm::IParamsSet* paramsPtr,
49  const istd::IPolymorphic* inputPtr,
50  istd::IChangeable* outputPtr,
51  ibase::IProgressManager* progressManagerPtr = NULL);
52  virtual int WaitTaskFinished(
53  int taskId = -1,
54  double timeoutTime = -1,
55  bool killOnTimeout = true);
56  virtual void CancelTask(int taskId = -1);
57  virtual int GetReadyTask();
58  virtual int GetTaskState(int taskId = -1) const;
59  virtual void InitProcessor(const iprm::IParamsSet* paramsPtr);
60 
61 protected:
62  I_REF(IBitmapAcquisition, m_slaveCameraCompPtr);
63 };
64 
65 
66 } // namespace icam
67 
68 
69 #endif // !_qcam_CCameraDelegatorBase_included
70 
71 
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.
Interface for all synchrone and assynchrone processors with "push data" model.
Definition: IProcessor.h:24
virtual int GetReadyTask()
Get the ID of any ready task.
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-2011 Witold Gantzke and Kirill Lepskiy