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 CoordRepType = typename TInputMesh::CoordRepType;
66 
68  using SpatialFunctionType = TSpatialFunction;
69 
71  itkNewMacro(Self);
72 
74  itkOverrideGetNameOfClassMacro(InteriorExteriorMeshFilter);
75 
77  itkSetObjectMacro(SpatialFunction, SpatialFunctionType);
78  itkGetModifiableObjectMacro(SpatialFunction, SpatialFunctionType);
83 
84 protected:
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
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::InteriorExteriorMeshFilter::SpatialFunctionType
TSpatialFunction SpatialFunctionType
Definition: itkInteriorExteriorMeshFilter.h:68
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::InteriorExteriorMeshFilter::CoordRepType
typename TInputMesh::CoordRepType CoordRepType
Definition: itkInteriorExteriorMeshFilter.h:65
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::InputMeshPointer
typename InputMeshType::Pointer InputMeshPointer
Definition: itkInteriorExteriorMeshFilter.h:61
itk::InteriorExteriorMeshFilter::SpatialFunctionDataObjectPointer
typename SpatialFunctionDataObjectType::Pointer SpatialFunctionDataObjectPointer
Definition: itkInteriorExteriorMeshFilter.h:82