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 CoordinateType = typename TInputMesh::CoordinateType;
66#ifndef ITK_FUTURE_LEGACY_REMOVE
67 using CoordRepType ITK_FUTURE_DEPRECATED(
68 "ITK 6 discourages using `CoordRepType`. Please use `CoordinateType` instead!") = CoordinateType;
69#endif
70
72 using SpatialFunctionType = TSpatialFunction;
73
75 itkNewMacro(Self);
76
78 itkOverrideGetNameOfClassMacro(InteriorExteriorMeshFilter);
79
82 itkGetModifiableObjectMacro(SpatialFunction, SpatialFunctionType);
87
88protected:
90 ~InteriorExteriorMeshFilter() override = default;
91 void
92 PrintSelf(std::ostream & os, Indent indent) const override;
93
95 void
96 GenerateData() override;
97
99 typename SpatialFunctionType::Pointer m_SpatialFunction{};
100};
101} // end namespace itk
102
103#ifndef ITK_MANUAL_INSTANTIATION
104# include "itkInteriorExteriorMeshFilter.hxx"
105#endif
106
107#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 InputMeshType::Pointer InputMeshPointer
typename TInputMesh::CoordinateType CoordinateType
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....