33 I_REGISTER_SUBELEMENT(CameraList);
35 I_REGISTER_SUBELEMENT_INTERFACE(CameraList,
istd::IChangeable, ExtractCameraList);
36 I_REGISTER_SUBELEMENT_INTERFACE(CameraList,
imod::IModel, ExtractCameraList);
37 I_ASSIGN_MULTI_0(m_cameraListCompPtr,
"Cameras",
"List of cameras used for snap",
true);
38 I_ASSIGN_MULTI_0(m_cameraIdsAttrPtr,
"CameraIds",
"List of camera IDs",
true);
39 I_ASSIGN_MULTI_0(m_cameraNamesAttrPtr,
"CameraNames",
"List of camera names",
true);
40 I_ASSIGN(m_sourceSelectionParamIdAttrPtr,
"CameraSelectorId",
"ID of the source camera selector parameter in the supplier's parameter set",
true,
"CameraSelectorId");
41 I_ASSIGN(m_cameraManagerParamIdAttrPtr,
"CameraManagerParamId",
"ID of the camera parameter manager in the supplier's parameter set",
true,
"CameraManagerParamId");
42 I_ASSIGN(m_parameterSetCompPtr,
"ParamsSet",
"Parameter set for camera selection",
true,
"ParamsSet");
54 const istd::IPolymorphic* inputPtr,
59 const istd::IPolymorphic* inputPtr,
61 bool allowAsync =
false,
73 int GetOptionsFlags()
const override;
74 int GetOptionsCount()
const override;
75 QString GetOptionName(
int index)
const override;
76 QString GetOptionDescription(
int index)
const override;
77 QByteArray GetOptionId(
int index)
const override;
78 bool IsOptionEnabled(
int index)
const override;
84 template <
class InterfaceType>
87 return &component.m_cameraList;
90 int GetSelectedIndex()
const;
92 IBitmapAcquisition* GetSelectedCamera()
const;
95 I_MULTIREF(IBitmapAcquisition, m_cameraListCompPtr);
96 I_MULTIATTR(QByteArray, m_cameraIdsAttrPtr);
97 I_MULTITEXTATTR(m_cameraNamesAttrPtr);
98 I_ATTR(QByteArray, m_sourceSelectionParamIdAttrPtr);
99 I_ATTR(QByteArray, m_cameraManagerParamIdAttrPtr);
This component allows image acquisition based on a camera selection.
int GetProcessorState(const iprm::IParamsSet *paramsPtr) const override
Get state of this processor for processing of specified parameters.
istd::CIndex2d GetBitmapSize(const iprm::IParamsSet *paramsPtr) const override
Get size of acquired bitmap for specified parameters.
virtual 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.
icomp::CComponentBase BaseClass
virtual 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.
void InitProcessor(const iprm::IParamsSet *paramsPtr, bool doReset) override
Init processor and give him all or part of parameters.
Bitmap acquisition processor.
Base class for component implementation.
Common interface for model objects, that supports Model/Observer design pattern.
This model wrapper provides a simple connection between a concrete istd::IChangeable implementation a...
Constraints of selection from set of possibilities.
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.
Contains interfaces, implementations and components of image acquisition and processing.