ITK  5.0.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< typename TInputMesh, typename TOutputMesh, typename TSpatialFunction >
48 class ITK_TEMPLATE_EXPORT InteriorExteriorMeshFilter:
49  public MeshToMeshFilter< TInputMesh, TOutputMesh >
50 {
51 public:
57 
58  using InputMeshType = TInputMesh;
59  using OutputMeshType = TOutputMesh;
60  using InputMeshPointer = typename InputMeshType::Pointer;
61  using OutputMeshPointer = typename OutputMeshType::Pointer;
62 
64  using CoordRepType = typename TInputMesh::CoordRepType;
65 
67  using SpatialFunctionType = TSpatialFunction;
68 
70  itkNewMacro(Self);
71 
74 
76  itkSetObjectMacro(SpatialFunction, SpatialFunctionType);
77  itkGetModifiableObjectMacro(SpatialFunction, SpatialFunctionType);
79 
82 
83 protected:
85  ~InteriorExteriorMeshFilter() override = default;
86  void PrintSelf(std::ostream & os, Indent indent) const override;
87 
89  void GenerateData() override;
90 
92  typename SpatialFunctionType::Pointer m_SpatialFunction;
93 
94 private:
96  void operator=(const InteriorExteriorMeshFilter &) = delete;
97 };
98 } // end namespace itk
99 
100 #ifndef ITK_MANUAL_INSTANTIATION
101 #include "itkInteriorExteriorMeshFilter.hxx"
102 #endif
103 
104 #endif
Light weight base class for most itk classes.
typename OutputMeshType::Pointer OutputMeshPointer
typename InputMeshType::Pointer InputMeshPointer
InteriorExteriorMeshFilter takes an itk::Mesh and extracts from it a Sub-Mesh such that all its point...
SpatialFunctionType::Pointer m_SpatialFunction
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
Decorates any subclass of itkObject with a DataObject API.
typename SpatialFunctionDataObjectType::Pointer SpatialFunctionDataObjectPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
N-dimensional spatial function class.
typename TInputMesh::CoordRepType CoordRepType