ITK  6.0.0
Insight Toolkit
itkTransformMeshFilter.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 itkTransformMeshFilter_h
19#define itkTransformMeshFilter_h
20
21#include "itkMeshToMeshFilter.h"
22#include "itkTransform.h"
23
24namespace itk
25{
41template <typename TInputMesh, typename TOutputMesh, typename TTransform>
42class ITK_TEMPLATE_EXPORT TransformMeshFilter : public MeshToMeshFilter<TInputMesh, TOutputMesh>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(TransformMeshFilter);
46
52
53 using InputMeshType = TInputMesh;
54 using OutputMeshType = TOutputMesh;
57
59 using CoordinateType = typename TInputMesh::CoordinateType;
60#ifndef ITK_FUTURE_LEGACY_REMOVE
61 using CoordRepType ITK_FUTURE_DEPRECATED(
62 "ITK 6 discourages using `CoordRepType`. Please use `CoordinateType` instead!") = CoordinateType;
63#endif
64
66 using TransformType = TTransform;
67
69 itkNewMacro(Self);
70
72 itkOverrideGetNameOfClassMacro(TransformMeshFilter);
73
75 itkSetObjectMacro(Transform, TransformType);
76 itkGetModifiableObjectMacro(Transform, TransformType);
79protected:
81 ~TransformMeshFilter() override = default;
82 void
83 PrintSelf(std::ostream & os, Indent indent) const override;
84
86 void
87 GenerateData() override;
88
90 typename TransformType::Pointer m_Transform{};
91};
92} // end namespace itk
93
94#ifndef ITK_MANUAL_INSTANTIATION
95# include "itkTransformMeshFilter.hxx"
96#endif
97
98#endif
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkMeshSource.h:69
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
typename InputMeshType::Pointer InputMeshPointer
TransformMeshFilter applies a transform to all the points of a mesh.
void GenerateData() override
void PrintSelf(std::ostream &os, Indent indent) const override
~TransformMeshFilter() override=default
typename TInputMesh::CoordinateType CoordinateType
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:84
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....