00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkWatershedMiniPipelineProgressCommand.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:28:41 $ 00007 Version: $Revision: 1.3 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkWatershedMiniPipelineProgressCommand_h 00018 #define __itkWatershedMiniPipelineProgressCommand_h 00019 00020 #include "itkProcessObject.h" 00021 #include "itkCommand.h" 00022 00023 namespace itk { 00024 00029 class WatershedMiniPipelineProgressCommand : public Command 00030 { 00031 public: 00033 typedef WatershedMiniPipelineProgressCommand Self; 00034 typedef Command Superclass; 00035 typedef itk::SmartPointer<Self> Pointer; 00036 typedef itk::SmartPointer<const Self> ConstPointer; 00037 itkTypeMacro( WatershedMiniPipelineProgressCommand, Command ); 00038 itkNewMacro(Self); 00039 00041 void Execute(Object *caller, const EventObject &event); 00042 void Execute(const Object *caller, const EventObject &event); 00043 00046 void SetFilter( ProcessObject *p) 00047 { m_Filter = p; } 00048 const ProcessObject *GetFilter() 00049 { return m_Filter; } 00050 00052 itkSetMacro(Count, double); 00053 itkGetMacro(Count, double); 00054 00057 itkSetMacro(NumberOfFilters, double); 00058 itkGetMacro(NumberOfFilters, double); 00059 00060 protected: 00061 WatershedMiniPipelineProgressCommand() : m_Count(0.0), m_Filter(0), 00062 m_NumberOfFilters(1) {} 00063 virtual ~WatershedMiniPipelineProgressCommand() {} 00064 00065 private: 00066 double m_Count; 00067 ProcessObject *m_Filter; 00068 double m_NumberOfFilters; 00069 }; 00070 00071 } // end namespace itk 00072 00073 #endif