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

itkFixedCenterOfRotationAffineTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFixedCenterOfRotationAffineTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/12/14 04:10:04 $
00007   Version:   $Revision: 1.5 $
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 __itkFixedCenterOfRotationAffineTransform_h
00019 #define __itkFixedCenterOfRotationAffineTransform_h
00020 
00021 #include "itkAffineTransform.h"
00022 
00023 namespace itk
00024 {
00025 
00026 
00038 template <
00039  class TScalarType=double,      // Data type for scalars (e.g. float or double)
00040  unsigned int NDimensions=3>    // Number of dimensions in the input space
00041 class ITK_EXPORT FixedCenterOfRotationAffineTransform 
00042 : public AffineTransform< TScalarType, NDimensions >
00043 {
00044 public:
00046   typedef FixedCenterOfRotationAffineTransform  Self;
00047   typedef AffineTransform< TScalarType, NDimensions >  Superclass;
00048   typedef SmartPointer<Self>        Pointer;
00049   typedef SmartPointer<const Self>  ConstPointer;
00050     
00052   itkTypeMacro( FixedCenterOfRotationAffineTransform, AffineTransform );
00053   
00055   itkNewMacro( Self );
00056   
00058   typedef typename Superclass::ParametersType            ParametersType;
00059   typedef typename Superclass::JacobianType              JacobianType;
00060   typedef typename Superclass::ScalarType                ScalarType;
00061   typedef typename Superclass::InputVectorType           InputVectorType;
00062   typedef typename Superclass::OutputVectorType          OutputVectorType;
00063   typedef typename Superclass::InputCovariantVectorType     
00064                                             InputCovariantVectorType;
00065   typedef typename Superclass::OutputCovariantVectorType    
00066                                             OutputCovariantVectorType;
00067   typedef typename Superclass::InputVnlVectorType        InputVnlVectorType;
00068   typedef typename Superclass::OutputVnlVectorType       OutputVnlVectorType;
00069   typedef typename Superclass::InputPointType            InputPointType;
00070   typedef typename Superclass::OutputPointType           OutputPointType;
00071   typedef typename Superclass::MatrixType                MatrixType;
00072   typedef typename Superclass::OffsetType                OffsetType;
00073     
00077   void SetIdentity( void );
00078   
00080   void PrintSelf(std::ostream &s, Indent indent) const;
00081 
00083   void SetCenterOfRotationComponent(const InputPointType &cor);
00084   InputPointType GetCenterOfRotationComponent(void) const
00085     { return this->GetCenter(); };
00086    
00088   virtual void SetScaleComponent( const double scale[NDimensions] );
00090   virtual const double* GetScaleComponent() const {return m_ScaleComponent;};
00091 
00094   void SetMatrixComponent(const MatrixType &matrix);
00096   const MatrixType & GetMatrixComponent() const { return m_MatrixComponent; }
00097 
00099   void SetOffsetComponent(const OffsetType &offset);
00100 
00102   const OffsetType & GetOffsetComponent(void) const 
00103     { return this->GetTranslation(); }
00104 
00108   void SetMatrix(const MatrixType &matrix);
00109 
00110 protected:
00112   FixedCenterOfRotationAffineTransform();      
00113    
00115   virtual ~FixedCenterOfRotationAffineTransform();
00116     
00117 private:
00118 
00119   FixedCenterOfRotationAffineTransform(const Self & other);
00120   const Self & operator=( const Self & );
00121   
00122   double              m_ScaleComponent[NDimensions];
00123   MatrixType          m_MatrixComponent;
00124   MatrixType          m_ScaleMatrixComponent;
00125 
00126   void RecomputeMatrix();
00127 
00128 }; //class FixedCenterOfRotationAffineTransform
00129   
00130 }  // namespace itk
00131 
00132 
00133 #ifndef ITK_MANUAL_INSTANTIATION
00134 #include "itkFixedCenterOfRotationAffineTransform.txx"
00135 #endif
00136 
00137 #endif /* __itkFixedCenterOfRotationAffineTransform_h */
00138 
00139 
00140 
00141 
00142 

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