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

itkCenteredRigid2DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCenteredRigid2DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/08/05 22:41:25 $
00007   Version:   $Revision: 1.9 $
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 __itkCenteredRigid2DTransform_h
00019 #define __itkCenteredRigid2DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkRigid2DTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00070 template < class TScalarType=double >    // Data type for scalars (float or double)
00071 class ITK_EXPORT CenteredRigid2DTransform : 
00072             public Rigid2DTransform< TScalarType > 
00073 {
00074 public:
00076   typedef CenteredRigid2DTransform Self;
00077   typedef Rigid2DTransform< TScalarType >   Superclass;
00078   typedef SmartPointer<Self>        Pointer;
00079   typedef SmartPointer<const Self>  ConstPointer;
00080     
00082   itkNewMacro( Self );
00083 
00085   itkTypeMacro( CenteredRigid2DTransform, Rigid2DTransform );
00086 
00088   itkStaticConstMacro(SpaceDimension, unsigned int, 2);
00089   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
00090   itkStaticConstMacro(ParametersDimension, unsigned int, 5);
00091 
00092 
00094   typedef typename Superclass::ScalarType  ScalarType;
00095 
00097   typedef typename Superclass::ParametersType  ParametersType;
00098 
00100   typedef typename Superclass::JacobianType  JacobianType;
00101   
00103   typedef typename Superclass::OffsetType  OffsetType;
00104 
00106   typedef typename Superclass::InputPointType   InputPointType;
00107   typedef typename Superclass::OutputPointType  OutputPointType;
00108   
00110   typedef typename Superclass::InputVectorType   InputVectorType;
00111   typedef typename Superclass::OutputVectorType  OutputVectorType;
00112   
00114   typedef typename Superclass::InputCovariantVectorType   InputCovariantVectorType;
00115   typedef typename Superclass::OutputCovariantVectorType  OutputCovariantVectorType;
00116   
00118   typedef typename Superclass::InputVnlVectorType   InputVnlVectorType;
00119   typedef typename Superclass::OutputVnlVectorType  OutputVnlVectorType;
00120   
00125   void SetParameters( const ParametersType & parameters );
00126 
00131   const ParametersType & GetParameters( void ) const;
00132 
00134   void SetAngle(TScalarType angle);
00135   void SetAngleInDegrees(TScalarType angle);
00136   itkGetConstReferenceMacro( Angle, TScalarType );
00137   
00139   void SetCenter( const InputPointType & center );
00140   itkGetConstReferenceMacro( Center, InputPointType );
00141 
00143   void SetTranslation( const OutputVectorType & translation );
00144   itkGetConstReferenceMacro( Translation, OutputVectorType );
00145   
00150   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00151 
00154   virtual void SetIdentity( void );
00155 
00160   void CloneInverseTo( Pointer & newinverse ) const;
00161 
00162 protected:
00163   CenteredRigid2DTransform();
00164   ~CenteredRigid2DTransform(){};
00165 
00166   CenteredRigid2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
00167 
00168   void PrintSelf(std::ostream &os, Indent indent) const;
00169 
00171   virtual void ComputeMatrixAndOffset(void);
00172 
00173 private:
00174   CenteredRigid2DTransform(const Self&); //purposely not implemented
00175   void operator=(const Self&); //purposely not implemented
00176 
00177   TScalarType         m_Angle; 
00178 
00179   InputPointType      m_Center;
00180 
00181   OutputVectorType    m_Translation;
00182 
00183 }; //class CenteredRigid2DTransform
00184 
00185 
00186 }  // namespace itk
00187 
00188 
00189 #ifndef ITK_MANUAL_INSTANTIATION
00190 #include "itkCenteredRigid2DTransform.txx"
00191 #endif
00192 
00193 #endif /* __itkCenteredRigid2DTransform_h */

Generated at Tue Mar 29 23:48:17 2005 for ITK by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2000