ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkEuler3DTransform.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 __itkEuler3DTransform_h
19 #define __itkEuler3DTransform_h
20 
21 #include <iostream>
22 #include "itkRigid3DTransform.h"
23 
24 namespace itk
25 {
46 template< typename TScalar = double >
47 // Data type for scalars (float or double)
49  public Rigid3DTransform< TScalar >
50 {
51 public:
57 
59  itkNewMacro(Self);
60 
62  itkTypeMacro(Euler3DTransform, Rigid3DTransform);
63 
65  itkStaticConstMacro(SpaceDimension, unsigned int, 3);
66  itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
67  itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
68  itkStaticConstMacro(ParametersDimension, unsigned int, 6);
70 
89 
94  void SetParameters(const ParametersType & parameters);
95 
96  const ParametersType & GetParameters(void) const;
97 
99  void SetRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
100 
101  itkGetConstMacro(AngleX, ScalarType);
102  itkGetConstMacro(AngleY, ScalarType);
103  itkGetConstMacro(AngleZ, ScalarType);
104 
109  virtual void ComputeJacobianWithRespectToParameters( const InputPointType & p, JacobianType & jacobian) const;
110 
112  itkSetMacro(ComputeZYX, bool);
113  itkGetConstMacro(ComputeZYX, bool);
115 
116  virtual void SetIdentity(void);
117 
118 protected:
119  Euler3DTransform(const MatrixType & matrix, const OutputPointType & offset);
120  Euler3DTransform(unsigned int paramsSpaceDims);
122 
124  {
125  }
126 
127  void PrintSelf(std::ostream & os, Indent indent) const;
128 
130  void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
131 
133  void ComputeMatrix(void);
134 
135  void ComputeMatrixParameters(void);
136 
137 private:
138  Euler3DTransform(const Self &); // purposely not implemented
139  void operator=(const Self &); // purposely not implemented
140 
145 }; // class Euler3DTransform
146 } // namespace itk
147 
148 #ifndef ITK_MANUAL_INSTANTIATION
149 #include "itkEuler3DTransform.hxx"
150 #endif
151 
152 #endif /* __itkEuler3DTransform_h */
Superclass::InputPointType InputPointType
Rigid3DTransform< TScalar > Superclass
Superclass::InputVectorType InputVectorType
void PrintSelf(std::ostream &os, Indent indent) const
Light weight base class for most itk classes.
virtual void SetIdentity(void)
Superclass::InputPointType InputPointType
Superclass::InputVnlVectorType InputVnlVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::JacobianType JacobianType
static const unsigned int InputSpaceDimension
Rigid3DTransform of a vector space (e.g. space coordinates)
Superclass::OutputCovariantVectorType OutputCovariantVectorType
void SetRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
Superclass::TranslationType TranslationType
void ComputeMatrix(void)
void ComputeMatrixParameters(void)
Superclass::TranslationType TranslationType
Superclass::OutputPointType OutputPointType
Superclass::ScalarType ScalarType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::ParametersType ParametersType
Superclass::InputVnlVectorType InputVnlVectorType
void operator=(const Self &)
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass::OutputVectorType OutputVectorType
SmartPointer< Self > Pointer
Superclass::ScalarType ScalarType
static const unsigned int SpaceDimension
SmartPointer< const Self > ConstPointer
Superclass::OutputVectorType OutputVectorType
Superclass::MatrixType MatrixType
Superclass::JacobianType JacobianType
Superclass::OutputPointType OutputPointType
Superclass::OutputVnlVectorType OutputVnlVectorType
const ParametersType & GetParameters(void) const
Superclass::ParametersType ParametersType
Superclass::CenterType CenterType
static const unsigned int OutputSpaceDimension
Superclass::InputVectorType InputVectorType
Superclass::CenterType CenterType
static const unsigned int ParametersDimension
Euler3DTransform of a vector space (e.g. space coordinates)
void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
Superclass::ScalarType AngleType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::MatrixType MatrixType
Superclass::ParametersValueType ParametersValueType
Superclass::OffsetType OffsetType
Superclass::InputCovariantVectorType InputCovariantVectorType
virtual void ComputeJacobianWithRespectToParameters(const InputPointType &p, JacobianType &jacobian) const
Superclass::ParametersValueType ParametersValueType
Superclass::InverseMatrixType InverseMatrixType
void SetParameters(const ParametersType &parameters)
Superclass::OffsetType OffsetType
Superclass::InverseMatrixType InverseMatrixType