freTransformControllerBase.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: freTransformControllerBase.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 __freTransformControllerBase_h
00023 #define __freTransformControllerBase_h
00024 
00025 #include "freControllerBase.h"
00026 
00027 namespace FREE
00028 {
00029 
00045   freControllerIDMacro(TransformControllerBase, "TransformBase");
00046 template <class TControlledTransform, int iDimension>
00047 class TransformControllerBase : public ComponentControllerBase<TControlledTransform>
00048 {
00049 public:  
00050   typedef itk::Point<ScalarType,iDimension> PointType;
00051         typedef ComponentControllerBase<TControlledTransform> Superclass;
00052 
00053   itkTypeMacro(TransformControllerBase, ComponentControllerBase);
00054 
00055   typedef ComponentControllerBase<TControlledTransform> Superclass;
00056   typedef typename Superclass::ComponentType ComponentType;
00057   typedef typename Superclass::ComponentPointer ComponentPointer;
00058   typedef typename Superclass::GenericComponentType GenericComponentType;
00059   typedef typename Superclass::GenericComponentPointer GenericComponentPointer;
00060 
00061 
00062   virtual ~TransformControllerBase() {};
00063 
00064 protected:
00065         typedef typename ImageTypes<iDimension>::PointSetType PointSetType;
00066 
00067   TransformControllerBase();
00068 
00087   virtual bool SetInitialTransformValues( ComponentType* pTransformComponent,
00088                                           SessionComponentCache* pComponentCache,
00089                                           SessionInfo* pSessionInfo,
00090                                                                                                                                                             const int& iInitializeByITV) const;
00091 
00092         virtual void ActualizeMainComponent(ComponentType* pMainComponent,
00093                                       SessionComponentCache* pComponentCache,
00094                                       SessionInfo* pSessionInfo,
00095                                                                                                                                                         const unsigned int& iActLevel) const;
00096 
00097   virtual void SetMediaCasted(const MediaID& mediaID, GenericMediaType* pMedia,
00098                                                                                                                   ComponentType* pComponent,
00099                               SessionComponentCache* pComponentCache,
00100                               SessionInfo* pSessionInfo) const;
00101 
00102   virtual void GenerateProfile(CtrlProfile::ControllerProfile& profile,
00103                                const SessionComponentCache* pComponentCache,
00104                                bool bRegardOldSetup) const;
00105 };
00106 
00107 } //end of namespace FREE
00108 
00109 #ifndef ITK_MANUAL_INSTANTIATION
00110 #include "freTransformControllerBase.txx"
00111 #endif
00112 
00113 #endif

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