![]() |
Orfeo Toolbox
3.16
|
This class shows the percentage progress execution of the pipeline filtering process. More...
#include <otbStandardWriterWatcher.h>
Inheritance diagram for otb::StandardWriterWatcher:
Collaboration diagram for otb::StandardWriterWatcher:Public Member Functions | |
| StandardWriterWatcher (itk::ProcessObject *process, const char *comment="") | |
| StandardWriterWatcher (itk::ProcessObject *process, itk::ProcessObject *source, const char *comment="") | |
| StandardWriterWatcher (itk::ProcessObject *process, const std::string &comment="") | |
| StandardWriterWatcher (itk::ProcessObject *process, itk::ProcessObject *source, const std::string &comment="") | |
| StandardWriterWatcher () | |
| StandardWriterWatcher (const StandardWriterWatcher &) | |
| std::string | GetComment () const |
| const char * | GetNameOfClass () |
| itk::ProcessObject * | GetProcess () |
| const unsigned int & | GetStars () const |
| itk::TimeProbe & | GetTimeProbe () |
| void | operator= (const StandardWriterWatcher &) |
| void | SetStars (int count) |
Protected Types | |
| typedef itk::SimpleMemberCommand < WriterWatcherBase > | CommandType |
Protected Member Functions | |
| virtual void | EndFilter () |
| virtual void | EndWriter () |
| virtual void | ShowFilterProgress () |
| virtual void | ShowProgress () |
| virtual void | ShowWriterProgress () |
| virtual void | StartFilter () |
| virtual void | StartWriter () |
Protected Attributes | |
| std::string | m_Comment |
| CommandType::Pointer | m_EndFilterCommand |
| unsigned long | m_EndFilterTag |
| CommandType::Pointer | m_EndWriterCommand |
| unsigned long | m_EndWriterTag |
| itk::ProcessObject::Pointer | m_Process |
| CommandType::Pointer | m_ProgressFilterCommand |
| unsigned long | m_ProgressFilterTag |
| CommandType::Pointer | m_ProgressWriterCommand |
| unsigned long | m_ProgressWriterTag |
| itk::ProcessObject::Pointer | m_SourceProcess |
| CommandType::Pointer | m_StartFilterCommand |
| unsigned long | m_StartFilterTag |
| CommandType::Pointer | m_StartWriterCommand |
| unsigned long | m_StartWriterTag |
| itk::TimeProbe | m_TimeProbe |
Private Attributes | |
| unsigned int | m_StarsCount |
This class shows the percentage progress execution of the pipeline filtering process.
This class is based on Observer design pattern Abstract class ProcessObject is the subject Event are observers
Usage example:
Definition at line 49 of file otbStandardWriterWatcher.h.
|
protectedinherited |
Internal type
Definition at line 126 of file otbWriterWatcherBase.h.
| otb::StandardWriterWatcher::StandardWriterWatcher | ( | 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 otbStandardWriterWatcher.cxx.
| otb::StandardWriterWatcher::StandardWriterWatcher | ( | itk::ProcessObject * | process, |
| itk::ProcessObject * | source, | ||
| const char * | comment = "" |
||
| ) |
Definition at line 35 of file otbStandardWriterWatcher.cxx.
| otb::StandardWriterWatcher::StandardWriterWatcher | ( | itk::ProcessObject * | process, |
| const std::string & | comment = "" |
||
| ) |
Definition at line 43 of file otbStandardWriterWatcher.cxx.
| otb::StandardWriterWatcher::StandardWriterWatcher | ( | itk::ProcessObject * | process, |
| itk::ProcessObject * | source, | ||
| const std::string & | comment = "" |
||
| ) |
Definition at line 51 of file otbStandardWriterWatcher.cxx.
|
inline |
Default constructor
Definition at line 66 of file otbStandardWriterWatcher.h.
| otb::StandardWriterWatcher::StandardWriterWatcher | ( | const StandardWriterWatcher & | watch | ) |
Copy constructor
Definition at line 59 of file otbStandardWriterWatcher.cxx.
References m_StarsCount.
|
inlineprotectedvirtual |
Callback method to show the EndEvent
Implements otb::WriterWatcherBase.
Definition at line 102 of file otbStandardWriterWatcher.h.
|
protectedvirtual |
Callback method to show the EndEvent
Implements otb::WriterWatcherBase.
Definition at line 158 of file otbStandardWriterWatcher.cxx.
|
inlineinherited |
Get the comment for the watcher.
Definition at line 82 of file otbWriterWatcherBase.h.
References otb::WriterWatcherBase::m_Comment.
|
inlineinherited |
Definition at line 69 of file otbWriterWatcherBase.h.
References itk::SmartPointer< TObjectType >::GetPointer(), and otb::WriterWatcherBase::m_Process.
|
inlineinherited |
Methods to access member data Get a pointer to the process object being watched.
Definition at line 76 of file otbWriterWatcherBase.h.
References itk::SmartPointer< TObjectType >::GetPointer(), and otb::WriterWatcherBase::m_Process.
|
inline |
Definition at line 79 of file otbStandardWriterWatcher.h.
References m_StarsCount.
|
inlineinherited |
Get a reference to the TimeProbe
Definition at line 88 of file otbWriterWatcherBase.h.
References otb::WriterWatcherBase::m_TimeProbe.
| void otb::StandardWriterWatcher::operator= | ( | const StandardWriterWatcher & | watch | ) |
operator=
Definition at line 67 of file otbStandardWriterWatcher.cxx.
References m_StarsCount, and otb::WriterWatcherBase::operator=().
|
inline |
Get/Set number of stars
Definition at line 75 of file otbStandardWriterWatcher.h.
References m_StarsCount.
|
protectedvirtual |
Callback method to show the ProgressEvent
Implements otb::WriterWatcherBase.
Definition at line 83 of file otbStandardWriterWatcher.cxx.
|
protectedvirtual |
This is the method invoked by ShowFilterProgress() and ShowWriterProgress()
Definition at line 90 of file otbStandardWriterWatcher.cxx.
References itk::blanks.
|
protectedvirtual |
Callback method to show the ProgressEvent
Implements otb::WriterWatcherBase.
Definition at line 76 of file otbStandardWriterWatcher.cxx.
|
inlineprotectedvirtual |
Callback method to show the StartEvent
Implements otb::WriterWatcherBase.
Definition at line 99 of file otbStandardWriterWatcher.h.
|
protectedvirtual |
Callback method to show the StartEvent
Implements otb::WriterWatcherBase.
Definition at line 147 of file otbStandardWriterWatcher.cxx.
|
protectedinherited |
Associated comment
Definition at line 117 of file otbWriterWatcherBase.h.
Referenced by otb::WriterWatcherBase::GetComment(), otb::WriterWatcherBase::operator=(), and otb::WriterWatcherBase::WriterWatcherBase().
|
protectedinherited |
End writer callback
Definition at line 141 of file otbWriterWatcherBase.h.
|
protectedinherited |
End observer
Definition at line 159 of file otbWriterWatcherBase.h.
|
protectedinherited |
End writer callback
Definition at line 132 of file otbWriterWatcherBase.h.
|
protectedinherited |
End observer
Definition at line 150 of file otbWriterWatcherBase.h.
|
protectedinherited |
Abstract process object
Definition at line 120 of file otbWriterWatcherBase.h.
Referenced by otb::WriterWatcherBase::GetNameOfClass(), otb::WriterWatcherBase::GetProcess(), otb::WriterWatcherBase::operator=(), and otb::WriterWatcherBase::WriterWatcherBase().
|
protectedinherited |
Progress writer callback
Definition at line 144 of file otbWriterWatcherBase.h.
|
protectedinherited |
Progress observer
Definition at line 162 of file otbWriterWatcherBase.h.
|
protectedinherited |
Progress writer callback
Definition at line 135 of file otbWriterWatcherBase.h.
|
protectedinherited |
Progress observer
Definition at line 153 of file otbWriterWatcherBase.h.
|
protectedinherited |
Second abstract process object representing the source
Definition at line 123 of file otbWriterWatcherBase.h.
Referenced by otb::WriterWatcherBase::operator=(), and otb::WriterWatcherBase::WriterWatcherBase().
|
private |
Stars coutning
Definition at line 110 of file otbStandardWriterWatcher.h.
Referenced by GetStars(), operator=(), SetStars(), and StandardWriterWatcher().
|
protectedinherited |
Start filter callback
Definition at line 138 of file otbWriterWatcherBase.h.
|
protectedinherited |
Start oberserver
Definition at line 156 of file otbWriterWatcherBase.h.
|
protectedinherited |
Start writer callback
Definition at line 129 of file otbWriterWatcherBase.h.
|
protectedinherited |
Start oberserver
Definition at line 147 of file otbWriterWatcherBase.h.
|
protectedinherited |
Computing time
Definition at line 114 of file otbWriterWatcherBase.h.
Referenced by otb::WriterWatcherBase::GetTimeProbe(), otb::WriterWatcherBase::operator=(), and otb::WriterWatcherBase::WriterWatcherBase().