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"
22 #include "itkDataObjectDecorator.h"
23 
24 namespace itk
25 {
47 template <typename TInputMesh, typename TOutputMesh, typename TSpatialFunction>
48 class ITK_TEMPLATE_EXPORT InteriorExteriorMeshFilter : public MeshToMeshFilter<TInputMesh, TOutputMesh>
49 {
50 public:
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 
81  itkSetObjectMacro(SpatialFunction, SpatialFunctionType);
82  itkGetModifiableObjectMacro(SpatialFunction, SpatialFunctionType);
87 
88 protected:
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
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::InteriorExteriorMeshFilter::SpatialFunctionType
TSpatialFunction SpatialFunctionType
Definition: itkInteriorExteriorMeshFilter.h:72
itk::InteriorExteriorMeshFilter::OutputMeshPointer
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkInteriorExteriorMeshFilter.h:62
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::DataObjectDecorator
Decorates any subclass of itkObject with a DataObject API.
Definition: itkDataObjectDecorator.h:66
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itkDataObjectDecorator.h
itk::InteriorExteriorMeshFilter::InputMeshType
TInputMesh InputMeshType
Definition: itkInteriorExteriorMeshFilter.h:59
itk::MeshToMeshFilter
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
Definition: itkMeshToMeshFilter.h:47
itkMeshToMeshFilter.h
itk::InteriorExteriorMeshFilter
InteriorExteriorMeshFilter takes an itk::Mesh and extracts from it a Sub-Mesh such that all its point...
Definition: itkInteriorExteriorMeshFilter.h:48
itk::SpatialFunction
N-dimensional spatial function class.
Definition: itkSpatialFunction.h:45
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::InteriorExteriorMeshFilter::OutputMeshType
TOutputMesh OutputMeshType
Definition: itkInteriorExteriorMeshFilter.h:60
itk::InteriorExteriorMeshFilter::CoordinateType
typename TInputMesh::CoordinateType CoordinateType
Definition: itkInteriorExteriorMeshFilter.h:65
itk::InteriorExteriorMeshFilter::InputMeshPointer
typename InputMeshType::Pointer InputMeshPointer
Definition: itkInteriorExteriorMeshFilter.h:61
itk::InteriorExteriorMeshFilter::SpatialFunctionDataObjectPointer
typename SpatialFunctionDataObjectType::Pointer SpatialFunctionDataObjectPointer
Definition: itkInteriorExteriorMeshFilter.h:86