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

itkCenteredEuler3DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCenteredEuler3DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-09 09:23:20 $
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 __itkCenteredEuler3DTransform_h
00018 #define __itkCenteredEuler3DTransform_h
00019 
00020 #include <iostream>
00021 #include "itkEuler3DTransform.h"
00022 #include "itkExceptionObject.h"
00023 #include "itkMatrix.h"
00024 #include "itkVersor.h"
00025 
00026 namespace itk
00027 {
00028 
00037 template < class TScalarType=double >    // Data type for scalars 
00038 class ITK_EXPORT CenteredEuler3DTransform : 
00039         public Euler3DTransform< TScalarType >
00040 {
00041 public:
00043   typedef CenteredEuler3DTransform        Self;
00044   typedef Euler3DTransform< TScalarType > Superclass;
00045   typedef SmartPointer<Self>              Pointer;
00046   typedef SmartPointer<const Self>        ConstPointer;
00047 
00049   itkTypeMacro( CenteredEuler3DTransform, Euler3DTransform );
00050 
00052   itkNewMacro( Self );
00053 
00055   itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00056   itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00057   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00058   itkStaticConstMacro(ParametersDimension, unsigned int, 9);
00060 
00061   typedef typename Superclass::ParametersType             ParametersType;
00062   typedef typename Superclass::JacobianType               JacobianType;
00063   typedef typename Superclass::ScalarType                 ScalarType;
00064   typedef typename Superclass::InputVectorType            InputVectorType;
00065   typedef typename Superclass::OutputVectorType           OutputVectorType;
00066   typedef typename Superclass::InputCovariantVectorType  
00067                                                      InputCovariantVectorType;
00068   typedef typename Superclass::OutputCovariantVectorType  
00069                                                      OutputCovariantVectorType;
00070 
00071   typedef typename Superclass::InputVnlVectorType         InputVnlVectorType;
00072   typedef typename Superclass::OutputVnlVectorType        OutputVnlVectorType;
00073   typedef typename Superclass::InputPointType             InputPointType;
00074   typedef typename Superclass::OutputPointType            OutputPointType;
00075   typedef typename Superclass::MatrixType                 MatrixType;
00076   typedef typename Superclass::InverseMatrixType          InverseMatrixType;
00077   typedef typename Superclass::CenterType                 CenterType;
00078   typedef typename Superclass::TranslationType            TranslationType;
00079   typedef typename Superclass::OffsetType                 OffsetType;
00080 
00083   typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
00084   typedef typename InverseTransformBaseType::Pointer    InverseTransformBasePointer;
00085 
00090   void SetParameters( const ParametersType & parameters );
00091 
00096   const ParametersType & GetParameters( void ) const;
00097 
00102   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00103 
00105   bool GetInverse(Self* inverse) const;
00106 
00108   virtual InverseTransformBasePointer GetInverseTransform() const;
00109 
00110 protected:
00111   CenteredEuler3DTransform();
00112   CenteredEuler3DTransform(unsigned int SpaceDimension,
00113                            unsigned int ParametersDimension);
00114   CenteredEuler3DTransform(const MatrixType & matrix,
00115                            const OutputPointType & offset);
00116   ~CenteredEuler3DTransform();
00117 
00121   void PrintSelf(std::ostream &os, Indent indent) const;
00122 
00123 private:
00124   CenteredEuler3DTransform(const Self&); //purposely not implemented
00125   void operator=(const Self&); //purposely not implemented
00126 
00127 }; //class CenteredEuler3DTransform
00128 
00129 
00130 }  // namespace itk
00131 
00133 #define ITK_TEMPLATE_CenteredEuler3DTransform(_, EXPORT, x, y) namespace itk { \
00134   _(1(class EXPORT CenteredEuler3DTransform< ITK_TEMPLATE_1 x >)) \
00135   namespace Templates { typedef CenteredEuler3DTransform< ITK_TEMPLATE_1 x > \
00136                                             CenteredEuler3DTransform##y; } \
00137   }
00138 
00139 
00140 #if ITK_TEMPLATE_EXPLICIT
00141 # include "Templates/itkCenteredEuler3DTransform+-.h"
00142 #endif
00143 
00144 #if ITK_TEMPLATE_TXX
00145 # include "itkCenteredEuler3DTransform.txx"
00146 #endif
00147 
00148 #endif /* __itkCenteredEuler3DTransform_h */
00149 

Generated at Tue Sep 15 02:30:48 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000