ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkInteriorExteriorMeshFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkInteriorExteriorMeshFilter_h
19 #define __itkInteriorExteriorMeshFilter_h
20 
21 #include "itkMeshToMeshFilter.h"
22 #include "itkDataObjectDecorator.h"
23 
24 namespace itk
25 {
47 template< class TInputMesh, class TOutputMesh, class TSpatialFunction >
48 class ITK_EXPORT InteriorExteriorMeshFilter:
49  public MeshToMeshFilter< TInputMesh, TOutputMesh >
50 {
51 public:
57 
58  typedef TInputMesh InputMeshType;
59  typedef TOutputMesh OutputMeshType;
60  typedef typename InputMeshType::Pointer InputMeshPointer;
61  typedef typename OutputMeshType::Pointer OutputMeshPointer;
62 
64  typedef typename TInputMesh::CoordRepType CoordRepType;
65 
67  typedef TSpatialFunction SpatialFunctionType;
68 
70  itkNewMacro(Self);
71 
74 
76  itkSetObjectMacro(SpatialFunction, SpatialFunctionType);
77 
79  itkGetObjectMacro(SpatialFunction, SpatialFunctionType);
80 
85 
86 protected:
89  void PrintSelf(std::ostream & os, Indent indent) const;
90 
92  virtual void GenerateData(void);
93 
95  typename SpatialFunctionType::Pointer m_SpatialFunction;
96 
97 private:
99  // not
100  // implemented
101  void operator=(const InteriorExteriorMeshFilter &); //purposely
102 
103  // not
104  // implemented
105 };
106 } // end namespace itk
107 
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include "itkInteriorExteriorMeshFilter.hxx"
110 #endif
111 
112 #endif
113