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

itkMeshToMeshFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMeshToMeshFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-09-17 11:14:57 $
00007   Version:   $Revision: 1.20 $
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   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkMeshToMeshFilter_h
00021 #define __itkMeshToMeshFilter_h
00022 
00023 #include "itkMeshSource.h"
00024 
00025 namespace itk
00026 {
00027 
00038 template <class TInputMesh, class TOutputMesh>
00039 class ITK_EXPORT MeshToMeshFilter : public MeshSource<TOutputMesh>
00040 {
00041 public:
00043   typedef MeshToMeshFilter          Self;
00044   typedef MeshSource<TOutputMesh>   Superclass;
00045   typedef SmartPointer<Self>        Pointer;
00046   typedef SmartPointer<const Self>  ConstPointer;
00047 
00049   itkNewMacro(Self);
00050 
00052   itkTypeMacro(MeshToMeshFilter,MeshSource);
00053 
00055   typedef TInputMesh                       InputMeshType;
00056   typedef typename InputMeshType::Pointer  InputMeshPointer;
00057   typedef TOutputMesh                      OutputMeshType;
00058   typedef typename OutputMeshType::Pointer OutputMeshPointer;
00059 
00061   void SetInput( const InputMeshType *input);
00062 
00064   const InputMeshType * GetInput(void) const;
00065   const InputMeshType * GetInput(unsigned int idx) const;
00067 
00068 protected:
00069   MeshToMeshFilter();
00070   ~MeshToMeshFilter() {};
00071   
00072   void CopyInputMeshToOutputMeshPoints();
00073   void CopyInputMeshToOutputMeshPointData();
00074   void CopyInputMeshToOutputMeshCellLinks();
00075   void CopyInputMeshToOutputMeshCells();
00076   void CopyInputMeshToOutputMeshCellData();
00077 
00078 private:
00079   MeshToMeshFilter(const Self&); //purposely not implemented
00080   void operator=(const Self&); //purposely not implemented
00081   
00082 };
00083 
00084 } // end namespace itk
00085 
00086 #ifndef ITK_MANUAL_INSTANTIATION
00087 #include "itkMeshToMeshFilter.txx"
00088 #endif
00089 
00090 #endif
00091 

Generated at Fri Apr 16 19:01:50 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000