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: 2005/05/03 14:19:23 $
00007   Version:   $Revision: 1.11 $
00008 
00009   Copyright (c) Insight Software 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   itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00052   itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00053   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00054   itkStaticConstMacro(ParametersDimension, unsigned int, 6);
00056 
00057   typedef typename Superclass::ParametersType             ParametersType;
00058   typedef typename Superclass::JacobianType               JacobianType;
00059   typedef typename Superclass::ScalarType                 ScalarType;
00060   typedef typename Superclass::InputVectorType            InputVectorType;
00061   typedef typename Superclass::OutputVectorType           OutputVectorType;
00062   typedef typename Superclass::InputCovariantVectorType  
00063                                                      InputCovariantVectorType;
00064   typedef typename Superclass::OutputCovariantVectorType  
00065                                                      OutputCovariantVectorType;
00066   typedef typename Superclass::InputVnlVectorType         InputVnlVectorType;
00067   typedef typename Superclass::OutputVnlVectorType        OutputVnlVectorType;
00068   typedef typename Superclass::InputPointType             InputPointType;
00069   typedef typename Superclass::OutputPointType            OutputPointType;
00070   typedef typename Superclass::MatrixType                 MatrixType;
00071   typedef typename Superclass::InverseMatrixType          InverseMatrixType;
00072   typedef typename Superclass::CenterType                 CenterType;
00073   typedef typename Superclass::TranslationType            TranslationType;
00074   typedef typename Superclass::OffsetType                 OffsetType;
00075 
00076   typedef typename Superclass::ScalarType                 AngleType;
00077   
00082   void SetParameters( const ParametersType & parameters );
00083   const ParametersType& GetParameters(void) const;
00085 
00087   void SetRotation(ScalarType angleX,ScalarType angleY,ScalarType angleZ);
00088   itkGetConstMacro(AngleX, ScalarType);
00089   itkGetConstMacro(AngleY, ScalarType);
00090   itkGetConstMacro(AngleZ, ScalarType);
00092 
00097   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00098 
00100   itkSetMacro(ComputeZYX,bool);
00101   itkGetConstMacro(ComputeZYX,bool);
00103 
00104   virtual void SetIdentity(void);
00105 
00106 
00107 protected:
00108   Euler3DTransform();
00109   Euler3DTransform(const MatrixType & matrix,
00110                    const OutputPointType & offset);
00111   Euler3DTransform(unsigned int outputSpaceDims,
00112                    unsigned int paramsSpaceDims);
00113 
00114   ~Euler3DTransform(){};
00115 
00116   void PrintSelf(std::ostream &os, Indent indent) const;
00117 
00118   void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ)
00119     { m_AngleX = angleX; m_AngleY = angleY; m_AngleZ = angleZ; };
00120 
00122   void ComputeMatrix(void);
00123  void ComputeMatrixParameters(void);
00125 
00126 private:
00127   Euler3DTransform(const Self&); //purposely not implemented
00128   void operator=(const Self&); //purposely not implemented
00129 
00130   ScalarType  m_AngleX; 
00131   ScalarType  m_AngleY; 
00132   ScalarType  m_AngleZ;
00133   bool        m_ComputeZYX;
00134 
00135 }; //class Euler3DTransform
00136 
00137 
00138 }  // namespace itk
00139 
00140 
00141 #ifndef ITK_MANUAL_INSTANTIATION
00142 #include "itkEuler3DTransform.txx"
00143 #endif
00144 
00145 #endif /* __itkEuler3DTransform_h */
00146 

Generated at Sat Sep 2 20:21:54 2006 for ITK by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2000