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: 2009-04-09 09:23:20 $
00007   Version:   $Revision: 1.16 $
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 
00091   typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
00092   typedef typename InverseTransformBaseType::Pointer    InverseTransformBasePointer;
00093 
00098   void CloneInverseTo( Pointer & newinverse ) const;
00099 
00101   bool GetInverse(Self* inverse) const;
00102 
00104   virtual InverseTransformBasePointer GetInverseTransform() const;
00105 
00110   void CloneTo( Pointer & clone ) const;
00111 
00116   void ComputeAngleFromMatrix()
00117     { this->ComputeMatrixParameters(); }
00118 
00119 protected:
00120   Euler2DTransform();
00121   ~Euler2DTransform(){};
00122 
00123   Euler2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
00124 
00125   void PrintSelf(std::ostream &os, Indent indent) const;
00126 
00127 private:
00128   Euler2DTransform(const Self&); //purposely not implemented
00129   void operator=(const Self&); //purposely not implemented
00130 
00131 
00132 }; //class Euler2DTransform
00133 
00134 
00135 }  // namespace itk
00136 
00137 // Define instantiation macro for this template.
00138 #define ITK_TEMPLATE_Euler2DTransform(_, EXPORT, x, y) namespace itk { \
00139   _(1(class EXPORT Euler2DTransform< ITK_TEMPLATE_1 x >)) \
00140   namespace Templates { typedef Euler2DTransform< ITK_TEMPLATE_1 x > \
00141                                             Euler2DTransform##y; } \
00142   }
00143 
00144 #if ITK_TEMPLATE_EXPLICIT
00145 # include "Templates/itkEuler2DTransform+-.h"
00146 #endif
00147 
00148 #if ITK_TEMPLATE_TXX
00149 # include "itkEuler2DTransform.txx"
00150 #endif
00151 
00152 #endif /* __itkEuler2DTransform_h */
00153 

Generated at Fri Apr 16 18:16:52 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000