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: 2003/09/10 14:29:03 $ 00007 Version: $Revision: 1.7 $ 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 00156 00157 protected: 00158 CenteredRigid2DTransform(); 00159 ~CenteredRigid2DTransform(){}; 00160 00161 CenteredRigid2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension); 00162 00163 void PrintSelf(std::ostream &os, Indent indent) const; 00164 00166 virtual void ComputeMatrixAndOffset(void); 00167 00168 private: 00169 CenteredRigid2DTransform(const Self&); //purposely not implemented 00170 void operator=(const Self&); //purposely not implemented 00171 00172 TScalarType m_Angle; 00173 00174 InputPointType m_Center; 00175 00176 OutputVectorType m_Translation; 00177 00178 }; //class CenteredRigid2DTransform 00179 00180 00181 } // namespace itk 00182 00183 00184 #ifndef ITK_MANUAL_INSTANTIATION 00185 #include "itkCenteredRigid2DTransform.txx" 00186 #endif 00187 00188 #endif /* __itkCenteredRigid2DTransform_h */

Generated at Sat Mar 31 02:15:35 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000