VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
demarle
Builds
VTK
release
Utilities
Doxygen
dox
Accelerators
Dax
vtkToDax
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>
28
struct
CellTypeAndDataType
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
38
template
<>
struct
CellTypeAndDataType
<
VTK_UNSTRUCTURED_GRID
,
VTK_LINE
>{
enum
{
Valid
=1};};
39
template
<>
struct
CellTypeAndDataType
<
VTK_UNSTRUCTURED_GRID
,
VTK_HEXAHEDRON
>{
enum
{
Valid
=1};};
40
template
<>
struct
CellTypeAndDataType
<
VTK_UNSTRUCTURED_GRID
,
VTK_QUAD
>{
enum
{
Valid
=1};};
41
template
<>
struct
CellTypeAndDataType
<
VTK_UNSTRUCTURED_GRID
,
VTK_TETRA
>{
enum
{
Valid
=1};};
42
template
<>
struct
CellTypeAndDataType
<
VTK_UNSTRUCTURED_GRID
,
VTK_TRIANGLE
>{
enum
{
Valid
=1};};
43
template
<>
struct
CellTypeAndDataType
<
VTK_UNSTRUCTURED_GRID
,
VTK_WEDGE
>{
enum
{
Valid
=1};};
44
45
template
<>
struct
CellTypeAndDataType
<
VTK_STRUCTURED_GRID
,
VTK_HEXAHEDRON
>{
enum
{
Valid
=1};};
46
}
47
48
49
#endif // vtkToDax_CellTypeAndDataType_h
VTK_IMAGE_DATA
#define VTK_IMAGE_DATA
Definition:
vtkType.h:93
vtkToDax::CellTypeAndDataType
Definition:
CellTypeAndDataType.h:28
VTK_WEDGE
Definition:
vtkCellType.h:58
vtkToDax::CellTypeAndDataType::Valid
Definition:
CellTypeAndDataType.h:30
VTK_VOXEL
Definition:
vtkCellType.h:56
VTK_TETRA
Definition:
vtkCellType.h:55
VTK_UNIFORM_GRID
#define VTK_UNIFORM_GRID
Definition:
vtkType.h:97
vtkCellType.h
VTK_LINE
Definition:
vtkCellType.h:48
VTK_QUAD
Definition:
vtkCellType.h:54
vtkToDax
Definition:
Allocators.h:35
VTK_HEXAHEDRON
Definition:
vtkCellType.h:57
vtkType.h
VTK_STRUCTURED_GRID
#define VTK_STRUCTURED_GRID
Definition:
vtkType.h:89
VTK_UNSTRUCTURED_GRID
#define VTK_UNSTRUCTURED_GRID
Definition:
vtkType.h:91
VTK_TRIANGLE
Definition:
vtkCellType.h:50
Generated by
1.8.9.1