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: 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 
00018 #ifndef __itkEuler2DTransform_h
00019 #define __itkEuler2DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkRigid2DTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00041 template < class TScalarType=double >    // Data type for scalars 
00042 class ITK_EXPORT Euler2DTransform : 
00043             public Rigid2DTransform< TScalarType > 
00044 {
00045 public:
00047   typedef Euler2DTransform                  Self;
00048   typedef Rigid2DTransform< TScalarType >   Superclass;
00049   typedef SmartPointer<Self>                Pointer;
00050   typedef SmartPointer<const Self>          ConstPointer;
00051 
00053   itkNewMacro( Self );
00054 
00056   itkTypeMacro( Euler2DTransform, Rigid2DTransform );
00057 
00059   itkStaticConstMacro(SpaceDimension, unsigned int, 2);
00060   itkStaticConstMacro(ParametersDimension, unsigned int, 3);
00062 
00064   typedef typename Superclass::ScalarType  ScalarType;
00065 
00067   typedef typename Superclass::ParametersType  ParametersType;
00068 
00070   typedef typename Superclass::JacobianType  JacobianType;
00071 
00073   typedef typename Superclass::InputPointType   InputPointType;
00074   typedef typename Superclass::OutputPointType  OutputPointType;
00075 
00077   typedef typename Superclass::InputVectorType   InputVectorType;
00078   typedef typename Superclass::OutputVectorType  OutputVectorType;
00079 
00081   typedef typename Superclass::InputCovariantVectorType   InputCovariantVectorType;
00082   typedef typename Superclass::OutputCovariantVectorType  OutputCovariantVectorType;
00083 
00085   typedef typename Superclass::InputVnlVectorType   InputVnlVectorType;
00086   typedef typename Superclass::OutputVnlVectorType  OutputVnlVectorType;
00087   typedef typename Superclass::MatrixType           MatrixType;
00088 
00093   void CloneInverseTo( Pointer & newinverse ) const;
00094 
00099   void CloneTo( Pointer & clone ) const;
00100 
00105   void ComputeAngleFromMatrix()
00106     { this->ComputeMatrixParameters(); }
00107 
00108 protected:
00109   Euler2DTransform();
00110   ~Euler2DTransform(){};
00111 
00112   Euler2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
00113 
00114   void PrintSelf(std::ostream &os, Indent indent) const;
00115 
00116 private:
00117   Euler2DTransform(const Self&); //purposely not implemented
00118   void operator=(const Self&); //purposely not implemented
00119 
00120 
00121 }; //class Euler2DTransform
00122 
00123 
00124 }  // namespace itk
00125 
00126 // Define instantiation macro for this template.
00127 #define ITK_TEMPLATE_Euler2DTransform(_, EXPORT, x, y) namespace itk { \
00128   _(1(class EXPORT Euler2DTransform< ITK_TEMPLATE_1 x >)) \
00129   namespace Templates { typedef Euler2DTransform< ITK_TEMPLATE_1 x > \
00130                                             Euler2DTransform##y; } \
00131   }
00132 
00133 #if ITK_TEMPLATE_EXPLICIT
00134 # include "Templates/itkEuler2DTransform+-.h"
00135 #endif
00136 
00137 #if ITK_TEMPLATE_TXX
00138 # include "itkEuler2DTransform.txx"
00139 #endif
00140 
00141 #endif /* __itkEuler2DTransform_h */
00142 

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