26 #ifndef ITK_PROGRESS_OBSERVER
27 #define ITK_PROGRESS_OBSERVER
33 #include <itkCommand.h>
34 #include <itkProcessObject.h>
57 void Execute(itk::Object* caller,
const itk::EventObject& event);
58 void Execute(
const itk::Object*
object,
const itk::EventObject& event);
79 Execute((
const itk::Object*)caller, event);
83 const itk::ProcessObject* filter =
84 dynamic_cast< const itk::ProcessObject*
>(object);
85 if (! itk::ProgressEvent().CheckEvent(&event)) {
88 compteur = filter->GetProgress();
105 this->startValue = startValue;
static void setProgressBarValue(int)
set the progress bar value, value should be in [0..100].
Definition: Application.cpp:378
Allows showing a progress bar when using ITK methods.
Definition: ItkProgressObserver.h:46
itk::SmartPointer< Self > Pointer
Definition: ItkProgressObserver.h:50
ItkProgressObserver()
Definition: ItkProgressObserver.h:70
void Reset()
Definition: ItkProgressObserver.h:93
void Execute(itk::Object *caller, const itk::EventObject &event)
Definition: ItkProgressObserver.h:78
void SetCoef(double coef)
Definition: ItkProgressObserver.h:100
void SetStartValue(double startValue)
Definition: ItkProgressObserver.h:104
itk::Command Superclass
Definition: ItkProgressObserver.h:49
ItkProgressObserver Self
Definition: ItkProgressObserver.h:48
Definition: Action.cpp:36