Xmipp
v3.23.11-Nereus
|
#include <xmipp_funcs.h>
Public Member Functions | |
BaseListener () | |
virtual | ~BaseListener () |
virtual void | OnInitOperation (unsigned long _est_it)=0 |
virtual void | OnReportOperation (const std::string &_rsOp)=0 |
virtual void | OnProgress (unsigned long _it)=0 |
virtual const unsigned & | getVerbosity () const |
virtual unsigned & | setVerbosity () |
virtual const bool & | OnUserCancel () const |
virtual bool & | setCancel () |
This class implements the xmipp listener class for notification of progress status and other operations. It is an abstract class that contains base functions useful for implementation of customer-design notification classes.
This class is not ported to Python.
Definition at line 1022 of file xmipp_funcs.h.
|
inline |
Default constructor
Definition at line 1026 of file xmipp_funcs.h.
|
inlinevirtual |
|
inlinevirtual |
This method will get the verbosity level
Definition at line 1065 of file xmipp_funcs.h.
|
pure virtual |
Initialize progress bar.
_est_it: Defines the estimated number of iterations
This method will initialize the progress bar with the number of estimated iterations.
Implemented in TextualListener.
|
pure virtual |
Show a bar with the progress in time
When the input is negative then we are setting the progress bar, this will be the total of elements to process. Afterwards the call to this routine must be in ascending order, ie, 0, 1, 2, ... No. elements
Class inheriting from this base class can define their own progress bar here.
_it: iteration number
Implemented in TextualListener.
|
pure virtual |
Shows a message indicating the operation in progress
Class inheriting from this abstract class can output this message in the way they want.
_rsop: string message
Implemented in TextualListener.
|
inlinevirtual |
This method returns true if a cancel command was set
It can be used to check whether an external event is trying to cancel any operation. Inside an algorithm you can can this method to check if a cancel operation was requested.
Definition at line 1083 of file xmipp_funcs.h.
|
inlinevirtual |
This method is used to send a cancel command
Definition at line 1090 of file xmipp_funcs.h.
|
inlinevirtual |
This method will set the verbosity level to be used
Definition at line 1072 of file xmipp_funcs.h.