Public Types | Public Member Functions | Protected Member Functions | List of all members
iipr::CDelegatedBitmapSupplierComp Class Reference

Image supplier delegating the calls to another one or accessing some bitmap object directly. More...

#include <CDelegatedBitmapSupplierComp.h>

Inheritance diagram for iipr::CDelegatedBitmapSupplierComp:
ilog::TLoggerCompWrap< Base > istd::IChangeable iimg::IBitmapProvider i2d::ICalibrationProvider iinsp::ISupplier ilog::CLoggerBase istd::IPolymorphic istd::IChangeable istd::IChangeable istd::IChangeable ilog::ILoggable istd::ILogger istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Public Types

typedef ilog::CLoggerComponentBase BaseClass
 
- Public Types inherited from iinsp::ISupplier
enum  WorkStatus {
  WS_INVALID, WS_INIT, WS_LOCKED, WS_OK,
  WS_CANCELED, WS_FAILED
}
 
enum  ChangeFlags { CF_SUPPLIER_RESULTS = 0x6326415 }
 Data model change notification flags. More...
 
enum  MessageContainerType { MCT_RESULTS, MCT_TEMP, MTC_LAST = MCT_TEMP }
 

Public Member Functions

 CDelegatedBitmapSupplierComp ()
 
virtual const iimg::IBitmapGetBitmap () const
 
virtual const i2d::ICalibration2dGetCalibration () const
 
virtual int GetWorkStatus () const
 Get status of last work. More...
 
virtual imod::IModelGetWorkStatusModel () const
 Get access to the status model of the supplier. More...
 
virtual void InvalidateSupplier ()
 Called to signalize that this supplier is invalid. More...
 
virtual void EnsureWorkInitialized ()
 Force the supplier to initialize its work. More...
 
virtual void EnsureWorkFinished ()
 Ensure that all objects are produced. More...
 
virtual void ClearWorkResults ()
 Remove all stored work results. More...
 
virtual const
ilog::IMessageContainer
GetWorkMessages (int containerType) const
 Get messages outputted by this work. More...
 
virtual iprm::IParamsSetGetModelParametersSet () const
 Get parameter set using by this supplier. More...
 
- 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
 

Protected Member Functions

virtual void OnComponentCreated ()
 
virtual void OnComponentDestroyed ()
 
- 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

Image supplier delegating the calls to another one or accessing some bitmap object directly.

Definition at line 26 of file CDelegatedBitmapSupplierComp.h.

Member Typedef Documentation

Definition at line 34 of file CDelegatedBitmapSupplierComp.h.

Constructor & Destructor Documentation

iipr::CDelegatedBitmapSupplierComp::CDelegatedBitmapSupplierComp ( )

Member Function Documentation

virtual void iipr::CDelegatedBitmapSupplierComp::ClearWorkResults ( )
virtual

Remove all stored work results.

This set also work state to WS_INIT.

Implements iinsp::ISupplier.

virtual void iipr::CDelegatedBitmapSupplierComp::EnsureWorkFinished ( )
virtual

Ensure that all objects are produced.

Implements iinsp::ISupplier.

virtual void iipr::CDelegatedBitmapSupplierComp::EnsureWorkInitialized ( )
virtual

Force the supplier to initialize its work.

First if work is initialized, new calculation can be done.

Implements iinsp::ISupplier.

virtual const iimg::IBitmap* iipr::CDelegatedBitmapSupplierComp::GetBitmap ( ) const
virtual

Implements iimg::IBitmapProvider.

virtual const i2d::ICalibration2d* iipr::CDelegatedBitmapSupplierComp::GetCalibration ( ) const
virtual
virtual iprm::IParamsSet* iipr::CDelegatedBitmapSupplierComp::GetModelParametersSet ( ) const
virtual

Get parameter set using by this supplier.

The pointed object will not be relocated - no reconnect is needed if it is observed. If the supplier doesn't support parameters, it returns NULL.

Implements iinsp::ISupplier.

virtual const ilog::IMessageContainer* iipr::CDelegatedBitmapSupplierComp::GetWorkMessages ( int  containerType) const
virtual

Get messages outputted by this work.

The pointed object will not be relocated - no reconnect is needed if it is observed. If the supplier doesn't support list of messages, it returns NULL.

Parameters
containerTypetype of message container,
See Also
MessageContainerType.

Implements iinsp::ISupplier.

virtual int iipr::CDelegatedBitmapSupplierComp::GetWorkStatus ( ) const
virtual

Get status of last work.

Please note, that this status is not a part of supplier model and can be changed without any notification. If you want to observe the status model of the supplier, please use the GetWorkStatusModel method.

Returns
work status defined in iinsp::ISupplier::WorkStatus.
See Also
GetWorkStatusModel

Implements iinsp::ISupplier.

virtual imod::IModel* iipr::CDelegatedBitmapSupplierComp::GetWorkStatusModel ( ) const
virtual

Get access to the status model of the supplier.

Implements iinsp::ISupplier.

virtual void iipr::CDelegatedBitmapSupplierComp::InvalidateSupplier ( )
virtual

Called to signalize that this supplier is invalid.

This signal will be transfered to all supplier which are registered as output.

Returns
true, if initialization could be done.

Implements iinsp::ISupplier.

virtual void iipr::CDelegatedBitmapSupplierComp::OnComponentCreated ( )
protectedvirtual
virtual void iipr::CDelegatedBitmapSupplierComp::OnComponentDestroyed ( )
protectedvirtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy