1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // VISU OBJECT : interactive object for VISU entities implementation
21 // File : VISU_VTKTypeList.hxx
22 // Author : Oleg UVAROV
25 #ifndef VISU_VTKTypeList_HeaderFile
26 #define VISU_VTKTypeList_HeaderFile
28 #include "VISU_TypeList.hxx"
30 #include <vtkCharArray.h>
31 #include <vtkUnsignedCharArray.h>
32 #include <vtkShortArray.h>
33 #include <vtkUnsignedShortArray.h>
34 #include <vtkIntArray.h>
35 #include <vtkUnsignedIntArray.h>
36 #include <vtkLongArray.h>
37 #include <vtkUnsignedLongArray.h>
38 #include <vtkFloatArray.h>
39 #include <vtkDoubleArray.h>
42 //----------------------------------------------------------------------------
45 //----------------------------------------------------------------------------
48 //----------------------------------------------------------------------------
49 typedef TSequence< char,
58 double >::TResult TVTKBasicTypeList;
61 //----------------------------------------------------------------------------
62 typedef TSequence< vtkCharArray,
65 vtkUnsignedShortArray,
71 vtkDoubleArray >::TResult TVTKArrayTypeList;
74 //----------------------------------------------------------------------------
75 typedef TSequence< TInt2Type< VTK_CHAR >,
76 TInt2Type< VTK_UNSIGNED_CHAR >,
77 TInt2Type< VTK_SHORT >,
78 TInt2Type< VTK_UNSIGNED_SHORT >,
80 TInt2Type< VTK_UNSIGNED_INT >,
81 TInt2Type< VTK_LONG >,
82 TInt2Type< VTK_UNSIGNED_LONG >,
83 TInt2Type< VTK_FLOAT >,
84 TInt2Type< VTK_DOUBLE > >::TResult TVTKBasicEnumList;
87 //----------------------------------------------------------------------------
88 template< unsigned int type_enum >
89 struct TEnum2VTKBasicType
91 typedef typename TTypeAt< TVTKBasicTypeList, TIndexOf< TVTKBasicEnumList, TInt2Type< type_enum > >::value >::TResult TResult;
95 //----------------------------------------------------------------------------
96 template< unsigned int type_enum >
97 struct TEnum2VTKArrayType
99 typedef typename TTypeAt< TVTKArrayTypeList, TIndexOf< TVTKBasicEnumList, TInt2Type< type_enum > >::value >::TResult TResult;
103 //----------------------------------------------------------------------------
105 struct TVTKBasicType2Enum
107 typedef typename TTypeAt< TVTKBasicEnumList, TIndexOf< TVTKBasicTypeList, T >::value >::TResult TResult;
111 //----------------------------------------------------------------------------
115 //----------------------------------------------------------------------------