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: 2005/03/10 23:49:37 $
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 __itkFixedCenterOfRotationAffineTransform_h
00019 #define __itkFixedCenterOfRotationAffineTransform_h
00020 
00021 #include "itkScalableAffineTransform.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 ScalableAffineTransform< TScalarType, NDimensions >
00043 {
00044 public:
00046   typedef FixedCenterOfRotationAffineTransform                 Self;
00047   typedef ScalableAffineTransform< TScalarType, NDimensions >  Superclass;
00048   typedef SmartPointer<Self>                                   Pointer;
00049   typedef SmartPointer<const Self>                             ConstPointer;
00050     
00052   itkTypeMacro( FixedCenterOfRotationAffineTransform, ScalableAffineTransform );
00053   
00055   itkNewMacro( Self );
00056   
00058   itkStaticConstMacro(InputSpaceDimension, unsigned int, NDimensions);
00059   itkStaticConstMacro(OutputSpaceDimension, unsigned int, NDimensions);
00060   itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
00061   itkStaticConstMacro(ParametersDimension, unsigned int,
00062                       NDimensions*(NDimensions+2));
00063 
00065   typedef typename Superclass::ParametersType            ParametersType;
00066   typedef typename Superclass::JacobianType              JacobianType;
00067   typedef typename Superclass::ScalarType                ScalarType;
00068   typedef typename Superclass::InputVectorType           InputVectorType;
00069   typedef typename Superclass::OutputVectorType          OutputVectorType;
00070   typedef typename Superclass::InputCovariantVectorType     
00071                                             InputCovariantVectorType;
00072   typedef typename Superclass::OutputCovariantVectorType    
00073                                             OutputCovariantVectorType;
00074   typedef typename Superclass::InputVnlVectorType        InputVnlVectorType;
00075   typedef typename Superclass::OutputVnlVectorType       OutputVnlVectorType;
00076   typedef typename Superclass::InputPointType            InputPointType;
00077   typedef typename Superclass::OutputPointType           OutputPointType;
00078   typedef typename Superclass::MatrixType                MatrixType;
00079   typedef typename Superclass::InverseMatrixType         InverseMatrixType;
00080   typedef typename Superclass::CenterType                CenterType;
00081   typedef typename Superclass::TranslationType           TranslationType;
00082   typedef typename Superclass::OffsetType                OffsetType;
00083     
00085   void SetCenterOfRotationComponent(const InputPointType &cor)
00086     { this->SetCenter( cor ); };
00087   InputPointType GetCenterOfRotationComponent(void) const
00088     { return this->GetCenter(); };
00089    
00092   void SetMatrixComponent(const MatrixType &matrix)
00093     { this->SetMatrix( matrix ); };
00095   const MatrixType & GetMatrixComponent() const 
00096     { return this->GetMatrix(); }
00097 
00099   void SetOffsetComponent(const OffsetType &offset)
00100     { this->SetTranslation( offset ); };
00101 
00103   const OffsetType & GetOffsetComponent(void) const 
00104     { return this->GetTranslation(); }
00105 
00106 protected:
00108   FixedCenterOfRotationAffineTransform(const MatrixType &matrix,
00109                                        const OutputVectorType &offset);
00110   FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDimension,
00111                                        unsigned int parametersDimension);
00112   FixedCenterOfRotationAffineTransform();      
00113    
00115   virtual ~FixedCenterOfRotationAffineTransform();
00116     
00117 private:
00118   FixedCenterOfRotationAffineTransform(const Self & other);
00119   const Self & operator=( const Self & );
00120 
00121 }; //class FixedCenterOfRotationAffineTransform
00122   
00123 }  // namespace itk
00124 
00125 
00126 #ifndef ITK_MANUAL_INSTANTIATION
00127 #include "itkFixedCenterOfRotationAffineTransform.txx"
00128 #endif
00129 
00130 #endif /* __itkFixedCenterOfRotationAffineTransform_h */
00131 
00132 
00133 
00134 
00135 

Generated at Wed May 24 23:08:41 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000