19#ifndef __elxProgressCommand_h
20#define __elxProgressCommand_h
22#include "itkProcessObject.h"
23#include "itkCommand.h"
97 typedef itk::SmartPointer< Self >
Pointer;
110 const unsigned long numberOfVoxels,
111 const unsigned long numberOfUpdates );
120 void Execute( itk::Object * caller,
const itk::EventObject & event )
override;
122 void Execute(
const itk::Object * caller,
const itk::EventObject & event )
override;
137 itkSetStringMacro( StartString );
138 itkGetStringMacro( StartString );
141 itkSetStringMacro( EndString );
142 itkGetStringMacro( EndString );
145 itkGetConstReferenceMacro( StreamOutputIsConsole,
bool );
A specialized Command object for updating the progress of a filter.
std::string m_StartString
virtual void UpdateAndPrintProgress(const unsigned long ¤tVoxelNumber) const
itk::ProcessObject ProcessObjectType
unsigned long m_NumberOfUpdates
itk::SmartPointer< const Self > ConstPointer
~ProgressCommand() override
virtual void SetUpdateFrequency(const unsigned long numberOfVoxels, const unsigned long numberOfUpdates)
void Execute(itk::Object *caller, const itk::EventObject &event) override
virtual void PrintProgress(const float &progress) const
bool m_StreamOutputIsConsole
void Execute(const itk::Object *caller, const itk::EventObject &event) override
static Pointer CreateAndSetUpdateFrequency(unsigned long numberOfVoxels)
itk::SmartPointer< Self > Pointer
unsigned long m_NumberOfVoxels
static Pointer CreateAndConnect(itk::ProcessObject &)
virtual void DisconnectObserver(itk::ProcessObject *filter)
ProcessObjectPointer m_ObservedProcessObject
ProcessObjectType::Pointer ProcessObjectPointer
virtual void ConnectObserver(itk::ProcessObject *filter)