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
21namespace daxToVtk
22{
23template<typename T> struct CellTypeToType;
24template<> struct CellTypeToType<dax::CellTagLine>
25{
27 enum {NUM_POINTS=dax::CellTraits<dax::CellTagLine>::NUM_VERTICES};
29};
30
31template<> struct CellTypeToType<dax::CellTagHexahedron>
32{
34 enum {NUM_POINTS=dax::CellTraits<dax::CellTagHexahedron>::NUM_VERTICES};
36};
37
38template<> struct CellTypeToType<dax::CellTagQuadrilateral>
39{
41 enum {NUM_POINTS=dax::CellTraits<dax::CellTagQuadrilateral>::NUM_VERTICES};
43};
44
45template<> struct CellTypeToType<dax::CellTagTetrahedron>
46{
48 enum {NUM_POINTS=dax::CellTraits<dax::CellTagTetrahedron>::NUM_VERTICES};
50};
51
52template<> struct CellTypeToType<dax::CellTagTriangle>
53{
55 enum {NUM_POINTS=dax::CellTraits<dax::CellTagTriangle>::NUM_VERTICES};
57};
58
59template<> struct CellTypeToType<dax::CellTagVoxel>
60{
62 enum {NUM_POINTS=dax::CellTraits<dax::CellTagVoxel>::NUM_VERTICES};
64};
65
66template<> struct CellTypeToType<dax::CellTagVertex>
67{
69 enum {NUM_POINTS=dax::CellTraits<dax::CellTagVertex>::NUM_VERTICES};
71};
72
73template<> 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 linear 3D hexahedron
Definition: vtkHexahedron.h:48
cell represents a 1D line
Definition: vtkLine.h:36
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:42
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:48
a cell that represents a triangle
Definition: vtkTriangle.h:42
a cell that represents a 3D point
Definition: vtkVertex.h:37
a cell that represents a 3D orthogonal parallelepiped
Definition: vtkVoxel.h:45
a 3D cell that represents a linear wedge
Definition: vtkWedge.h:50
Definition: Containers.h:51
VTKCellType
Definition: vtkCellType.h:43
@ VTK_VOXEL
Definition: vtkCellType.h:56
@ VTK_TRIANGLE
Definition: vtkCellType.h:50
@ VTK_TETRA
Definition: vtkCellType.h:55
@ VTK_LINE
Definition: vtkCellType.h:48
@ VTK_WEDGE
Definition: vtkCellType.h:58
@ VTK_HEXAHEDRON
Definition: vtkCellType.h:57
@ VTK_QUAD
Definition: vtkCellType.h:54
@ VTK_VERTEX
Definition: vtkCellType.h:46