Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkWatershedMiniPipelineProgressCommand.h

Go to the documentation of this file.
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:
00032 
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   itkGetMacro(Count, double);
00059 
00062   itkSetMacro(NumberOfFilters, double);
00063   itkGetMacro(NumberOfFilters, double);
00065 
00066 protected:
00067   WatershedMiniPipelineProgressCommand() : m_Count(0.0), m_Filter(0),
00068                                            m_NumberOfFilters(1) {}
00069   virtual ~WatershedMiniPipelineProgressCommand() {}
00070   
00071 private:
00072   double m_Count;
00073   ProcessObject *m_Filter;
00074   double m_NumberOfFilters;
00075 };
00076 
00077 } // end namespace itk
00078 
00079 #endif
00080 

Generated at Thu Nov 6 01:02:19 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000