freAffineTransformController.h

Go to the documentation of this file.
00001 /*=========================================================================
00002  
00003   Program:   F.R.E.E. - flexible registration evaluation engine
00004   Version:   v.1.0.0
00005   Date:      $Date: 2006/09/01 12:00:00 $
00006   Module:    $RCSfile: freAffineTransformController.h,v $
00007   Language:  C++
00008  
00009  
00010  
00011   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00012   Institute for Medical Biometry and Informatics, University of Heidelberg,
00013   Germany). All rights reserved.
00014   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00015   for details.
00016  
00017      This software is distributed WITHOUT ANY WARRANTY; without even 
00018      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00019      PURPOSE.  See the above copyright notices for more information.
00020  
00021 =========================================================================*/
00022 #ifndef __freAffineTransformController_h
00023 #define __freAffineTransformController_h
00024 
00025 #include "freMatrixOffsetTransformControllerBase.h"
00026 
00027 #include "itkAffineTransform.h"
00028 
00029 namespace FREE
00030 {
00031 
00032 freControllerIDMacro(AffineTransformControllerBase, "AffineTransformBase");
00042 template <int iDimension>
00043 class AffineTransformControllerBase : public MatrixOffsetTransformControllerBase< itk::AffineTransform<ScalarType,iDimension>, iDimension>
00044 {
00045 public:
00046     typedef itk::AffineTransform<ScalarType,iDimension> ComponentType;
00047     typedef MatrixOffsetTransformControllerBase<ComponentType, iDimension> Superclass;
00048 
00049     itkTypeMacro(AffineTransformControllerBase, MatrixOffsetTransformControllerBase);
00050 
00051 protected:
00052 
00055     AffineTransformControllerBase()
00056     {
00057         this->UpdateControllerID(ControllerID::AffineTransformControllerBase);
00058         this->m_Description = "A affine transformation, composed of rotation, scaling, shearing and translation.";
00059     };
00060 
00061 };
00062 
00072 freControllerIDMacro(Affine2DTransformController, "Affine 2D Transform");
00073 class Affine2DTransformController : public AffineTransformControllerBase<2>
00074 {
00075 public:
00076     itkTypeMacro(Affine2DTransformController, AffineTransformControllerBase);
00077 
00078     Affine2DTransformController();
00079 
00080 protected:
00081     virtual void GenerateProfile(CtrlProfile::ControllerProfile& profile,
00082                                  const SessionComponentCache* pComponentCache,
00083                                  bool bRegardOldSetup) const;
00084 
00085 };
00086 
00096 freControllerIDMacro(Affine3DTransformController, "Affine 3D Transform");
00097 class Affine3DTransformController : public AffineTransformControllerBase<3>
00098 {
00099 public:
00100     itkTypeMacro(Affine3DTransformController, AffineTransformControllerBase);
00101 
00102     Affine3DTransformController();
00103 
00104 protected:
00105     virtual void GenerateProfile(CtrlProfile::ControllerProfile& profile,
00106                                  const SessionComponentCache* pComponentCache,
00107                                  bool bRegardOldSetup) const;
00108 };
00109 
00110 } //end of namespace free
00111 
00112 #endif

Generated at Sat Oct 13 15:18:12 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000