ITK  4.4.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  itkGetModifiableObjectMacro(SpatialFunction, SpatialFunctionType);
79 
84 
85 protected:
88  void PrintSelf(std::ostream & os, Indent indent) const;
89 
91  virtual void GenerateData(void);
92 
94  typename SpatialFunctionType::Pointer m_SpatialFunction;
95 
96 private:
98  // not
99  // implemented
100  void operator=(const InteriorExteriorMeshFilter &); //purposely
101 
102  // not
103  // implemented
104 };
105 } // end namespace itk
106 
107 #ifndef ITK_MANUAL_INSTANTIATION
108 #include "itkInteriorExteriorMeshFilter.hxx"
109 #endif
110 
111 #endif
112