ITK  6.0.0
Insight Toolkit
itkInteriorExteriorMeshFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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"
23
24namespace itk
25{
47template <typename TInputMesh, typename TOutputMesh, typename TSpatialFunction>
48class ITK_TEMPLATE_EXPORT InteriorExteriorMeshFilter : public MeshToMeshFilter<TInputMesh, TOutputMesh>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(InteriorExteriorMeshFilter);
52
58
59 using InputMeshType = TInputMesh;
60 using OutputMeshType = TOutputMesh;
63
65 using CoordRepType = typename TInputMesh::CoordRepType;
66
68 using SpatialFunctionType = TSpatialFunction;
69
71 itkNewMacro(Self);
72
74 itkOverrideGetNameOfClassMacro(InteriorExteriorMeshFilter);
75
78 itkGetModifiableObjectMacro(SpatialFunction, SpatialFunctionType);
83
84protected:
86 ~InteriorExteriorMeshFilter() override = default;
87 void
88 PrintSelf(std::ostream & os, Indent indent) const override;
89
91 void
92 GenerateData() override;
93
95 typename SpatialFunctionType::Pointer m_SpatialFunction{};
96};
97} // end namespace itk
98
99#ifndef ITK_MANUAL_INSTANTIATION
100# include "itkInteriorExteriorMeshFilter.hxx"
101#endif
102
103#endif
Decorates any subclass of itkObject with a DataObject API.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
InteriorExteriorMeshFilter takes an itk::Mesh and extracts from it a Sub-Mesh such that all its point...
~InteriorExteriorMeshFilter() override=default
typename TInputMesh::CoordRepType CoordRepType
typename InputMeshType::Pointer InputMeshPointer
void PrintSelf(std::ostream &os, Indent indent) const override
typename SpatialFunctionDataObjectType::Pointer SpatialFunctionDataObjectPointer
typename OutputMeshType::Pointer OutputMeshPointer
Light weight base class for most itk classes.
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
N-dimensional spatial function class.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....