ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkTransformMeshFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 
24 namespace itk
25 {
41 template< typename TInputMesh, typename TOutputMesh, typename TTransform >
42 class ITK_TEMPLATE_EXPORT TransformMeshFilter:
43  public MeshToMeshFilter< TInputMesh, TOutputMesh >
44 {
45 public:
46  ITK_DISALLOW_COPY_AND_ASSIGN(TransformMeshFilter);
47 
53 
54  using InputMeshType = TInputMesh;
55  using OutputMeshType = TOutputMesh;
56  using InputMeshPointer = typename InputMeshType::Pointer;
57  using OutputMeshPointer = typename OutputMeshType::Pointer;
58 
60  using CoordRepType = typename TInputMesh::CoordRepType;
61 
63  using TransformType = TTransform;
64 
66  itkNewMacro(Self);
67 
70 
72  itkSetObjectMacro(Transform, TransformType);
73  itkGetModifiableObjectMacro(Transform, TransformType);
75 
76 protected:
78  ~TransformMeshFilter() override = default;
79  void PrintSelf(std::ostream & os, Indent indent) const override;
80 
82  void GenerateData() override;
83 
85  typename TransformType::Pointer m_Transform;
86 };
87 } // end namespace itk
88 
89 #ifndef ITK_MANUAL_INSTANTIATION
90 #include "itkTransformMeshFilter.hxx"
91 #endif
92 
93 #endif
Light weight base class for most itk classes.
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68
TransformMeshFilter applies a transform to all the points of a mesh.
typename TInputMesh::CoordRepType CoordRepType
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
typename InputMeshType::Pointer InputMeshPointer
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:83
typename OutputMeshType::Pointer OutputMeshPointer
Definition: itkMeshSource.h:69
Control indentation during Print() invocation.
Definition: itkIndent.h:49
TransformType::Pointer m_Transform