freConvertValueSet.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   F.R.E.E - flexible registration evaluation engine
00004   Module:    $RCSfile: freConvertValueSet.h,v $
00005 
00006   Date:      $Date: 2004/07/25 $
00007   Version:   $Revision: 1.0 $
00008 
00009   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00010   Institute for Medical Biometry and Informatics, University of Heidelberg,
00011   Germany). All rights reserved.
00012   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00013   for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 
00021 #ifndef __freConvertValueSet_h
00022 #define __freConvertValueSet_h
00023 
00024 #include "freElementals.h"
00025 #include "freXMLValueSet.h"
00026 
00027 namespace FREE
00028 {
00029 
00030 class ConvertValueSet
00031 {
00032 public:
00033 
00039         template <typename TFixedArray> static XMLValueSet FromITKArray(const TFixedArray& rArray);
00040 
00041         template <typename TIndex> static XMLValueSet FromITKIndex(const TIndex& rIndex);
00042 
00043         template <typename TSize>       static XMLValueSet FromITKSize(const TSize& rSize);
00044 
00045         template <typename TFixedArray> static void FromITKArray(const TFixedArray& rArray, XMLValueSet& rSet);
00046 
00047         template <typename TIndex> static void FromITKIndex(const TIndex& rIndex, XMLValueSet& rSet);
00048 
00049         template <typename TSize>       static void FromITKSize(const TSize& rSize, XMLValueSet& rSet);
00050         
00051         template <typename TFixedArray> static TFixedArray ToITKArray(const XMLValueSet& rSet);
00052 
00053         template <typename TIndex> static TIndex ToITKIndex(const XMLValueSet& rSet);
00054 
00055         template <typename TSize>       static TSize ToITKSize(const XMLValueSet& rSet);
00056 
00057 
00058 protected:
00059 
00060         template <typename TArray>      static void FromArrayStruct(const TArray& rArray, XMLValueSet& rSet, const unsigned int& iSize);
00061 
00062 };
00063 
00064 } //end of namespace free
00065 
00066 #ifndef ITK_MANUAL_INSTANTIATION
00067 #include "freConvertValueSet.txx"
00068 #endif
00069 
00070 #endif

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