![]() |
Orfeo Toolbox
3.16
|
This class shows the percentage progress execution of the pipeline filtering process. More...
#include <otbStandardOneLineFilterWatcher.h>
Inheritance diagram for otb::StandardOneLineFilterWatcher:
Collaboration diagram for otb::StandardOneLineFilterWatcher:Public Member Functions | |
| StandardOneLineFilterWatcher (itk::ProcessObject *process, const char *comment="") | |
| StandardOneLineFilterWatcher (itk::ProcessObject *process, const std::string &comment="") | |
| StandardOneLineFilterWatcher () | |
| StandardOneLineFilterWatcher (const StandardOneLineFilterWatcher &) | |
| std::string | GetComment () |
| const char * | GetNameOfClass () |
| itk::ProcessObject * | GetProcess () |
| const int & | GetStars () const |
| itk::TimeProbe & | GetTimeProbe () |
| void | operator= (const StandardOneLineFilterWatcher &) |
| void | SetStars (int count) |
Protected Types | |
| typedef itk::SimpleMemberCommand < FilterWatcherBase > | CommandType |
Protected Member Functions | |
| virtual void | EndFilter () |
| virtual void | EndFilterCallback () |
| virtual void | ShowProgress () |
| virtual void | ShowProgressCallback () |
| virtual void | StartFilter () |
| 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 |
Private Attributes | |
| int | m_CurrentNbStars |
| int | m_StarsCount |
This class shows the percentage progress execution of the pipeline filtering process.
This class is based on Observer design patter Abstract class ProcessObject is the subject Event are observers
Usage example:
Definition at line 49 of file otbStandardOneLineFilterWatcher.h.
|
protectedinherited |
Internal type
Definition at line 133 of file otbFilterWatcherBase.h.
| otb::StandardOneLineFilterWatcher::StandardOneLineFilterWatcher | ( | 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 27 of file otbStandardOneLineFilterWatcher.cxx.
| otb::StandardOneLineFilterWatcher::StandardOneLineFilterWatcher | ( | itk::ProcessObject * | process, |
| const std::string & | comment = "" |
||
| ) |
Definition at line 36 of file otbStandardOneLineFilterWatcher.cxx.
|
inline |
Default constructor
Definition at line 62 of file otbStandardOneLineFilterWatcher.h.
| otb::StandardOneLineFilterWatcher::StandardOneLineFilterWatcher | ( | const StandardOneLineFilterWatcher & | watch | ) |
Copy constructor
Definition at line 44 of file otbStandardOneLineFilterWatcher.cxx.
References m_StarsCount.
|
protectedvirtual |
Callback method to show the EndEvent
Implements otb::FilterWatcherBase.
Definition at line 109 of file otbStandardOneLineFilterWatcher.cxx.
|
inlineprotectedvirtualinherited |
Callback method to show the EndEvent
Definition at line 105 of file otbFilterWatcherBase.h.
References otb::FilterWatcherBase::EndFilter(), and otb::FilterWatcherBase::m_Ended.
Referenced by otb::FilterWatcherBase::FilterWatcherBase(), and otb::FilterWatcherBase::operator=().
|
inlineinherited |
Get the comment for the watcher.
Definition at line 75 of file otbFilterWatcherBase.h.
References otb::FilterWatcherBase::m_Comment.
|
inlineinherited |
Definition at line 62 of file otbFilterWatcherBase.h.
References itk::SmartPointer< TObjectType >::GetPointer(), and otb::FilterWatcherBase::m_Process.
|
inlineinherited |
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 otb::FilterWatcherBase::m_Process.
|
inline |
Definition at line 75 of file otbStandardOneLineFilterWatcher.h.
References m_StarsCount.
|
inlineinherited |
Get a reference to the TimeProbe
Definition at line 81 of file otbFilterWatcherBase.h.
References otb::FilterWatcherBase::m_TimeProbe.
| void otb::StandardOneLineFilterWatcher::operator= | ( | const StandardOneLineFilterWatcher & | watch | ) |
operator=
Definition at line 52 of file otbStandardOneLineFilterWatcher.cxx.
References m_StarsCount, and otb::FilterWatcherBase::operator=().
|
inline |
Get/Set number of stars
Definition at line 71 of file otbStandardOneLineFilterWatcher.h.
References m_StarsCount.
|
protectedvirtual |
Callback method to show the ProgressEvent
Implements otb::FilterWatcherBase.
Definition at line 61 of file otbStandardOneLineFilterWatcher.cxx.
References itk::blanks.
|
inlineprotectedvirtualinherited |
Callback method to show the ProgressEvent
Definition at line 89 of file otbFilterWatcherBase.h.
References otb::FilterWatcherBase::ShowProgress().
Referenced by otb::FilterWatcherBase::FilterWatcherBase(), and otb::FilterWatcherBase::operator=().
|
protectedvirtual |
Callback method to show the StartEvent
Implements otb::FilterWatcherBase.
Definition at line 102 of file otbStandardOneLineFilterWatcher.cxx.
|
inlineprotectedvirtualinherited |
Callback method to show the StartEvent
Definition at line 95 of file otbFilterWatcherBase.h.
References otb::FilterWatcherBase::m_Started, and otb::FilterWatcherBase::StartFilter().
Referenced by otb::FilterWatcherBase::FilterWatcherBase(), and otb::FilterWatcherBase::operator=().
|
protectedinherited |
Associated comment
Definition at line 127 of file otbFilterWatcherBase.h.
Referenced by otb::FilterWatcherBase::FilterWatcherBase(), otb::FilterWatcherBase::GetComment(), and otb::FilterWatcherBase::operator=().
|
private |
Definition at line 96 of file otbStandardOneLineFilterWatcher.h.
|
protectedinherited |
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 otb::FilterWatcherBase::EndFilterCallback().
|
protectedinherited |
End filter callback
Definition at line 139 of file otbFilterWatcherBase.h.
|
protectedinherited |
End observer
Definition at line 148 of file otbFilterWatcherBase.h.
|
protectedinherited |
Abstract process object
Definition at line 130 of file otbFilterWatcherBase.h.
Referenced by otb::FilterWatcherBase::FilterWatcherBase(), otb::FilterWatcherBase::GetNameOfClass(), otb::FilterWatcherBase::GetProcess(), and otb::FilterWatcherBase::operator=().
|
protectedinherited |
Progress filter callback
Definition at line 142 of file otbFilterWatcherBase.h.
|
protectedinherited |
Progress observer
Definition at line 151 of file otbFilterWatcherBase.h.
|
private |
Stars coutning
Definition at line 94 of file otbStandardOneLineFilterWatcher.h.
Referenced by GetStars(), operator=(), SetStars(), and StandardOneLineFilterWatcher().
|
protectedinherited |
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 otb::FilterWatcherBase::StartFilterCallback().
|
protectedinherited |
Start filter callback
Definition at line 136 of file otbFilterWatcherBase.h.
|
protectedinherited |
Start oberserver
Definition at line 145 of file otbFilterWatcherBase.h.
|
protectedinherited |
Computing time
Definition at line 124 of file otbFilterWatcherBase.h.
Referenced by otb::FilterWatcherBase::FilterWatcherBase(), otb::FilterWatcherBase::GetTimeProbe(), and otb::FilterWatcherBase::operator=().