![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
This component allows image acquisition based on a camera selection. More...
#include <CMultiSourceSnapBitmapSupplierComp.h>
Public Member Functions | |
CMultiSourceSnapBitmapSupplierComp () | |
![]() | |
const iimg::IBitmap * | GetBitmap () const override |
Get access to produced bitmap object. | |
const i2d::ICalibration2d * | GetCalibration () const override |
Get access to transformation object, which transforms a local logical coordinate system to global one. | |
![]() | |
int | ProcessWorkOutput () override |
void | ClearWorkResults () override |
Remove all stored work results. | |
![]() | |
CSupplierCompBase () | |
int | GetWorkStatus () const override |
Get status of last work. | |
imod::IModel * | GetWorkStatusModel () const override |
Get access to the status model of the supplier. | |
void | InvalidateSupplier () override |
Called to signalize that this supplier is invalid. | |
void | EnsureWorkInitialized () override |
Force the supplier to initialize its work. | |
void | EnsureWorkFinished () override |
Ensure that all objects are produced. | |
const ilog::IMessageContainer * | GetWorkMessages (int containerType) const override |
Get messages outputted by this work. | |
iprm::IParamsSet * | GetModelParametersSet () const override |
Get parameter set using by this supplier. | |
![]() | |
CLoggerBase () | |
const QByteArray & | GetVerboseSenderId () const |
Get sender ID for verbose messages. | |
void | SetVerboseSenderId (const QByteArray &id) |
Set sender ID for verbose messages. | |
void | SetLogPtr (ilog::IMessageConsumer *logPtr) override |
Install log. | |
ilog::IMessageConsumer * | GetLogPtr () const override |
Get log. | |
![]() | |
![]() | |
![]() | |
virtual int | GetSupportedOperations () const |
Get set of flags for supported operations. | |
virtual bool | CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) |
Copy this object from another one. | |
virtual bool | IsEqual (const IChangeable &object) const |
Compare this object with another object. | |
virtual std::unique_ptr< IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const |
Make a copy of this object. | |
virtual bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) |
Reset data to its default state. | |
virtual QMutex * | GetChangesLock () const |
Get mutex beeing locked during changes, if available. | |
virtual void | BeginChanges (const ChangeSet &changeSet) |
Starts the change transaction. | |
virtual void | EndChanges (const ChangeSet &changeSet) |
Ends the change transaction. | |
virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
Starts group of changes. | |
virtual void | EndChangeGroup (const ChangeSet &changeSet) |
Ends group of changes. | |
![]() | |
![]() |
Protected Member Functions | |
std::unique_ptr< iimg::IBitmap > | CreateBitmap () const override |
iproc::CTaskState | DoSnap (const iprm::IParamsSet *snapParamsPtr, iimg::IBitmap &snapBitmap) const override |
Execute snap on the camera according to the given parameters. | |
bool | InitializeWork () override |
Called if the new work should be initialized. | |
![]() | |
int | ProduceObject (ProductType &result) const override |
void | OnComponentCreated () override |
![]() | |
const QPair< std::unique_ptr< const i2d::ICalibration2d >, std::unique_ptr< iimg::IBitmap > > * | GetWorkProduct () const |
Get current work product, if work was done correctly. | |
virtual int | ProduceObject (QPair< std::unique_ptr< const i2d::ICalibration2d >, std::unique_ptr< iimg::IBitmap > > &result) const=0 |
Produce single object. | |
![]() | |
virtual void | OnParametersChanged () |
Called if the supplier parameters was changed. | |
virtual void | RegisterSupplierInput (imod::IModel *modelPtr, ISupplier *supplierPtr=nullptr) |
Register supplier input. | |
virtual void | UnregisterSupplierInput (imod::IModel *modelPtr) |
Unregister supplier input. | |
virtual QString | GetDiagnosticName () const |
Get supplier name used for diagnostic reasons. | |
virtual bool | IsMessageContainerSupported (int containerType) const |
Check if message container is supported. | |
virtual void | AddMessage (const istd::IInformationProvider *messagePtr, int containerType=MCT_RESULTS) const |
Add ilog::CMessage to the internal message container (also from const functions). | |
void | OnComponentCreated () override |
void | OnComponentDestroyed () override |
![]() | |
virtual void | DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override |
Decorate message parts before outputting. | |
void | OnComponentCreated () override |
void | OnComponentDestroyed () override |
![]() | |
bool | IsVerboseEnabled () const |
Check if verbose messages are enabled. | |
bool | SendVerboseMessage (const QString &message, const QString &messageSource=QString()) const |
Send verbose message. | |
bool | SendInfoMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send info message to log. | |
bool | SendWarningMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send warning message to log. | |
bool | SendErrorMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send error message to log. | |
bool | SendCriticalMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send critical message to log. | |
bool | SendInfoMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send once info message to log. | |
bool | SendWarningMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send once warning message to log. | |
bool | SendErrorMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send once error message to log. | |
bool | SendCriticalMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send once critical message to log. | |
bool | SendUserMessage (const istd::IInformationProvider *messagePtr) const |
Send message with user object. | |
bool | AllowMessageOnceAgain (int id) |
Reset message lock. | |
bool | IsLogConsumed (const istd::IInformationProvider::InformationCategory *categoryPtr=nullptr, const int *flagsPtr=nullptr) const override |
Check if any log message is consumed. | |
bool | SendLogMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const override |
Send any message to log. | |
![]() | |
![]() | |
virtual void | OnBeginChanges () |
Callback function for begin change event. | |
virtual void | OnEndChanges (const ChangeSet &changeSet) |
Callback function for end change event. | |
Additional Inherited Members | |
![]() | |
static const ChangeSet & | GetNoChanges () |
Get empty set of changes. | |
static const ChangeSet & | GetAnyChange () |
Get anonymous change set. | |
static const ChangeSet & | GetAllChanges () |
Get anonymous change set. | |
static const ChangeSet & | GetDelegatedChanges () |
Get delegated change set. | |
![]() | |
typedef imod::TModelWrap< Status > | StatusModel |
typedef imod::TModelWrap< ilog::CMessageContainer > | MessageContainer |
![]() | |
std::unique_ptr< QPair< std::unique_ptr< const i2d::ICalibration2d >, std::unique_ptr< iimg::IBitmap > > > | m_productPtr |
![]() | |
MessageContainer | m_messageContainers [MTC_LAST+1] |
![]() | |
QSet< int > | m_onceMessageIds |
This component allows image acquisition based on a camera selection.
Multiple independent camera implementations can be registered and switched at runtime. Each camera can store its parameters in the Parameter Manager accessed from the supplier's parameter set via 'CameraManagerParamId' attribute.
Definition at line 24 of file CMultiSourceSnapBitmapSupplierComp.h.
Definition at line 27 of file CMultiSourceSnapBitmapSupplierComp.h.
icam::CMultiSourceSnapBitmapSupplierComp::CMultiSourceSnapBitmapSupplierComp | ( | ) |
|
overrideprotectedvirtual |
Implements icam::CSnapBitmapSupplierCompBase.
|
overrideprotectedvirtual |
Execute snap on the camera according to the given parameters.
Implements icam::CSnapBitmapSupplierCompBase.
|
overrideprotectedvirtual |
Called if the new work should be initialized.
Default implementation do nothing. It is dedicated to be overridden.
Reimplemented from iinsp::CSupplierCompBase.
© Witold Gantzke and Kirill Lepskiy