freMatrixOffsetTransformControllerBase.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: freMatrixOffsetTransformControllerBase.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 __freMatrixOffsetTransformControllerBase_h
00023 #define __freMatrixOffsetTransformControllerBase_h
00024 
00025 #include "freITKTransformControllerBase.h"
00026 
00027 namespace FREE
00028 {
00029 
00035   freControllerIDMacro(MatrixOffsetTransformControllerBase, "MatrixOffsetTransformControllerBase");
00036 template <class TMatrixOffsetTransform, unsigned int VDimension>
00037 class MatrixOffsetTransformControllerBase : public ITKTransformControllerBase< TMatrixOffsetTransform, VDimension >
00038 {
00039 public:  
00040   typedef TMatrixOffsetTransform ComponentType;
00041   typedef ITKTransformControllerBase<TMatrixOffsetTransform, VDimension> Superclass;
00042 
00043   typedef typename Superclass::GenericComponentType GenericComponentType;
00044   typedef typename Superclass::GenericComponentPointer GenericComponentPointer;
00045 
00046   itkTypeMacro(MatrixOffsetTransformControllerBase, TransformControllerBase);
00047 
00048   DeclareParameterMacro(CenterInitializationType);
00049   DeclareParameterMacro(Center);
00050 
00051   DeclareMediaIDMacro(movingInitialImage);
00052   DeclareMediaIDMacro(fixedInitialImage);
00053 
00054 protected:
00057   MatrixOffsetTransformControllerBase();
00058 
00059   virtual void SetMediaCasted(const MediaID& mediaID,
00060                               GenericMediaType* pMedia,
00061                               ComponentType* pComponent,
00062                               SessionComponentCache* pComponentCache,
00063                               SessionInfo* pSessionInfo) const;
00064 
00065   virtual void GenerateProfile(CtrlProfile::ControllerProfile& profile,
00066                                const SessionComponentCache* pComponentCache,
00067                                bool bRegardOldSetup) const;
00068 
00077   bool SetInitialTransformValues( ComponentType* pTransformComponent,
00078                                  SessionComponentCache* pComponentCache,
00079                                  SessionInfo* pSessionInfo,
00080                                  const int& iInitializeByITV) const;
00081 
00082   virtual void CopyFixedParameters(ComponentType* pOrigin, ComponentType* pDestination) const;
00083 
00084 };
00085 
00086 } //end of namespace free
00087 
00088 #ifndef ITK_MANUAL_INSTANTIATION
00089 #include "freMatrixOffsetTransformControllerBase.txx"
00090 #endif
00091 
00092 #endif

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