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: 2008-10-13 15:36:31 $
00007   Version:   $Revision: 1.14 $
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 
00046 template < class TScalarType=double >    // Data type for scalars (float or double)
00047 class ITK_EXPORT Euler3DTransform : 
00048             public Rigid3DTransform< TScalarType > 
00049 {
00050 public:
00052   typedef Euler3DTransform                  Self;
00053   typedef Rigid3DTransform< TScalarType >   Superclass;
00054   typedef SmartPointer<Self>                Pointer;
00055   typedef SmartPointer<const Self>          ConstPointer;
00056 
00058   itkNewMacro( Self );
00059 
00061   itkTypeMacro( Euler3DTransform, Rigid3DTransform );
00062 
00064   itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00065   itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00066   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00067   itkStaticConstMacro(ParametersDimension, unsigned int, 6);
00069 
00070   typedef typename Superclass::ParametersType             ParametersType;
00071   typedef typename Superclass::JacobianType               JacobianType;
00072   typedef typename Superclass::ScalarType                 ScalarType;
00073   typedef typename Superclass::InputVectorType            InputVectorType;
00074   typedef typename Superclass::OutputVectorType           OutputVectorType;
00075   typedef typename Superclass::InputCovariantVectorType   InputCovariantVectorType;
00076   typedef typename Superclass::OutputCovariantVectorType  OutputCovariantVectorType;
00077   typedef typename Superclass::InputVnlVectorType         InputVnlVectorType;
00078   typedef typename Superclass::OutputVnlVectorType        OutputVnlVectorType;
00079   typedef typename Superclass::InputPointType             InputPointType;
00080   typedef typename Superclass::OutputPointType            OutputPointType;
00081   typedef typename Superclass::MatrixType                 MatrixType;
00082   typedef typename Superclass::InverseMatrixType          InverseMatrixType;
00083   typedef typename Superclass::CenterType                 CenterType;
00084   typedef typename Superclass::TranslationType            TranslationType;
00085   typedef typename Superclass::OffsetType                 OffsetType;
00086   typedef typename Superclass::ScalarType                 AngleType;
00087   
00092   void SetParameters( const ParametersType & parameters );
00093   const ParametersType& GetParameters(void) const;
00095 
00097   void SetRotation(ScalarType angleX,ScalarType angleY,ScalarType angleZ);
00098   itkGetConstMacro(AngleX, ScalarType);
00099   itkGetConstMacro(AngleY, ScalarType);
00100   itkGetConstMacro(AngleZ, ScalarType);
00102 
00107   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00108 
00110   itkSetMacro(ComputeZYX,bool);
00111   itkGetConstMacro(ComputeZYX,bool);
00113 
00114   virtual void SetIdentity(void);
00115 
00116 
00117 protected:
00118   Euler3DTransform();
00119   Euler3DTransform(const MatrixType & matrix,
00120                    const OutputPointType & offset);
00121   Euler3DTransform(unsigned int outputSpaceDims,
00122                    unsigned int paramsSpaceDims);
00123 
00124   ~Euler3DTransform(){};
00125 
00126   void PrintSelf(std::ostream &os, Indent indent) const;
00127 
00129   void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
00130 
00132   void ComputeMatrix(void);
00133  void ComputeMatrixParameters(void);
00135 
00136 private:
00137   Euler3DTransform(const Self&); //purposely not implemented
00138   void operator=(const Self&); //purposely not implemented
00139 
00140   ScalarType  m_AngleX; 
00141   ScalarType  m_AngleY; 
00142   ScalarType  m_AngleZ;
00143   bool        m_ComputeZYX;
00144 
00145 }; //class Euler3DTransform
00146 
00147 
00148 }  // namespace itk
00149 
00150 // Define instantiation macro for this template.
00151 #define ITK_TEMPLATE_Euler3DTransform(_, EXPORT, x, y) namespace itk { \
00152   _(1(class EXPORT Euler3DTransform< ITK_TEMPLATE_1 x >)) \
00153   namespace Templates { typedef Euler3DTransform< ITK_TEMPLATE_1 x > \
00154                                             Euler3DTransform##y; } \
00155   }
00156 
00157 #if ITK_TEMPLATE_EXPLICIT
00158 # include "Templates/itkEuler3DTransform+-.h"
00159 #endif
00160 
00161 #if ITK_TEMPLATE_TXX
00162 # include "itkEuler3DTransform.txx"
00163 #endif
00164 
00165 #endif /* __itkEuler3DTransform_h */
00166 

Generated at Wed Nov 5 21:15:43 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000