32 virtual void update(
float percent) = 0;
44 virtual void setInfo(
const char* infoStr) = 0;
87 unsigned totalPercentage = 100);
94 void scale(
unsigned totalSteps,
95 unsigned totalPercentage = 100,
96 bool updateCurrentProgress =
false);
105 bool steps(
unsigned n);
std::function< void(std::shared_ptr< core::Tensor >)> callback
virtual void stop()=0
Notifies the fact that the process has ended.
virtual void setInfo(const char *infoStr)=0
Notifies some information about the ongoing process.
virtual void setMethodTitle(const char *methodTitle)=0
Notifies the algorithm title.
virtual bool textCanBeEdited() const
Returns whether the dialog title and info can be updated or not.
virtual void update(float percent)=0
Notifies the algorithm progress.
virtual bool isCancelRequested()=0
Checks if the process should be canceled.
virtual ~GenericProgressCallback()=default
Default destructor.
float m_percentAdd
Percentage added to total progress value at each step.
AtomicCounter * m_counter
Current number of calls to 'oneStep'.
float m_percent
Total progress value (in percent)
GenericProgressCallback * progressCallback
associated GenericProgressCallback
Generic file read and write utility for python interface.