ITK  6.0.0
Insight Toolkit
itkFixedCenterOfRotationAffineTransform.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 itkFixedCenterOfRotationAffineTransform_h
19#define itkFixedCenterOfRotationAffineTransform_h
20
22
23namespace itk
24{
33template <typename TParametersValueType = double, unsigned int VDimension = 3>
34// Number of dimensions in the input space
35class ITK_TEMPLATE_EXPORT FixedCenterOfRotationAffineTransform
36 : public ScalableAffineTransform<TParametersValueType, VDimension>
37{
38public:
39 ITK_DISALLOW_COPY_AND_MOVE(FixedCenterOfRotationAffineTransform);
40
46
48 itkOverrideGetNameOfClassMacro(FixedCenterOfRotationAffineTransform);
49
51 itkNewMacro(Self);
52
54 static constexpr unsigned int InputSpaceDimension = VDimension;
55 static constexpr unsigned int OutputSpaceDimension = VDimension;
56 static constexpr unsigned int SpaceDimension = VDimension;
57 static constexpr unsigned int ParametersDimension = VDimension * (VDimension + 2);
58
60 using typename Superclass::ParametersType;
61 using typename Superclass::FixedParametersType;
62 using typename Superclass::JacobianType;
63 using typename Superclass::JacobianPositionType;
64 using typename Superclass::InverseJacobianPositionType;
65 using typename Superclass::ScalarType;
66 using typename Superclass::InputVectorType;
67 using typename Superclass::OutputVectorType;
68 using typename Superclass::InputCovariantVectorType;
69 using typename Superclass::OutputCovariantVectorType;
70 using typename Superclass::InputVnlVectorType;
71 using typename Superclass::OutputVnlVectorType;
72 using typename Superclass::InputPointType;
73 using typename Superclass::OutputPointType;
74 using typename Superclass::MatrixType;
75 using typename Superclass::InverseMatrixType;
76 using typename Superclass::CenterType;
77 using typename Superclass::TranslationType;
78 using typename Superclass::OffsetType;
79
81 void
83 {
84 this->SetCenter(cor);
85 }
86 InputPointType
88 {
89 return this->GetCenter();
90 }
95 void
97 {
98 this->SetMatrix(matrix);
99 }
100
102 const MatrixType &
104 {
105 return this->GetMatrix();
106 }
107
109 void
111 {
112 this->SetTranslation(offset);
113 }
114
116 const OffsetType &
118 {
119 return this->GetTranslation();
120 }
121
122protected:
124#if !defined(ITK_LEGACY_REMOVE)
125 [[deprecated("Removed unused constructor")]] FixedCenterOfRotationAffineTransform(const MatrixType & matrix,
126 const OutputVectorType & offset);
127#endif
128 FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDims, unsigned int paramsDims);
134}; // class FixedCenterOfRotationAffineTransform
135} // namespace itk
136
137#ifndef ITK_MANUAL_INSTANTIATION
138# include "itkFixedCenterOfRotationAffineTransform.hxx"
139#endif
140
141#endif /* itkFixedCenterOfRotationAffineTransform_h */
Affine transformation with a specified center of rotation.
~FixedCenterOfRotationAffineTransform() override=default
FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDims, unsigned int paramsDims)
Light weight base class for most itk classes.
Affine transformation with a specified center of rotation.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....