itkEuler2DTransform.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 >
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&);
00129 void operator=(const Self&);
00130
00131
00132 };
00133
00134
00135 }
00136
00137
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
00153