00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkInteriorExteriorMeshFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/06/13 16:31:49 $ 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 __itkInteriorExteriorMeshFilter_h 00018 #define __itkInteriorExteriorMeshFilter_h 00019 00020 #include "itkMeshToMeshFilter.h" 00021 #include "itkDataObjectDecorator.h" 00022 00023 namespace itk 00024 { 00025 00046 template <class TInputMesh, class TOutputMesh, class TSpatialFunction > 00047 class ITK_EXPORT InteriorExteriorMeshFilter : 00048 public MeshToMeshFilter<TInputMesh,TOutputMesh> 00049 { 00050 public: 00052 typedef InteriorExteriorMeshFilter Self; 00053 typedef MeshToMeshFilter<TInputMesh,TOutputMesh> Superclass; 00054 typedef SmartPointer<Self> Pointer; 00055 typedef SmartPointer<const Self> ConstPointer; 00056 00057 typedef TInputMesh InputMeshType; 00058 typedef TOutputMesh OutputMeshType; 00059 typedef typename InputMeshType::Pointer InputMeshPointer; 00060 typedef typename OutputMeshType::Pointer OutputMeshPointer; 00061 00063 typedef typename TInputMesh::CoordRepType CoordRepType; 00064 00066 typedef TSpatialFunction SpatialFunctionType; 00067 00069 itkNewMacro(Self); 00070 00072 itkTypeMacro(InteriorExteriorMeshFilter,MeshToMeshFilter); 00073 00075 itkSetObjectMacro( SpatialFunction, SpatialFunctionType ); 00076 00078 itkGetObjectMacro( SpatialFunction, SpatialFunctionType ); 00079 00080 typedef DataObjectDecorator< SpatialFunctionType > 00081 SpatialFunctionDataObjectType; 00082 typedef typename SpatialFunctionDataObjectType::Pointer 00083 SpatialFunctionDataObjectPointer; 00084 00085 00086 protected: 00087 InteriorExteriorMeshFilter(); 00088 ~InteriorExteriorMeshFilter() {}; 00089 void PrintSelf(std::ostream& os, Indent indent) const; 00090 00092 virtual void GenerateData( void ); 00093 00095 typename SpatialFunctionType::Pointer m_SpatialFunction; 00096 00097 private: 00098 InteriorExteriorMeshFilter(const InteriorExteriorMeshFilter&); //purposely not implemented 00099 void operator=(const InteriorExteriorMeshFilter&); //purposely not implemented 00100 00101 }; 00102 00103 } // end namespace itk 00104 00105 #ifndef ITK_MANUAL_INSTANTIATION 00106 #include "itkInteriorExteriorMeshFilter.txx" 00107 #endif 00108 00109 #endif