Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
iqtcam::CFileAcquisitionComp Class Reference

Bitmap loader component implementing interface icam::IBitmapAcquisition over ifile::IFilePersistence. More...

#include <CFileAcquisitionComp.h>

Inheritance diagram for iqtcam::CFileAcquisitionComp:
ilog::TLoggerCompWrap< Base > iproc::TSyncProcessorWrap< icam::IBitmapAcquisition > ilog::CLoggerBase icam::IBitmapAcquisition ilog::ILoggable istd::ILogger iproc::IProcessor istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Classes

struct  ParamsInfo
 

Public Types

typedef ilog::CLoggerComponentBase BaseClass
 
- Public Types inherited from iproc::TSyncProcessorWrap< icam::IBitmapAcquisition >
typedef icam::IBitmapAcquisition BaseClass
 
- Public Types inherited from iproc::IProcessor
enum  MessageId { MI_BAD_PARAMS = 0x16372620, MI_PROCESSING_ERROR }
 
enum  ProcessorState { PS_UNKNOWN, PS_INITIALIZATION, PS_READY, PS_INVALID }
 State of processing. More...
 
enum  TaskState {
  TS_NONE, TS_WAIT, TS_OK, TS_CANCELED,
  TS_INVALID
}
 Describe state of task. More...
 

Public Member Functions

 CFileAcquisitionComp ()
 
virtual int DoProcessing (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
 Do synchronized processing. More...
 
virtual istd::CIndex2d GetBitmapSize (const iprm::IParamsSet *paramsPtr) const
 Get size of acquired bitmap for specified parameters. More...
 
virtual void OnComponentCreated ()
 
- Public Member Functions inherited from ilog::ILoggable
virtual void SetLogPtr (IMessageConsumer *logPtr)=0
 
virtual IMessageConsumerGetLogPtr () const =0
 
virtual void SetTracingEnabled (bool trace)=0
 
virtual bool IsTracingEnabled () const =0
 
- Public Member Functions inherited from iproc::TSyncProcessorWrap< icam::IBitmapAcquisition >
 TSyncProcessorWrap ()
 
virtual int GetProcessorState (const iprm::IParamsSet *paramsPtr) const
 
virtual bool AreParamsAccepted (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, const istd::IChangeable *outputPtr) const
 
virtual int BeginTask (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
 
virtual int WaitTaskFinished (int taskId=-1, double timeoutTime=-1, bool killOnTimeout=true)
 
virtual void CancelTask (int taskId=-1)
 
virtual int GetReadyTask ()
 
virtual int GetTaskState (int taskId=-1) const
 
virtual void InitProcessor (const iprm::IParamsSet *paramsPtr)
 

Protected Types

typedef QMap< QString, ParamsInfoDirInfos
 

Protected Attributes

DirInfos m_dirInfos
 
quint32 m_lastIdStamp
 
istd::CIndex2d m_lastImageSize
 
QMutex m_lock
 

Additional Inherited Members

- Protected Member Functions inherited from ilog::CLoggerBase
virtual void DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const
 

Detailed Description

Bitmap loader component implementing interface icam::IBitmapAcquisition over ifile::IFilePersistence.

Definition at line 29 of file CFileAcquisitionComp.h.

Member Typedef Documentation

Definition at line 34 of file CFileAcquisitionComp.h.

typedef QMap<QString, ParamsInfo> iqtcam::CFileAcquisitionComp::DirInfos
protected

Definition at line 73 of file CFileAcquisitionComp.h.

Constructor & Destructor Documentation

iqtcam::CFileAcquisitionComp::CFileAcquisitionComp ( )

Member Function Documentation

virtual int iqtcam::CFileAcquisitionComp::DoProcessing ( const iprm::IParamsSet paramsPtr,
const istd::IPolymorphic inputPtr,
istd::IChangeable outputPtr,
ibase::IProgressManager progressManagerPtr = NULL 
)
virtual

Do synchronized processing.

Returns
state of processing task
See Also
TaskState.

Implements iproc::IProcessor.

virtual istd::CIndex2d iqtcam::CFileAcquisitionComp::GetBitmapSize ( const iprm::IParamsSet paramsPtr) const
virtual

Get size of acquired bitmap for specified parameters.

Returns
if size of bitmap is known it returns this value. Otherwise invalid size will be returned.
See Also
istd::TIndex::IsValid().

Implements icam::IBitmapAcquisition.

virtual void iqtcam::CFileAcquisitionComp::OnComponentCreated ( )
virtual

Member Data Documentation

DirInfos iqtcam::CFileAcquisitionComp::m_dirInfos
protected

Definition at line 74 of file CFileAcquisitionComp.h.

quint32 iqtcam::CFileAcquisitionComp::m_lastIdStamp
protected

Definition at line 76 of file CFileAcquisitionComp.h.

istd::CIndex2d iqtcam::CFileAcquisitionComp::m_lastImageSize
protected

Definition at line 78 of file CFileAcquisitionComp.h.

QMutex iqtcam::CFileAcquisitionComp::m_lock
mutableprotected

Definition at line 80 of file CFileAcquisitionComp.h.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy