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: 2007/01/30 20:56:07 $
00007   Version:   $Revision: 1.8 $
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));
00064 
00066   typedef typename Superclass::ParametersType            ParametersType;
00067   typedef typename Superclass::JacobianType              JacobianType;
00068   typedef typename Superclass::ScalarType                ScalarType;
00069   typedef typename Superclass::InputVectorType           InputVectorType;
00070   typedef typename Superclass::OutputVectorType          OutputVectorType;
00071   typedef typename Superclass::InputCovariantVectorType     
00072                                             InputCovariantVectorType;
00073   typedef typename Superclass::OutputCovariantVectorType    
00074                                             OutputCovariantVectorType;
00075   typedef typename Superclass::InputVnlVectorType        InputVnlVectorType;
00076   typedef typename Superclass::OutputVnlVectorType       OutputVnlVectorType;
00077   typedef typename Superclass::InputPointType            InputPointType;
00078   typedef typename Superclass::OutputPointType           OutputPointType;
00079   typedef typename Superclass::MatrixType                MatrixType;
00080   typedef typename Superclass::InverseMatrixType         InverseMatrixType;
00081   typedef typename Superclass::CenterType                CenterType;
00082   typedef typename Superclass::TranslationType           TranslationType;
00083   typedef typename Superclass::OffsetType                OffsetType;
00084 
00086   void SetCenterOfRotationComponent(const InputPointType &cor)
00087     { this->SetCenter( cor ); };
00088   InputPointType GetCenterOfRotationComponent(void) const
00089     { return this->GetCenter(); };
00091 
00094   void SetMatrixComponent(const MatrixType &matrix)
00095     { this->SetMatrix( matrix ); };
00096 
00098   const MatrixType & GetMatrixComponent() const 
00099     { return this->GetMatrix(); }
00100 
00102   void SetOffsetComponent(const OffsetType &offset)
00103     { this->SetTranslation( offset ); };
00104 
00106   const OffsetType & GetOffsetComponent(void) const 
00107     { return this->GetTranslation(); }
00108 
00109 protected:
00111   FixedCenterOfRotationAffineTransform(const MatrixType &matrix,
00112                                        const OutputVectorType &offset);
00113   FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDimension,
00114                                        unsigned int parametersDimension);
00115   FixedCenterOfRotationAffineTransform();      
00117 
00119   virtual ~FixedCenterOfRotationAffineTransform();
00120 
00121 private:
00122   FixedCenterOfRotationAffineTransform(const Self & other);
00123   const Self & operator=( const Self & );
00124 
00125 }; //class FixedCenterOfRotationAffineTransform
00126   
00127 }  // namespace itk
00128 
00129 // Define instantiation macro for this template.
00130 #define ITK_TEMPLATE_FixedCenterOfRotationAffineTransform(_, EXPORT, x, y) namespace itk { \
00131   _(2(class EXPORT FixedCenterOfRotationAffineTransform< ITK_TEMPLATE_2 x >)) \
00132   namespace Templates { typedef FixedCenterOfRotationAffineTransform< ITK_TEMPLATE_2 x > \
00133                                             FixedCenterOfRotationAffineTransform##y; } \
00134   }
00135 
00136 #if ITK_TEMPLATE_EXPLICIT
00137 # include "Templates/itkFixedCenterOfRotationAffineTransform+-.h"
00138 #endif
00139 
00140 #if ITK_TEMPLATE_TXX
00141 # include "itkFixedCenterOfRotationAffineTransform.txx"
00142 #endif
00143 
00144 #endif /* __itkFixedCenterOfRotationAffineTransform_h */
00145 
00146 
00147 
00148 
00149 
00150 

Generated at Tue Jul 29 20:03:25 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000