ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkv3Rigid3DTransform.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 __itkv3Rigid3DTransform_h
19 #define __itkv3Rigid3DTransform_h
20 
21 #include <iostream>
22 #include "itkRigid3DTransform.h"
23 #include "itkVersor.h"
24 
25 namespace itkv3
26 {
60 template< class TScalarType = double >
61 // type for scalars (float or double)
62 class ITK_EXPORT Rigid3DTransform:
63  public itk::Rigid3DTransform< TScalarType >
64 {
65 public:
71 
72 
75 
77  itkNewMacro(Self);
78 
80  itkStaticConstMacro(SpaceDimension, unsigned int, 3);
81  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
82  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
83  itkStaticConstMacro(ParametersDimension, unsigned int, 12);
85 
86  typedef typename Superclass::ParametersType ParametersType;
87  typedef typename Superclass::ParametersValueType ParametersValueType;
88  typedef typename Superclass::JacobianType JacobianType;
89  typedef typename Superclass::ScalarType ScalarType;
90  typedef typename Superclass::InputVectorType InputVectorType;
91  typedef typename Superclass::OutputVectorType OutputVectorType;
92  typedef typename Superclass::OutputVectorValueType OutputVectorValueType;
93  typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
94  typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
95  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
96  typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
97  typedef typename Superclass::InputPointType InputPointType;
98  typedef typename Superclass::OutputPointType OutputPointType;
99  typedef typename Superclass::MatrixType MatrixType;
100  typedef typename Superclass::InverseMatrixType InverseMatrixType;
101  typedef typename Superclass::MatrixValueType MatrixValueType;
102  typedef typename Superclass::CenterType CenterType;
103  typedef typename Superclass::TranslationType TranslationType;
104  typedef typename Superclass::OffsetType OffsetType;
105 
108  typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
109  typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
110 
112  bool GetInverse(Self *inverse) const
113  {
114  return this->Superclass::GetInverse(inverse);
115  }
116 
118 virtual InverseTransformBasePointer GetInverseTransform() const
119  {
120  Pointer inv = New();
121  return this->GetInverse(inv) ? inv.GetPointer() : NULL;
122  }
123 protected:
125  {
126  }
128 
129 private:
130  Rigid3DTransform(const Self &); //purposely not implemented
131  void operator=(const Self &); //purposely not implemented
132 }; //class Rigid3DTransform
133 } // namespace itkv3
134 #endif /* __itkv3Rigid3DTransform_h */
135