frePointSetRegistrationControllerBase.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: frePointSetRegistrationControllerBase.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 __frePointSetRegistrationControllerBase_h
00023 #define __frePointSetRegistrationControllerBase_h
00024 
00025 #include "freRegistrationProcessorControllerBase.h"
00026 #include "freOptimizerOwnerControllerInterface.h"
00027 
00028 namespace FREE
00029 {
00030 
00040   freControllerIDMacro(PointSetRegistrationControllerBase, "PointSetRegistrationBase");
00041 template <class TControlledRigidProcessor>
00042 class PointSetRegistrationControllerBase : public RegistrationProcessorControllerBase<TControlledRigidProcessor>, public OptimizerOwnerControllerInterface
00043 {
00044 public:  
00045   typedef TControlledRigidProcessor ComponentType;
00046   typedef RegistrationProcessorControllerBase<ComponentType> Superclass;
00047   typedef PointSetRegistrationControllerBase<ComponentType> Self;
00048 
00049   typedef typename ComponentType::Pointer ComponentPointer;
00050   typedef typename Superclass::GenericComponentType GenericComponentType;
00051   typedef typename Superclass::GenericComponentPointer GenericComponentPointer;
00052   typedef typename Superclass::GenericMediaPointer GenericMediaPointer;
00053 
00054   DeclareParameterMacro(PersistentFinalField);
00055 
00056   DeclareMediaIDMacro(fixedPointSet);
00057   DeclareMediaIDMacro(movingPointSet);
00058   DeclareMediaIDMacro(fieldReference);
00059   DeclareMediaIDMacro(finalField);
00060 
00061   DeclareMediaIDMacro(finalTransform);
00062   DeclareMediaIDMacro(finalInverseTransform);
00063 
00064   itkTypeMacro(PointSetRegistrationControllerBase, RegistrationProcessorControllerBase);
00065 
00066   virtual ValidityTag::Pointer GetMediaValidityTagRequirement(const MediaID& mediaID, SessionComponentCache* pComponentCache) const; 
00067 
00068   virtual bool GetMinimizeToOptimize(const SessionComponentCache* pComponentCache) const;
00069 
00070   virtual Parameter::Pointer GetParameter(const SessionComponentCache* pComponentCache,
00071                                           const std::string& sParameterName) const;
00072 protected:
00073   PointSetRegistrationControllerBase();
00074 
00075   virtual void GenerateProfile(CtrlProfile::ControllerProfile& profile,
00076                                const SessionComponentCache* pComponentCache,
00077                                bool bRegardOldSetup) const;
00078 
00079   virtual ComponentPointer BuildMainComponent(ComponentSetup* pComponentSetup,
00080                                                   SessionComponentCache* pComponentCache) const;
00081 
00082         virtual void ActualizeMainComponent(ComponentType* pMainComponent,
00083                                       SessionComponentCache* pComponentCache,
00084                                       SessionInfo* pSessionInfo,
00085                                                                                                                                                         const unsigned int& iActLevel) const;
00086 
00087   virtual GenericComponentType* GetSubComponentCasted(ComponentType* pMainComponent, const ComponentID& compID,
00088                                                       SessionComponentCache* pMainComponentCache) const; 
00089   virtual void SetSubComponentCasted(GenericComponentType* pSubComponent, ComponentType* pMainComponent,
00090                                const ComponentID compID, SessionComponentCache* pMainComponentCache) const; 
00091 
00092   virtual GenericMediaPointer GetMediaCasted(const MediaID& mediaID,
00093                                                  ComponentType* pComponent,
00094                                                  SessionComponentCache* pComponentCache,
00095                                                  SessionInfo* pSessionInfo) const; 
00096 
00097   virtual void SetMediaCasted(const MediaID& mediaID, GenericMediaType* pMedia, ComponentType* pComponent, SessionComponentCache* pComponentCache,
00098                               SessionInfo* pSessionInfo) const; 
00099 
00100   virtual ValidityTag::Pointer GetValidityTagRequirement(const std::string& id, SessionComponentCache* pComponentCache) const; 
00101 
00102   virtual void ResetMainComponent(SessionComponentCache* pComponentCache,
00103                                   SessionInfo* pSessionInfo) const;
00104 
00105   virtual void ResetSubComponents(SessionComponentCache* pComponentCache,
00106                                   SessionInfo* pSessionInfo) const;
00107 };
00108 
00109 } //end of namespace free
00110 
00111 #ifndef ITK_MANUAL_INSTANTIATION
00112 #include "frePointSetRegistrationControllerBase.txx"
00113 #endif
00114 
00115 #endif

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