00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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 }
00065
00066 #ifndef ITK_MANUAL_INSTANTIATION
00067 #include "freConvertValueSet.txx"
00068 #endif
00069
00070 #endif