![]() |
Orfeo Toolbox
3.16
|
This class is an abstract class Provides an interface to progress task mechanic. More...
#include <otbFilterWatcherBase.h>
Inheritance diagram for otb::FilterWatcherBase:
Collaboration diagram for otb::FilterWatcherBase:Public Member Functions | |
| FilterWatcherBase (itk::ProcessObject *process, const char *comment="") | |
| FilterWatcherBase () | |
| FilterWatcherBase (const FilterWatcherBase &) | |
| virtual | ~FilterWatcherBase () |
| std::string | GetComment () |
| const char * | GetNameOfClass () |
| itk::ProcessObject * | GetProcess () |
| itk::TimeProbe & | GetTimeProbe () |
| void | operator= (const FilterWatcherBase &) |
Protected Types | |
| typedef itk::SimpleMemberCommand < FilterWatcherBase > | CommandType |
Protected Member Functions | |
| virtual void | EndFilter ()=0 |
| virtual void | EndFilterCallback () |
| virtual void | ShowProgress ()=0 |
| virtual void | ShowProgressCallback () |
| virtual void | StartFilter ()=0 |
| virtual void | StartFilterCallback () |
Protected Attributes | |
| std::string | m_Comment |
| bool | m_Ended |
| CommandType::Pointer | m_EndFilterCommand |
| unsigned long | m_EndTag |
| itk::ProcessObject::Pointer | m_Process |
| CommandType::Pointer | m_ProgressFilterCommand |
| unsigned long | m_ProgressTag |
| bool | m_Started |
| CommandType::Pointer | m_StartFilterCommand |
| unsigned long | m_StartTag |
| itk::TimeProbe | m_TimeProbe |
This class is an abstract class Provides an interface to progress task mechanic.
Implement your callbacks
Definition at line 41 of file otbFilterWatcherBase.h.
|
protected |
Internal type
Definition at line 133 of file otbFilterWatcherBase.h.
| otb::FilterWatcherBase::FilterWatcherBase | ( | itk::ProcessObject * | process, |
| const char * | comment = "" |
||
| ) |
Constructor. Takes a ProcessObject to monitor and an optional comment string that is prepended to each event message.
Definition at line 39 of file otbFilterWatcherBase.cxx.
References EndFilterCallback(), ShowProgressCallback(), and StartFilterCallback().
| otb::FilterWatcherBase::FilterWatcherBase | ( | ) |
Default constructor
Definition at line 27 of file otbFilterWatcherBase.cxx.
| otb::FilterWatcherBase::FilterWatcherBase | ( | const FilterWatcherBase & | watch | ) |
Copy constructor
Definition at line 74 of file otbFilterWatcherBase.cxx.
References EndFilterCallback(), m_Comment, m_Process, m_TimeProbe, ShowProgressCallback(), and StartFilterCallback().
|
virtual |
Destructor.
Definition at line 157 of file otbFilterWatcherBase.cxx.
|
protectedpure virtual |
Callback method to show the EndEvent
Implemented in otb::StandardFilterWatcher, otb::StandardOneLineFilterWatcher, and otb::FltkFilterWatcher.
Referenced by EndFilterCallback().
|
inlineprotectedvirtual |
Callback method to show the EndEvent
Definition at line 105 of file otbFilterWatcherBase.h.
References EndFilter(), and m_Ended.
Referenced by FilterWatcherBase(), and operator=().
|
inline |
Get the comment for the watcher.
Definition at line 75 of file otbFilterWatcherBase.h.
References m_Comment.
|
inline |
Definition at line 62 of file otbFilterWatcherBase.h.
References itk::SmartPointer< TObjectType >::GetPointer(), and m_Process.
|
inline |
Methods to access member data Get a pointer to the process object being watched.
Definition at line 69 of file otbFilterWatcherBase.h.
References itk::SmartPointer< TObjectType >::GetPointer(), and m_Process.
|
inline |
Get a reference to the TimeProbe
Definition at line 81 of file otbFilterWatcherBase.h.
References m_TimeProbe.
| void otb::FilterWatcherBase::operator= | ( | const FilterWatcherBase & | watch | ) |
operator=
Definition at line 116 of file otbFilterWatcherBase.cxx.
References EndFilterCallback(), m_Comment, m_Process, m_TimeProbe, ShowProgressCallback(), and StartFilterCallback().
Referenced by otb::StandardFilterWatcher::operator=(), and otb::StandardOneLineFilterWatcher::operator=().
|
protectedpure virtual |
Callback method to show the ProgressEvent
Implemented in otb::StandardFilterWatcher, otb::StandardOneLineFilterWatcher, and otb::FltkFilterWatcher.
Referenced by ShowProgressCallback().
|
inlineprotectedvirtual |
Callback method to show the ProgressEvent
Definition at line 89 of file otbFilterWatcherBase.h.
References ShowProgress().
Referenced by FilterWatcherBase(), and operator=().
|
protectedpure virtual |
Callback method to show the StartEvent
Implemented in otb::StandardFilterWatcher, otb::StandardOneLineFilterWatcher, and otb::FltkFilterWatcher.
Referenced by StartFilterCallback().
|
inlineprotectedvirtual |
Callback method to show the StartEvent
Definition at line 95 of file otbFilterWatcherBase.h.
References m_Started, and StartFilter().
Referenced by FilterWatcherBase(), and operator=().
|
protected |
Associated comment
Definition at line 127 of file otbFilterWatcherBase.h.
Referenced by FilterWatcherBase(), GetComment(), and operator=().
|
protected |
Some filters (for ex. persistents) invoke the EndEvent several times Work around this by remembering if it was called or not
Definition at line 159 of file otbFilterWatcherBase.h.
Referenced by EndFilterCallback().
|
protected |
End filter callback
Definition at line 139 of file otbFilterWatcherBase.h.
|
protected |
End observer
Definition at line 148 of file otbFilterWatcherBase.h.
|
protected |
Abstract process object
Definition at line 130 of file otbFilterWatcherBase.h.
Referenced by FilterWatcherBase(), GetNameOfClass(), GetProcess(), and operator=().
|
protected |
Progress filter callback
Definition at line 142 of file otbFilterWatcherBase.h.
|
protected |
Progress observer
Definition at line 151 of file otbFilterWatcherBase.h.
|
protected |
Some filters (for ex. persistents) invoke the StartEvent several times Work around this by remembering if it was called or not
Definition at line 155 of file otbFilterWatcherBase.h.
Referenced by StartFilterCallback().
|
protected |
Start filter callback
Definition at line 136 of file otbFilterWatcherBase.h.
|
protected |
Start oberserver
Definition at line 145 of file otbFilterWatcherBase.h.
|
protected |
Computing time
Definition at line 124 of file otbFilterWatcherBase.h.
Referenced by FilterWatcherBase(), GetTimeProbe(), and operator=().