ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkFixedCenterOfRotationAffineTransform.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 itkFixedCenterOfRotationAffineTransform_h
19 #define itkFixedCenterOfRotationAffineTransform_h
20 
22 
23 namespace itk
24 {
33 template<
34  typename TParametersValueType=double,
35  unsigned int NDimensions=3>
36 // Number of dimensions in the input space
37 class ITK_TEMPLATE_EXPORT FixedCenterOfRotationAffineTransform:
38  public ScalableAffineTransform<TParametersValueType, NDimensions>
39 {
40 public:
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 
82  { this->SetCenter(cor); }
84  { return this->GetCenter(); }
86 
89  void SetMatrixComponent(const MatrixType & matrix)
90  { this->SetMatrix(matrix); }
91 
94  { return this->GetMatrix(); }
95 
97  void SetOffsetComponent(const OffsetType & offset)
98  { this->SetTranslation(offset); }
99 
102  { return this->GetTranslation(); }
103 
104 protected:
106  FixedCenterOfRotationAffineTransform(const MatrixType & matrix,
107  const OutputVectorType & offset);
108  FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDimension,
109  unsigned int parametersDimension);
112 
114  ~FixedCenterOfRotationAffineTransform() override = default;
115 
116 private:
117  FixedCenterOfRotationAffineTransform(const Self & other) = delete;
118  const Self & operator=(const Self &) = delete;
119 }; //class FixedCenterOfRotationAffineTransform
120 } // namespace itk
121 
122 #ifndef ITK_MANUAL_INSTANTIATION
123 #include "itkFixedCenterOfRotationAffineTransform.hxx"
124 #endif
125 
126 #endif /* itkFixedCenterOfRotationAffineTransform_h */
Light weight base class for most itk classes.
typename Superclass::JacobianType JacobianType
typename Superclass::InputVnlVectorType InputVnlVectorType
typename Superclass::InverseMatrixType InverseMatrixType
Affine transformation with a specified center of rotation.
typename Superclass::JacobianPositionType JacobianPositionType
typename Superclass::OutputVectorType OutputVectorType
typename Superclass::OffsetType OffsetType
typename Superclass::TranslationType TranslationType
typename Superclass::MatrixType MatrixType
typename Superclass::FixedParametersType FixedParametersType
typename Superclass::InputVectorType InputVectorType
typename Superclass::InputCovariantVectorType InputCovariantVectorType
typename Superclass::OutputVnlVectorType OutputVnlVectorType
typename Superclass::OutputPointType OutputPointType
typename Superclass::InputPointType InputPointType
typename Superclass::CenterType CenterType
typename Superclass::ParametersType ParametersType
typename Superclass::ScalarType ScalarType
typename Superclass::OutputCovariantVectorType OutputCovariantVectorType
typename Superclass::InverseJacobianPositionType InverseJacobianPositionType
Affine transformation with a specified center of rotation.