ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkInteriorExteriorMeshFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkInteriorExteriorMeshFilter_h
00019 #define __itkInteriorExteriorMeshFilter_h
00020 
00021 #include "itkMeshToMeshFilter.h"
00022 #include "itkDataObjectDecorator.h"
00023 
00024 namespace itk
00025 {
00047 template< class TInputMesh, class TOutputMesh, class TSpatialFunction >
00048 class ITK_EXPORT InteriorExteriorMeshFilter:
00049   public MeshToMeshFilter< TInputMesh, TOutputMesh >
00050 {
00051 public:
00053   typedef InteriorExteriorMeshFilter                  Self;
00054   typedef MeshToMeshFilter< TInputMesh, TOutputMesh > Superclass;
00055   typedef SmartPointer< Self >                        Pointer;
00056   typedef SmartPointer< const Self >                  ConstPointer;
00057 
00058   typedef TInputMesh                       InputMeshType;
00059   typedef TOutputMesh                      OutputMeshType;
00060   typedef typename InputMeshType::Pointer  InputMeshPointer;
00061   typedef typename OutputMeshType::Pointer OutputMeshPointer;
00062 
00064   typedef typename TInputMesh::CoordRepType CoordRepType;
00065 
00067   typedef TSpatialFunction SpatialFunctionType;
00068 
00070   itkNewMacro(Self);
00071 
00073   itkTypeMacro(InteriorExteriorMeshFilter, MeshToMeshFilter);
00074 
00076   itkSetObjectMacro(SpatialFunction, SpatialFunctionType);
00077 
00079   itkGetObjectMacro(SpatialFunction, SpatialFunctionType);
00080 
00081   typedef DataObjectDecorator< SpatialFunctionType >
00082   SpatialFunctionDataObjectType;
00083   typedef typename SpatialFunctionDataObjectType::Pointer
00084   SpatialFunctionDataObjectPointer;
00085 protected:
00086   InteriorExteriorMeshFilter();
00087   ~InteriorExteriorMeshFilter() {}
00088   void PrintSelf(std::ostream & os, Indent indent) const;
00089 
00091   virtual void GenerateData(void);
00092 
00094   typename SpatialFunctionType::Pointer m_SpatialFunction;
00095 private:
00096   InteriorExteriorMeshFilter(const InteriorExteriorMeshFilter &); //purposely
00097                                                                   // not
00098                                                                   // implemented
00099   void operator=(const InteriorExteriorMeshFilter &);             //purposely
00101 
00102   // not
00103   // implemented
00104 };
00105 } // end namespace itk
00106 
00107 #ifndef ITK_MANUAL_INSTANTIATION
00108 #include "itkInteriorExteriorMeshFilter.hxx"
00109 #endif
00110 
00111 #endif
00112