VTK  9.0.20210920
vtkCellType.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCellType.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
65 #ifndef vtkCellType_h
66 #define vtkCellType_h
67 
68 // To add a new cell type, define a new integer type flag here, then
69 // create a subclass of vtkCell to implement the proper behavior. You
70 // may have to modify the following methods: vtkDataSet (and subclasses)
71 // GetCell() and vtkGenericCell::SetCellType(). Also, to do the job right,
72 // you'll also have to modify some filters (vtkGeometryFilter...) and
73 // regression tests (example scripts) to reflect the new cell addition.
74 // Also, make sure to update vtkCellTypesStrings in vtkCellTypes.cxx
75 // and the vtkCellTypes::IsLinear method in vtkCellTypes.h.
76 
77 // .SECTION Caveats
78 // An unstructured grid stores the types of its cells as a
79 // unsigned char array. Therefore, the maximum encoding number for a cell type
80 // is 255.
81 
82 typedef enum
83 {
84  // Linear cells
88  VTK_LINE = 3,
93  VTK_PIXEL = 8,
94  VTK_QUAD = 9,
95  VTK_TETRA = 10,
96  VTK_VOXEL = 11,
98  VTK_WEDGE = 13,
102 
103  // Quadratic, isoparametric cells
120 
121  // Cubic, isoparametric cell
123 
124  // Special class of cells formed by convex group of points
126 
127  // Polyhedron cell (consisting of polygonal faces)
129 
130  // Higher order cells in parametric form
137 
138  // Higher order cells
147 
148  // Arbitrary order Lagrange elements (formulated separated from generic higher order cells)
156 
157  // Arbitrary order Bezier elements (formulated separated from generic higher order cells)
165 
168 
169 #endif
170 // VTK-HeaderTest-Exclude: vtkCellType.h
VTK_BEZIER_TETRAHEDRON
@ VTK_BEZIER_TETRAHEDRON
Definition: vtkCellType.h:161
VTK_LAGRANGE_WEDGE
@ VTK_LAGRANGE_WEDGE
Definition: vtkCellType.h:154
VTK_QUADRATIC_QUAD
@ VTK_QUADRATIC_QUAD
Definition: vtkCellType.h:106
VTK_HIGHER_ORDER_TETRAHEDRON
@ VTK_HIGHER_ORDER_TETRAHEDRON
Definition: vtkCellType.h:143
VTK_VOXEL
@ VTK_VOXEL
Definition: vtkCellType.h:96
VTK_TRIANGLE_STRIP
@ VTK_TRIANGLE_STRIP
Definition: vtkCellType.h:91
VTK_POLYHEDRON
@ VTK_POLYHEDRON
Definition: vtkCellType.h:128
VTK_PARAMETRIC_TETRA_REGION
@ VTK_PARAMETRIC_TETRA_REGION
Definition: vtkCellType.h:135
VTK_BEZIER_CURVE
@ VTK_BEZIER_CURVE
Definition: vtkCellType.h:158
VTK_QUADRATIC_LINEAR_WEDGE
@ VTK_QUADRATIC_LINEAR_WEDGE
Definition: vtkCellType.h:116
VTK_LINE
@ VTK_LINE
Definition: vtkCellType.h:88
VTK_PIXEL
@ VTK_PIXEL
Definition: vtkCellType.h:93
VTK_BEZIER_QUADRILATERAL
@ VTK_BEZIER_QUADRILATERAL
Definition: vtkCellType.h:160
VTK_HIGHER_ORDER_QUAD
@ VTK_HIGHER_ORDER_QUAD
Definition: vtkCellType.h:141
VTK_LAGRANGE_HEXAHEDRON
@ VTK_LAGRANGE_HEXAHEDRON
Definition: vtkCellType.h:153
VTK_HIGHER_ORDER_TRIANGLE
@ VTK_HIGHER_ORDER_TRIANGLE
Definition: vtkCellType.h:140
VTK_LAGRANGE_TRIANGLE
@ VTK_LAGRANGE_TRIANGLE
Definition: vtkCellType.h:150
VTK_PYRAMID
@ VTK_PYRAMID
Definition: vtkCellType.h:99
VTK_QUADRATIC_TETRA
@ VTK_QUADRATIC_TETRA
Definition: vtkCellType.h:108
VTK_BEZIER_PYRAMID
@ VTK_BEZIER_PYRAMID
Definition: vtkCellType.h:164
VTK_LAGRANGE_CURVE
@ VTK_LAGRANGE_CURVE
Definition: vtkCellType.h:149
VTK_POLY_LINE
@ VTK_POLY_LINE
Definition: vtkCellType.h:89
VTK_QUADRATIC_PYRAMID
@ VTK_QUADRATIC_PYRAMID
Definition: vtkCellType.h:111
VTK_PARAMETRIC_HEX_REGION
@ VTK_PARAMETRIC_HEX_REGION
Definition: vtkCellType.h:136
VTK_QUAD
@ VTK_QUAD
Definition: vtkCellType.h:94
VTK_NUMBER_OF_CELL_TYPES
@ VTK_NUMBER_OF_CELL_TYPES
Definition: vtkCellType.h:166
VTK_QUADRATIC_LINEAR_QUAD
@ VTK_QUADRATIC_LINEAR_QUAD
Definition: vtkCellType.h:115
VTK_CONVEX_POINT_SET
@ VTK_CONVEX_POINT_SET
Definition: vtkCellType.h:125
VTK_BEZIER_WEDGE
@ VTK_BEZIER_WEDGE
Definition: vtkCellType.h:163
VTK_LAGRANGE_PYRAMID
@ VTK_LAGRANGE_PYRAMID
Definition: vtkCellType.h:155
VTK_EMPTY_CELL
@ VTK_EMPTY_CELL
Definition: vtkCellType.h:85
VTK_TRIQUADRATIC_HEXAHEDRON
@ VTK_TRIQUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:113
VTK_QUADRATIC_POLYGON
@ VTK_QUADRATIC_POLYGON
Definition: vtkCellType.h:107
VTK_PARAMETRIC_SURFACE
@ VTK_PARAMETRIC_SURFACE
Definition: vtkCellType.h:132
VTK_BIQUADRATIC_QUAD
@ VTK_BIQUADRATIC_QUAD
Definition: vtkCellType.h:112
VTK_POLY_VERTEX
@ VTK_POLY_VERTEX
Definition: vtkCellType.h:87
VTK_HEXAHEDRON
@ VTK_HEXAHEDRON
Definition: vtkCellType.h:97
VTK_TETRA
@ VTK_TETRA
Definition: vtkCellType.h:95
VTK_QUADRATIC_TRIANGLE
@ VTK_QUADRATIC_TRIANGLE
Definition: vtkCellType.h:105
VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON
@ VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:118
VTK_QUADRATIC_EDGE
@ VTK_QUADRATIC_EDGE
Definition: vtkCellType.h:104
VTK_HIGHER_ORDER_PYRAMID
@ VTK_HIGHER_ORDER_PYRAMID
Definition: vtkCellType.h:145
VTK_BEZIER_TRIANGLE
@ VTK_BEZIER_TRIANGLE
Definition: vtkCellType.h:159
VTK_PENTAGONAL_PRISM
@ VTK_PENTAGONAL_PRISM
Definition: vtkCellType.h:100
VTK_HIGHER_ORDER_WEDGE
@ VTK_HIGHER_ORDER_WEDGE
Definition: vtkCellType.h:144
VTK_QUADRATIC_WEDGE
@ VTK_QUADRATIC_WEDGE
Definition: vtkCellType.h:110
VTK_HIGHER_ORDER_POLYGON
@ VTK_HIGHER_ORDER_POLYGON
Definition: vtkCellType.h:142
VTK_LAGRANGE_TETRAHEDRON
@ VTK_LAGRANGE_TETRAHEDRON
Definition: vtkCellType.h:152
VTK_PARAMETRIC_TRI_SURFACE
@ VTK_PARAMETRIC_TRI_SURFACE
Definition: vtkCellType.h:133
VTK_CUBIC_LINE
@ VTK_CUBIC_LINE
Definition: vtkCellType.h:122
VTK_POLYGON
@ VTK_POLYGON
Definition: vtkCellType.h:92
VTK_PARAMETRIC_QUAD_SURFACE
@ VTK_PARAMETRIC_QUAD_SURFACE
Definition: vtkCellType.h:134
VTK_WEDGE
@ VTK_WEDGE
Definition: vtkCellType.h:98
VTK_QUADRATIC_HEXAHEDRON
@ VTK_QUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:109
VTK_TRIQUADRATIC_PYRAMID
@ VTK_TRIQUADRATIC_PYRAMID
Definition: vtkCellType.h:114
VTK_BIQUADRATIC_QUADRATIC_WEDGE
@ VTK_BIQUADRATIC_QUADRATIC_WEDGE
Definition: vtkCellType.h:117
VTKCellType
VTKCellType
Definition: vtkCellType.h:83
VTK_HIGHER_ORDER_EDGE
@ VTK_HIGHER_ORDER_EDGE
Definition: vtkCellType.h:139
VTK_VERTEX
@ VTK_VERTEX
Definition: vtkCellType.h:86
VTK_TRIANGLE
@ VTK_TRIANGLE
Definition: vtkCellType.h:90
VTK_HIGHER_ORDER_HEXAHEDRON
@ VTK_HIGHER_ORDER_HEXAHEDRON
Definition: vtkCellType.h:146
VTK_LAGRANGE_QUADRILATERAL
@ VTK_LAGRANGE_QUADRILATERAL
Definition: vtkCellType.h:151
VTK_PARAMETRIC_CURVE
@ VTK_PARAMETRIC_CURVE
Definition: vtkCellType.h:131
VTK_HEXAGONAL_PRISM
@ VTK_HEXAGONAL_PRISM
Definition: vtkCellType.h:101
VTK_BEZIER_HEXAHEDRON
@ VTK_BEZIER_HEXAHEDRON
Definition: vtkCellType.h:162
VTK_BIQUADRATIC_TRIANGLE
@ VTK_BIQUADRATIC_TRIANGLE
Definition: vtkCellType.h:119