OTB
9.0.0
Orfeo Toolbox
|
#include <otbStandardFilterWatcher.h>
Public Member Functions | |
void | operator= (const StandardFilterWatcher &) |
StandardFilterWatcher () | |
StandardFilterWatcher (const StandardFilterWatcher &) | |
StandardFilterWatcher (itk::ProcessObject *process, const char *comment="") | |
StandardFilterWatcher (itk::ProcessObject *process, const std::string &comment="") | |
Public Member Functions inherited from otb::FilterWatcherBase | |
FilterWatcherBase () | |
FilterWatcherBase (const FilterWatcherBase &) | |
FilterWatcherBase (itk::ProcessObject *process, const char *comment="") | |
std::string | GetComment () |
const char * | GetNameOfClass () |
itk::ProcessObject * | GetProcess () |
otb::Stopwatch & | GetStopwatch () |
void | operator= (const FilterWatcherBase &) |
virtual | ~FilterWatcherBase () |
int | m_StarsCount |
int | m_CurrentNbStars |
bool | m_CoutIsConsole |
std::string | m_Buffer |
void | SetStars (int count) |
const int & | GetStars () const |
void | ShowProgress () override |
void | StartFilter () override |
void | EndFilter () override |
Additional Inherited Members | |
Protected Types inherited from otb::FilterWatcherBase | |
typedef itk::SimpleMemberCommand< FilterWatcherBase > | CommandType |
Protected Member Functions inherited from otb::FilterWatcherBase | |
virtual void | ShowProgressCallback () |
virtual void | StartFilterCallback () |
virtual void | EndFilterCallback () |
Protected Attributes inherited from otb::FilterWatcherBase | |
otb::Stopwatch | m_Stopwatch |
std::string | m_Comment |
itk::ProcessObject::Pointer | m_Process |
CommandType::Pointer | m_StartFilterCommand |
CommandType::Pointer | m_EndFilterCommand |
CommandType::Pointer | m_ProgressFilterCommand |
unsigned long | m_StartTag |
unsigned long | m_EndTag |
unsigned long | m_ProgressTag |
bool | m_Started |
bool | m_Ended |
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 52 of file otbStandardFilterWatcher.h.
otb::StandardFilterWatcher::StandardFilterWatcher | ( | itk::ProcessObject * | process, |
const char * | comment = "" |
||
) |
Constructor. Takes a ProcessObject to monitor and an optional comment string that is prepended to each event message.
otb::StandardFilterWatcher::StandardFilterWatcher | ( | itk::ProcessObject * | process, |
const std::string & | comment = "" |
||
) |
|
inline |
Default constructor
Definition at line 62 of file otbStandardFilterWatcher.h.
otb::StandardFilterWatcher::StandardFilterWatcher | ( | const StandardFilterWatcher & | ) |
Copy constructor
|
overrideprotectedvirtual |
Callback method to show the EndEvent
Implements otb::FilterWatcherBase.
|
inline |
Stars coutning
Definition at line 75 of file otbStandardFilterWatcher.h.
void otb::StandardFilterWatcher::operator= | ( | const StandardFilterWatcher & | ) |
operator=
|
inline |
Get/Set number of stars
Definition at line 71 of file otbStandardFilterWatcher.h.
|
overrideprotectedvirtual |
Callback method to show the ProgressEvent
Implements otb::FilterWatcherBase.
|
overrideprotectedvirtual |
Callback method to show the StartEvent
Implements otb::FilterWatcherBase.
|
private |
Stars coutning
Definition at line 99 of file otbStandardFilterWatcher.h.
|
private |
Stars coutning
Definition at line 97 of file otbStandardFilterWatcher.h.
|
private |
Stars coutning
Definition at line 95 of file otbStandardFilterWatcher.h.
|
private |
Stars coutning
Definition at line 93 of file otbStandardFilterWatcher.h.