ITK  5.2.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  * 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 itkFixedCenterOfRotationAffineTransform_h
19 #define itkFixedCenterOfRotationAffineTransform_h
20 
22 
23 namespace itk
24 {
33 template <typename TParametersValueType = double, unsigned int NDimensions = 3>
34 // Number of dimensions in the input space
35 class ITK_TEMPLATE_EXPORT FixedCenterOfRotationAffineTransform
36  : public ScalableAffineTransform<TParametersValueType, NDimensions>
37 {
38 public:
39  ITK_DISALLOW_COPY_AND_ASSIGN(FixedCenterOfRotationAffineTransform);
40 
46 
49 
51  itkNewMacro(Self);
52 
54  static constexpr unsigned int InputSpaceDimension = NDimensions;
55  static constexpr unsigned int OutputSpaceDimension = NDimensions;
56  static constexpr unsigned int SpaceDimension = NDimensions;
57  static constexpr unsigned int ParametersDimension = NDimensions * (NDimensions + 2);
58 
60  using ParametersType = typename Superclass::ParametersType;
61  using FixedParametersType = typename Superclass::FixedParametersType;
62  using JacobianType = typename Superclass::JacobianType;
63  using JacobianPositionType = typename Superclass::JacobianPositionType;
64  using InverseJacobianPositionType = typename Superclass::InverseJacobianPositionType;
65  using ScalarType = typename Superclass::ScalarType;
66  using InputVectorType = typename Superclass::InputVectorType;
67  using OutputVectorType = typename Superclass::OutputVectorType;
68  using InputCovariantVectorType = typename Superclass::InputCovariantVectorType;
69  using OutputCovariantVectorType = typename Superclass::OutputCovariantVectorType;
70  using InputVnlVectorType = typename Superclass::InputVnlVectorType;
71  using OutputVnlVectorType = typename Superclass::OutputVnlVectorType;
72  using InputPointType = typename Superclass::InputPointType;
73  using OutputPointType = typename Superclass::OutputPointType;
74  using MatrixType = typename Superclass::MatrixType;
75  using InverseMatrixType = typename Superclass::InverseMatrixType;
76  using CenterType = typename Superclass::CenterType;
77  using TranslationType = typename Superclass::TranslationType;
78  using OffsetType = typename Superclass::OffsetType;
79 
81  void
83  {
84  this->SetCenter(cor);
85  }
86  InputPointType
88  {
89  return this->GetCenter();
90  }
92 
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 
122 protected:
124  FixedCenterOfRotationAffineTransform(const MatrixType & matrix, const OutputVectorType & offset);
125  FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
128 
130  ~FixedCenterOfRotationAffineTransform() override = default;
131 }; // class FixedCenterOfRotationAffineTransform
132 } // namespace itk
133 
134 #ifndef ITK_MANUAL_INSTANTIATION
135 # include "itkFixedCenterOfRotationAffineTransform.hxx"
136 #endif
137 
138 #endif /* itkFixedCenterOfRotationAffineTransform_h */
itk::AffineTransform::OffsetType
typename Superclass::OffsetType OffsetType
Definition: itkAffineTransform.h:144
itk::AffineTransform::OutputVnlVectorType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: itkAffineTransform.h:138
itk::AffineTransform::CenterType
typename Superclass::CenterType CenterType
Definition: itkAffineTransform.h:143
itk::AffineTransform::ScalarType
typename Superclass::ScalarType ScalarType
Definition: itkAffineTransform.h:132
itk::AffineTransform::InverseMatrixType
typename Superclass::InverseMatrixType InverseMatrixType
Definition: itkAffineTransform.h:142
itk::AffineTransform::TranslationType
typename Superclass::TranslationType TranslationType
Definition: itkAffineTransform.h:145
itk::FixedCenterOfRotationAffineTransform::GetOffsetComponent
const OffsetType & GetOffsetComponent() const
Definition: itkFixedCenterOfRotationAffineTransform.h:117
itk::SmartPointer< Self >
itk::AffineTransform::MatrixType
typename Superclass::MatrixType MatrixType
Definition: itkAffineTransform.h:141
itk::AffineTransform::InputVnlVectorType
typename Superclass::InputVnlVectorType InputVnlVectorType
Definition: itkAffineTransform.h:137
itk::AffineTransform::ParametersType
typename Superclass::ParametersType ParametersType
Definition: itkAffineTransform.h:127
itk::FixedCenterOfRotationAffineTransform
Affine transformation with a specified center of rotation.
Definition: itkFixedCenterOfRotationAffineTransform.h:35
itk::AffineTransform::OutputVectorType
typename Superclass::OutputVectorType OutputVectorType
Definition: itkAffineTransform.h:136
itk::ScalableAffineTransform
Affine transformation with a specified center of rotation.
Definition: itkScalableAffineTransform.h:34
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::AffineTransform::FixedParametersType
typename Superclass::FixedParametersType FixedParametersType
Definition: itkAffineTransform.h:128
itk::AffineTransform::InputCovariantVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
Definition: itkAffineTransform.h:139
itk::AffineTransform::InverseJacobianPositionType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
Definition: itkAffineTransform.h:131
itk::FixedCenterOfRotationAffineTransform::SetOffsetComponent
void SetOffsetComponent(const OffsetType &offset)
Definition: itkFixedCenterOfRotationAffineTransform.h:110
itk::AffineTransform::JacobianPositionType
typename Superclass::JacobianPositionType JacobianPositionType
Definition: itkAffineTransform.h:130
itk::AffineTransform::OutputCovariantVectorType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
Definition: itkAffineTransform.h:140
itkScalableAffineTransform.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::FixedCenterOfRotationAffineTransform::GetCenterOfRotationComponent
InputPointType GetCenterOfRotationComponent() const
Definition: itkFixedCenterOfRotationAffineTransform.h:87
itk::AffineTransform::OutputPointType
typename Superclass::OutputPointType OutputPointType
Definition: itkAffineTransform.h:134
itk::FixedCenterOfRotationAffineTransform::SetMatrixComponent
void SetMatrixComponent(const MatrixType &matrix)
Definition: itkFixedCenterOfRotationAffineTransform.h:96
itk::AffineTransform::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkAffineTransform.h:133
itk::AffineTransform::InputVectorType
typename Superclass::InputVectorType InputVectorType
Definition: itkAffineTransform.h:135
itk::FixedCenterOfRotationAffineTransform::GetMatrixComponent
const MatrixType & GetMatrixComponent() const
Definition: itkFixedCenterOfRotationAffineTransform.h:103
itk::FixedCenterOfRotationAffineTransform::SetCenterOfRotationComponent
void SetCenterOfRotationComponent(const InputPointType &cor)
Definition: itkFixedCenterOfRotationAffineTransform.h:82
itk::AffineTransform::JacobianType
typename Superclass::JacobianType JacobianType
Definition: itkAffineTransform.h:129