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: 2009-05-12 20:21:46 $
00007   Version:   $Revision: 1.7 $
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 
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 } // end namespace itk
00079 
00080 #endif
00081 

Generated at Thu May 28 12:06:15 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000