VTK
CellTypeToType.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 daxToVtk_CellTypeToType_h
18 #define daxToVtk_CellTypeToType_h
19 #include <dax/CellTraits.h>
20 
21 namespace daxToVtk
22 {
23 template<typename T> struct CellTypeToType;
24 template<> struct CellTypeToType<dax::CellTagLine>
25 {
27  enum {NUM_POINTS=dax::CellTraits<dax::CellTagLine>::NUM_VERTICES};
29 };
30 
31 template<> struct CellTypeToType<dax::CellTagHexahedron>
32 {
34  enum {NUM_POINTS=dax::CellTraits<dax::CellTagHexahedron>::NUM_VERTICES};
36 };
37 
38 template<> struct CellTypeToType<dax::CellTagQuadrilateral>
39 {
41  enum {NUM_POINTS=dax::CellTraits<dax::CellTagQuadrilateral>::NUM_VERTICES};
43 };
44 
45 template<> struct CellTypeToType<dax::CellTagTetrahedron>
46 {
48  enum {NUM_POINTS=dax::CellTraits<dax::CellTagTetrahedron>::NUM_VERTICES};
50 };
51 
52 template<> struct CellTypeToType<dax::CellTagTriangle>
53 {
55  enum {NUM_POINTS=dax::CellTraits<dax::CellTagTriangle>::NUM_VERTICES};
57 };
58 
59 template<> struct CellTypeToType<dax::CellTagVoxel>
60 {
62  enum {NUM_POINTS=dax::CellTraits<dax::CellTagVoxel>::NUM_VERTICES};
64 };
65 
66 template<> struct CellTypeToType<dax::CellTagVertex>
67 {
69  enum {NUM_POINTS=dax::CellTraits<dax::CellTagVertex>::NUM_VERTICES};
71 };
72 
73 template<> struct CellTypeToType<dax::CellTagWedge>
74 {
76  enum {NUM_POINTS=dax::CellTraits<dax::CellTagWedge>::NUM_VERTICES};
78 };
79 
80 }
81 #endif
a cell that represents a 3D point
Definition: vtkVertex.h:36
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:41
VTKCellType
Definition: vtkCellType.h:43
Definition: Containers.h:51
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:47
cell represents a 1D line
Definition: vtkLine.h:35
a cell that represents a 3D orthogonal parallelepiped
Definition: vtkVoxel.h:44
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:47
a cell that represents a triangle
Definition: vtkTriangle.h:41
a 3D cell that represents a linear wedge
Definition: vtkWedge.h:49