Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef VISU_VTKTypeList_HeaderFile
00026 #define VISU_VTKTypeList_HeaderFile
00027
00028 #include "VISU_TypeList.hxx"
00029
00030 #include <vtkCharArray.h>
00031 #include <vtkUnsignedCharArray.h>
00032 #include <vtkShortArray.h>
00033 #include <vtkUnsignedShortArray.h>
00034 #include <vtkIntArray.h>
00035 #include <vtkUnsignedIntArray.h>
00036 #include <vtkLongArray.h>
00037 #include <vtkUnsignedLongArray.h>
00038 #include <vtkFloatArray.h>
00039 #include <vtkDoubleArray.h>
00040
00041
00042
00043 namespace VISU
00044 {
00045
00046 namespace TL
00047 {
00048
00049 typedef TSequence< char,
00050 unsigned char,
00051 short,
00052 unsigned short,
00053 int,
00054 unsigned int,
00055 long,
00056 unsigned long,
00057 float,
00058 double >::TResult TVTKBasicTypeList;
00059
00060
00061
00062 typedef TSequence< vtkCharArray,
00063 vtkUnsignedCharArray,
00064 vtkShortArray,
00065 vtkUnsignedShortArray,
00066 vtkIntArray,
00067 vtkUnsignedIntArray,
00068 vtkLongArray,
00069 vtkUnsignedLongArray,
00070 vtkFloatArray,
00071 vtkDoubleArray >::TResult TVTKArrayTypeList;
00072
00073
00074
00075 typedef TSequence< TInt2Type< VTK_CHAR >,
00076 TInt2Type< VTK_UNSIGNED_CHAR >,
00077 TInt2Type< VTK_SHORT >,
00078 TInt2Type< VTK_UNSIGNED_SHORT >,
00079 TInt2Type< VTK_INT >,
00080 TInt2Type< VTK_UNSIGNED_INT >,
00081 TInt2Type< VTK_LONG >,
00082 TInt2Type< VTK_UNSIGNED_LONG >,
00083 TInt2Type< VTK_FLOAT >,
00084 TInt2Type< VTK_DOUBLE > >::TResult TVTKBasicEnumList;
00085
00086
00087
00088 template< unsigned int type_enum >
00089 struct TEnum2VTKBasicType
00090 {
00091 typedef typename TTypeAt< TVTKBasicTypeList, TIndexOf< TVTKBasicEnumList, TInt2Type< type_enum > >::value >::TResult TResult;
00092 };
00093
00094
00095
00096 template< unsigned int type_enum >
00097 struct TEnum2VTKArrayType
00098 {
00099 typedef typename TTypeAt< TVTKArrayTypeList, TIndexOf< TVTKBasicEnumList, TInt2Type< type_enum > >::value >::TResult TResult;
00100 };
00101
00102
00103
00104 template< class T >
00105 struct TVTKBasicType2Enum
00106 {
00107 typedef typename TTypeAt< TVTKBasicEnumList, TIndexOf< TVTKBasicTypeList, T >::value >::TResult TResult;
00108 };
00109
00110
00111
00112 }
00113
00114
00115
00116 }
00117
00118 #endif