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

itkEuler2DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkEuler2DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/01/30 20:56:07 $
00007   Version:   $Revision: 1.13 $
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 
00018 #ifndef __itkEuler2DTransform_h
00019 #define __itkEuler2DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkRigid2DTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00039 template < class TScalarType=double >    // Data type for scalars 
00040 class ITK_EXPORT Euler2DTransform : 
00041             public Rigid2DTransform< TScalarType > 
00042 {
00043 public:
00045   typedef Euler2DTransform Self;
00046   typedef Rigid2DTransform< TScalarType >   Superclass;
00047   typedef SmartPointer<Self>        Pointer;
00048   typedef SmartPointer<const Self>  ConstPointer;
00049 
00051   itkNewMacro( Self );
00052 
00054   itkTypeMacro( Euler2DTransform, Rigid2DTransform );
00055 
00057   itkStaticConstMacro(SpaceDimension, unsigned int, 2);
00058   itkStaticConstMacro(ParametersDimension, unsigned int, 3);
00060 
00062   typedef typename Superclass::ScalarType  ScalarType;
00063 
00065   typedef typename Superclass::ParametersType  ParametersType;
00066 
00068   typedef typename Superclass::JacobianType  JacobianType;
00069 
00071   typedef typename Superclass::InputPointType   InputPointType;
00072   typedef typename Superclass::OutputPointType  OutputPointType;
00073 
00075   typedef typename Superclass::InputVectorType   InputVectorType;
00076   typedef typename Superclass::OutputVectorType  OutputVectorType;
00077 
00079   typedef typename Superclass::InputCovariantVectorType   InputCovariantVectorType;
00080   typedef typename Superclass::OutputCovariantVectorType  OutputCovariantVectorType;
00081 
00083   typedef typename Superclass::InputVnlVectorType   InputVnlVectorType;
00084   typedef typename Superclass::OutputVnlVectorType  OutputVnlVectorType;
00085   typedef typename Superclass::MatrixType           MatrixType;
00086 
00091   void CloneInverseTo( Pointer & newinverse ) const;
00092 
00097   void CloneTo( Pointer & clone ) const;
00098 
00103   void ComputeAngleFromMatrix()
00104     { this->ComputeMatrixParameters(); }
00105 
00106 protected:
00107   Euler2DTransform();
00108   ~Euler2DTransform(){};
00109 
00110   Euler2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
00111 
00112   void PrintSelf(std::ostream &os, Indent indent) const;
00113 
00114 private:
00115   Euler2DTransform(const Self&); //purposely not implemented
00116   void operator=(const Self&); //purposely not implemented
00117 
00118 
00119 }; //class Euler2DTransform
00120 
00121 
00122 }  // namespace itk
00123 
00124 // Define instantiation macro for this template.
00125 #define ITK_TEMPLATE_Euler2DTransform(_, EXPORT, x, y) namespace itk { \
00126   _(1(class EXPORT Euler2DTransform< ITK_TEMPLATE_1 x >)) \
00127   namespace Templates { typedef Euler2DTransform< ITK_TEMPLATE_1 x > \
00128                                             Euler2DTransform##y; } \
00129   }
00130 
00131 #if ITK_TEMPLATE_EXPLICIT
00132 # include "Templates/itkEuler2DTransform+-.h"
00133 #endif
00134 
00135 #if ITK_TEMPLATE_TXX
00136 # include "itkEuler2DTransform.txx"
00137 #endif
00138 
00139 #endif /* __itkEuler2DTransform_h */
00140 

Generated at Tue Jul 29 19:52:55 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000