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

itkImageToMeshFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageToMeshFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-16 16:45:10 $
00007   Version:   $Revision: 1.10 $
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 __itkImageToMeshFilter_h
00018 #define __itkImageToMeshFilter_h
00019 
00020 #include "itkMeshSource.h"
00021 
00022 namespace itk
00023 {
00024 
00034 template <class TInputImage, class TOutputMesh>
00035 class ITK_EXPORT ImageToMeshFilter : public MeshSource<TOutputMesh>
00036 {
00037 public:
00039   typedef ImageToMeshFilter        Self;
00040   typedef MeshSource<TOutputMesh>  Superclass;
00041   typedef SmartPointer<Self>       Pointer;
00042   typedef SmartPointer<const Self> ConstPointer;
00043 
00044   
00046   itkTypeMacro(ImageToMeshFilter, MeshSource);
00047 
00049   DataObject::Pointer  MakeOutput(unsigned int idx);
00050 
00052   typedef   TInputImage                             InputImageType;
00053   typedef   typename InputImageType::Pointer        InputImagePointer;
00054   typedef   typename InputImageType::ConstPointer   InputImageConstPointer;
00055   typedef   typename InputImageType::RegionType     InputImageRegionType; 
00056   typedef   typename InputImageType::PixelType      InputImagePixelType; 
00057 
00059   typedef   TOutputMesh                             OutputMeshType;
00060   typedef   typename OutputMeshType::Pointer        OutputMeshPointer;
00061 
00063   void SetInput(unsigned int idx, const InputImageType *input);
00064 
00066   const InputImageType * GetInput(unsigned int idx);
00067 
00069   OutputMeshType * GetOutput(void);
00070 
00072   void GenerateOutputInformation(void);
00073 
00074 protected:
00075   ImageToMeshFilter();
00076   ~ImageToMeshFilter();
00077  
00078 private:
00079   ImageToMeshFilter(const ImageToMeshFilter&); //purposely not implemented
00080   void operator=(const ImageToMeshFilter&); //purposely not implemented
00081 
00082 };
00083 
00084 } // end namespace itk
00085 
00086 #ifndef ITK_MANUAL_INSTANTIATION
00087 #include "itkImageToMeshFilter.txx"
00088 #endif
00089 
00090 #endif
00091 

Generated at Wed Nov 5 22:21:14 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000