Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkEuler3DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkEuler3DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/02/01 18:03:18 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright (c) 2002 Insight Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkEuler3DTransform_h
00018 #define __itkEuler3DTransform_h
00019 
00020 #include <iostream>
00021 #include "itkRigid3DTransform.h"
00022 
00023 namespace itk
00024 {
00025 
00033 template < class TScalarType=double >    // Data type for scalars (float or double)
00034 class ITK_EXPORT Euler3DTransform : 
00035             public Rigid3DTransform< TScalarType > 
00036 {
00037 public:
00039   typedef Euler3DTransform Self;
00040   typedef Rigid3DTransform< TScalarType >   Superclass;
00041   typedef SmartPointer<Self>        Pointer;
00042   typedef SmartPointer<const Self>  ConstPointer;
00043     
00045   itkNewMacro( Self );
00046 
00048   itkTypeMacro( Euler3DTransform, Rigid3DTransform );
00049 
00051   enum { SpaceDimension = 3, 
00052          ParametersDimension = 6 };
00053 
00055   typedef typename Superclass::ScalarType  ScalarType;
00056 
00058   typedef typename Superclass::ParametersType  ParametersType;
00059 
00061   typedef typename Superclass::JacobianType  JacobianType;
00062 
00064   typedef typename Superclass::VnlQuaternionType  VnlQuaternionType;
00065 
00067   typedef typename Superclass::VersorType  VersorType;
00068   typedef typename VersorType::VectorType  AxisType;
00069   typedef typename VersorType::ValueType   AngleType;
00070   
00072   typedef typename Superclass::OffsetType  OffsetType;
00073 
00075   typedef typename Superclass::InputPointType   InputPointType;
00076   typedef typename Superclass::OutputPointType  OutputPointType;
00077   
00079   typedef typename Superclass::InputVectorType   InputVectorType;
00080   typedef typename Superclass::OutputVectorType  OutputVectorType;
00081   
00083   typedef typename Superclass::InputCovariantVectorType   InputCovariantVectorType;
00084   typedef typename Superclass::OutputCovariantVectorType  OutputCovariantVectorType;
00085   
00087   typedef typename Superclass::InputVnlVectorType   InputVnlVectorType;
00088   typedef typename Superclass::OutputVnlVectorType  OutputVnlVectorType;
00089   
00094   void SetParameters( const ParametersType & parameters );
00095 
00097   void SetRotation(TScalarType angleX,TScalarType angleY,TScalarType angleZ);
00098   
00103   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00104 
00105   void ComputeZYX(bool compute) {m_ComputeZYX = compute;}
00106 
00107 protected:
00108   Euler3DTransform();
00109   ~Euler3DTransform(){};
00110   void PrintSelf(std::ostream &os, Indent indent) const;
00111 
00113   void ComputeMatrix(void);
00114 
00115 private:
00116   Euler3DTransform(const Self&); //purposely not implemented
00117   void operator=(const Self&); //purposely not implemented
00118 
00119   TScalarType m_AngleX; 
00120   TScalarType m_AngleY; 
00121   TScalarType m_AngleZ;
00122   bool        m_ComputeZYX;
00123 
00124 }; //class Euler3DTransform
00125 
00126 
00127 }  // namespace itk
00128 
00129 
00130 #ifndef ITK_MANUAL_INSTANTIATION
00131 #include "itkEuler3DTransform.txx"
00132 #endif
00133 
00134 #endif /* __itkEuler3DTransform_h */

Generated at Fri May 21 01:14:40 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000