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

itkImageToPathFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageToPathFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-02-25 14:36:07 $
00007   Version:   $Revision: 1.2 $
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 __itkImageToPathFilter_h
00018 #define __itkImageToPathFilter_h
00019 
00020 #include "itkImage.h"
00021 #include "itkPathSource.h"
00022 
00023 namespace itk
00024 {
00025   
00035 template <class TInputImage, class TOutputPath>
00036 class ITK_EXPORT ImageToPathFilter : public PathSource<TOutputPath>
00037 {
00038 public:
00040   typedef ImageToPathFilter           Self;
00041   typedef PathSource<TOutputPath>     Superclass;
00042   typedef SmartPointer<Self>          Pointer;
00043   typedef SmartPointer<const Self>    ConstPointer;
00044 
00045   
00047   itkTypeMacro(ImageToPathFilter,PathSource);
00048 
00049   
00051   typedef TInputImage                             InputImageType;
00052   typedef typename InputImageType::Pointer        InputImagePointer;
00053   typedef typename InputImageType::ConstPointer   InputImageConstPointer;
00054   typedef typename InputImageType::RegionType     InputImageRegionType; 
00055   typedef typename InputImageType::PixelType      InputImagePixelType; 
00056 
00058   itkStaticConstMacro(InputImageDimension, unsigned int,
00059                       TInputImage::ImageDimension);
00060 
00062   virtual void SetInput( const InputImageType *image);
00063   virtual void SetInput( unsigned int, const TInputImage * image);
00064   const InputImageType * GetInput(void);
00065   const InputImageType * GetInput(unsigned int idx);
00067 
00068 
00069 protected:
00070   ImageToPathFilter();
00071   ~ImageToPathFilter();
00072 
00073   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00074 
00075 private:
00076   ImageToPathFilter(const Self&); //purposely not implemented
00077   void operator=(const Self&); //purposely not implemented
00078 };
00079 
00080 } // end namespace itk
00081 
00082 #ifndef ITK_MANUAL_INSTANTIATION
00083 #include "itkImageToPathFilter.txx"
00084 #endif
00085 
00086 #endif
00087 

Generated at Tue Sep 15 03:33:07 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000