VTK
CellTypeAndDataType.h
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // Copyright (c) Kitware, Inc.
4 // All rights reserved.
5 // See LICENSE.txt for details.
6 //
7 // This software is distributed WITHOUT ANY WARRANTY; without even
8 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 // PURPOSE. See the above copyright notice for more information.
10 //
11 // Copyright 2012 Sandia Corporation.
12 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
13 // the U.S. Government retains certain rights in this software.
14 //
15 //=============================================================================
16 
17 #ifndef vtkToDax_CellTypeAndDataType_h
18 #define vtkToDax_CellTypeAndDataType_h
19 
20 #include "vtkType.h"
21 #include "vtkCellType.h"
22 
23 
24 namespace vtkToDax
25 {
26 //By default we list any combination as being invalid
27 template<int DataSetType, int CellType>
29 {
30  enum{Valid=0};
31 };
32 
33 //we than specialize all the valid combinations of dataset and cell types
34 //that Dax currently supports
35 template<> struct CellTypeAndDataType<VTK_IMAGE_DATA,VTK_VOXEL>{enum{Valid=1};};
36 template<> struct CellTypeAndDataType<VTK_UNIFORM_GRID,VTK_VOXEL>{enum{Valid=1};};
37 
44 
46 }
47 
48 
49 #endif // vtkToDax_CellTypeAndDataType_h
#define VTK_IMAGE_DATA
Definition: vtkType.h:93
#define VTK_UNIFORM_GRID
Definition: vtkType.h:97
#define VTK_STRUCTURED_GRID
Definition: vtkType.h:89
#define VTK_UNSTRUCTURED_GRID
Definition: vtkType.h:91