00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkWatershedMiniPipelineProgressCommand_h
00018 #define __itkWatershedMiniPipelineProgressCommand_h
00019
00020 #include "itkProcessObject.h"
00021 #include "itkCommand.h"
00022
00023 namespace itk {
00024
00030 class ITK_EXPORT WatershedMiniPipelineProgressCommand : public Command
00031 {
00032 public:
00034 typedef WatershedMiniPipelineProgressCommand Self;
00035 typedef Command Superclass;
00036 typedef itk::SmartPointer<Self> Pointer;
00037 typedef itk::SmartPointer<const Self> ConstPointer;
00038 itkTypeMacro( WatershedMiniPipelineProgressCommand, Command );
00039 itkNewMacro(Self);
00041
00043 void Execute(Object *caller, const EventObject &event);
00044 void Execute(const Object *caller, const EventObject &event);
00046
00049 void SetFilter( ProcessObject *p)
00050 { m_Filter = p; }
00051 const ProcessObject *GetFilter()
00052 { return m_Filter; }
00054
00056 itkSetMacro(Count, double);
00057 itkGetConstMacro(Count, double);
00059
00062 itkSetMacro(NumberOfFilters, double);
00063 itkGetConstMacro(NumberOfFilters, double);
00065
00066 protected:
00067 WatershedMiniPipelineProgressCommand() : m_Count(0.0), m_Filter(0),
00068 m_NumberOfFilters(1) {}
00069 virtual ~WatershedMiniPipelineProgressCommand() {}
00070 void PrintSelf(std::ostream& os, Indent indent) const;
00071
00072 private:
00073 double m_Count;
00074 ProcessObject *m_Filter;
00075 double m_NumberOfFilters;
00076 };
00077
00078 }
00079
00080 #endif
00081