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: 2008-10-16 17:27:11 $
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 __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  InputCovariantVectorType;
00072   typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00073   typedef typename Superclass::InputVnlVectorType        InputVnlVectorType;
00074   typedef typename Superclass::OutputVnlVectorType       OutputVnlVectorType;
00075   typedef typename Superclass::InputPointType            InputPointType;
00076   typedef typename Superclass::OutputPointType           OutputPointType;
00077   typedef typename Superclass::MatrixType                MatrixType;
00078   typedef typename Superclass::InverseMatrixType         InverseMatrixType;
00079   typedef typename Superclass::CenterType                CenterType;
00080   typedef typename Superclass::TranslationType           TranslationType;
00081   typedef typename Superclass::OffsetType                OffsetType;
00082 
00084   void SetCenterOfRotationComponent(const InputPointType &cor)
00085     { this->SetCenter( cor ); }
00086   InputPointType GetCenterOfRotationComponent(void) const
00087     { return this->GetCenter(); }
00089 
00092   void SetMatrixComponent(const MatrixType &matrix)
00093     { this->SetMatrix( matrix ); }
00094 
00096   const MatrixType & GetMatrixComponent() const 
00097     { return this->GetMatrix(); }
00098 
00100   void SetOffsetComponent(const OffsetType &offset)
00101     { this->SetTranslation( offset ); }
00102 
00104   const OffsetType & GetOffsetComponent(void) const 
00105     { return this->GetTranslation(); }
00106 
00107 protected:
00109   FixedCenterOfRotationAffineTransform(const MatrixType &matrix,
00110                                        const OutputVectorType &offset);
00111   FixedCenterOfRotationAffineTransform(unsigned int outputSpaceDimension,
00112                                        unsigned int parametersDimension);
00113   FixedCenterOfRotationAffineTransform();
00115 
00117   virtual ~FixedCenterOfRotationAffineTransform();
00118 
00119 private:
00120   FixedCenterOfRotationAffineTransform(const Self & other);
00121   const Self & operator=( const Self & );
00122 
00123 }; //class FixedCenterOfRotationAffineTransform
00124   
00125 }  // namespace itk
00126 
00127 // Define instantiation macro for this template.
00128 #define ITK_TEMPLATE_FixedCenterOfRotationAffineTransform(_, EXPORT, x, y) namespace itk { \
00129   _(2(class EXPORT FixedCenterOfRotationAffineTransform< ITK_TEMPLATE_2 x >)) \
00130   namespace Templates { typedef FixedCenterOfRotationAffineTransform< ITK_TEMPLATE_2 x > \
00131                                             FixedCenterOfRotationAffineTransform##y; } \
00132   }
00133 
00134 #if ITK_TEMPLATE_EXPLICIT
00135 # include "Templates/itkFixedCenterOfRotationAffineTransform+-.h"
00136 #endif
00137 
00138 #if ITK_TEMPLATE_TXX
00139 # include "itkFixedCenterOfRotationAffineTransform.txx"
00140 #endif
00141 
00142 #endif /* __itkFixedCenterOfRotationAffineTransform_h */
00143 

Generated at Tue Sep 15 02:57:52 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000