11#include <QtCore/QStringList>
12#include <QtCore/QMutex>
41 I_ASSIGN(m_bitmapLoaderCompPtr,
"BitmapLoader",
"Load bitmap from file",
true,
"BitmapLoader");
42 I_ASSIGN(m_defaultDirAttrPtr,
"DefaultDir",
"Default directory or image file path, that will be used if no parameters are specified",
true,
".");
43 I_ASSIGN(m_defaultPathParamCompPtr,
"DefaultPathParam",
"Path of file or directory will be used if no parameters are specified in paramter set",
false,
"DefaultDirParam");
44 I_ASSIGN(m_pathParamIdAttrPtr,
"DirParamId",
"Id used to get directory parameter (ifile::IFileNameParam)",
true,
"FileBitmapAcquisition");
45 I_ASSIGN(m_maxCachedDirectoriesAttrPtr,
"MaxCachedDirs",
"Maximum number of cached directories",
true, 10);
46 I_ASSIGN(m_lastFileNameCompPtr,
"LastFileName",
"Stores last processed file name here if set",
false,
"LastFileName");
47 I_ASSIGN(m_acceptedFileNamePatternAttrPtr,
"AcceptedFileNamePattern",
"Text pattern to be matched for file acceptance",
false,
"");
56 const istd::IPolymorphic* inputPtr,
61 const istd::IPolymorphic* inputPtr,
63 bool allowAsync =
false,
95 I_ATTR(QString, m_defaultDirAttrPtr);
96 I_ATTR(QByteArray, m_pathParamIdAttrPtr);
97 I_ATTR(
int, m_maxCachedDirectoriesAttrPtr);
98 I_ATTR(QString, m_acceptedFileNamePatternAttrPtr);
Bitmap acquisition processor.
Bitmap loader component implementing interface icam::IBitmapAcquisition over ifile::IFilePersistence.
void InitProcessor(const iprm::IParamsSet *paramsPtr, bool doReset) override
Init processor and give him all or part of parameters.
iproc::CTaskState DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, bool allowAsync=false, iproc::IProgressManager *progressManagerPtr=nullptr) override
Do synchronized processing.
istd::CIndex2d GetBitmapSize(const iprm::IParamsSet *paramsPtr) const override
Get size of acquired bitmap for specified parameters.
istd::CIndex2d m_lastImageSize
int GetProcessorState(const iprm::IParamsSet *paramsPtr) const override
Get state of this processor for processing of specified parameters.
QMap< QString, ParamsInfo > DirInfos
ilog::CLoggerComponentBase BaseClass
bool AreParamsAccepted(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, const istd::IChangeable *outputPtr) const override
Check if specified parameter set is accepted for this processor.
void OnComponentCreated() override
Common interface for any file system item name (e.g directory, file or URL path)
Interface providing loading and saving of data objects.
Wrapper provider of log-functionality for component based implementations.
Set of general parameters.
Represent state of asynchronous operation.
Interface for all synchrone and asynchrone processors with "push data" model.
Consume information about progress of some process.
Index implementation for addressing elements in 2D-space.
Common interface for data model objects, which can be changed.
This package contains Qt based camera implementations.
QStringList::iterator filesIter