19#ifndef elxProgressCommand_h
20#define elxProgressCommand_h
22#include "itkProcessObject.h"
23#include "itkCommand.h"
121 Execute(itk::Object * caller,
const itk::EventObject & event)
override;
124 Execute(
const itk::Object * caller,
const itk::EventObject & event)
override;
141 itkSetStringMacro(StartString);
142 itkGetStringMacro(StartString);
145 itkSetStringMacro(EndString);
146 itkGetStringMacro(EndString);
A specialized Command object for updating the progress of a filter.
void PrintProgress(const float progress) const
itk::ProcessObject ProcessObjectType
std::string m_StartString
unsigned long m_NumberOfUpdates
~ProgressCommand() override
virtual void SetUpdateFrequency(const unsigned long numberOfVoxels, const unsigned long numberOfUpdates)
itk::SmartPointer< Self > Pointer
void Execute(itk::Object *caller, const itk::EventObject &event) override
void Execute(const itk::Object *caller, const itk::EventObject &event) override
static Pointer CreateAndSetUpdateFrequency(unsigned long numberOfVoxels)
ProcessObjectType::Pointer ProcessObjectPointer
itk::SmartPointer< const Self > ConstPointer
void UpdateAndPrintProgress(const unsigned long currentVoxelNumber) const
unsigned long m_NumberOfVoxels
static Pointer CreateAndConnect(itk::ProcessObject &)
ProcessObjectPointer m_ObservedProcessObject
void DisconnectObserver(itk::ProcessObject *filter)
virtual void ConnectObserver(itk::ProcessObject *filter)