freITKTransformControllerBase.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: freITKTransformControllerBase.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 __freITKTransformControllerBase_h
00023 #define __freITKTransformControllerBase_h
00024 
00025 #include "freTransformControllerBase.h"
00026 #include "freITKTransformControllerInterface.h"
00027 
00028 namespace FREE
00029 {
00030 
00036   freControllerIDMacro(ITKTransformControllerBase, "ITKTransformControllerBase");
00037 template <class TITKTransform, unsigned int VDimension>
00038 class ITKTransformControllerBase : public TransformControllerBase< TITKTransform, VDimension >,
00039                                    public ITKTransformControllerInterface<typename TITKTransform::ScalarType,
00040                                                                           TITKTransform::InputSpaceDimension,
00041                                                                           TITKTransform::OutputSpaceDimension>
00042 {
00043 public:  
00044   typedef TITKTransform ComponentType;
00045   typedef TransformControllerBase<ComponentType, VDimension> Superclass;
00046   typedef ITKTransformControllerInterface<typename ComponentType::ScalarType,
00047                                           ComponentType::InputSpaceDimension,
00048                                           ComponentType::OutputSpaceDimension> InterfaceType;
00049 
00050   typedef typename Superclass::GenericComponentType         GenericComponentType;
00051   typedef typename Superclass::GenericComponentPointer      GenericComponentPointer;
00052 
00053   typedef typename InterfaceType::TransformFunctionMediaType    TransformFunctionMediaType;
00054   typedef typename InterfaceType::TransformFunctionMediaPointer TransformFunctionMediaPointer;
00055   typedef typename InterfaceType::TransformParametersType       TransformParametersType;
00056 
00057   itkTypeMacro(ITKTransformControllerBase, TransformControllerBase);
00058 
00063   virtual GenericComponentPointer BuildInverseTransform(GenericComponentType* pTransformComponent) const;
00064 
00072   virtual TransformFunctionMediaPointer GenerateTransformationFunction(SessionComponentCache* pTransformCache,
00073                                                                        const TransformParametersType& parameters) const;
00074 
00081   virtual TransformFunctionMediaPointer GenerateInverseTransformationFunction(SessionComponentCache* pTransformCache,
00082                                                                                const TransformParametersType& parameters) const;
00083 protected:
00090   virtual void CopyFixedParameters(ComponentType* pOrigin, ComponentType* pDestination) const;
00091 
00094   ITKTransformControllerBase();
00095 };
00096 
00097 } //end of namespace free
00098 
00099 #ifndef ITK_MANUAL_INSTANTIATION
00100 #include "freITKTransformControllerBase.txx"
00101 #endif
00102 
00103 #endif

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