1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // VISU OBJECT : interactive object for VISU entities implementation
23 // File : VISU_VTKTypeList.hxx
24 // Author : Oleg UVAROV
27 #ifndef VISU_VTKTypeList_HeaderFile
28 #define VISU_VTKTypeList_HeaderFile
30 #include "VISU_TypeList.hxx"
32 #include <vtkCharArray.h>
33 #include <vtkUnsignedCharArray.h>
34 #include <vtkShortArray.h>
35 #include <vtkUnsignedShortArray.h>
36 #include <vtkIntArray.h>
37 #include <vtkUnsignedIntArray.h>
38 #include <vtkLongArray.h>
39 #include <vtkUnsignedLongArray.h>
40 #include <vtkFloatArray.h>
41 #include <vtkDoubleArray.h>
44 //----------------------------------------------------------------------------
47 //----------------------------------------------------------------------------
50 //----------------------------------------------------------------------------
51 typedef TSequence< char,
60 double >::TResult TVTKBasicTypeList;
63 //----------------------------------------------------------------------------
64 typedef TSequence< vtkCharArray,
67 vtkUnsignedShortArray,
73 vtkDoubleArray >::TResult TVTKArrayTypeList;
76 //----------------------------------------------------------------------------
77 typedef TSequence< TInt2Type< VTK_CHAR >,
78 TInt2Type< VTK_UNSIGNED_CHAR >,
79 TInt2Type< VTK_SHORT >,
80 TInt2Type< VTK_UNSIGNED_SHORT >,
82 TInt2Type< VTK_UNSIGNED_INT >,
83 TInt2Type< VTK_LONG >,
84 TInt2Type< VTK_UNSIGNED_LONG >,
85 TInt2Type< VTK_FLOAT >,
86 TInt2Type< VTK_DOUBLE > >::TResult TVTKBasicEnumList;
89 //----------------------------------------------------------------------------
90 template< unsigned int type_enum >
91 struct TEnum2VTKBasicType
93 typedef typename TTypeAt< TVTKBasicTypeList, TIndexOf< TVTKBasicEnumList, TInt2Type< type_enum > >::value >::TResult TResult;
97 //----------------------------------------------------------------------------
98 template< unsigned int type_enum >
99 struct TEnum2VTKArrayType
101 typedef typename TTypeAt< TVTKArrayTypeList, TIndexOf< TVTKBasicEnumList, TInt2Type< type_enum > >::value >::TResult TResult;
105 //----------------------------------------------------------------------------
107 struct TVTKBasicType2Enum
109 typedef typename TTypeAt< TVTKBasicEnumList, TIndexOf< TVTKBasicTypeList, T >::value >::TResult TResult;
113 //----------------------------------------------------------------------------
117 //----------------------------------------------------------------------------