VTK  9.1.0
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
82typedef enum
83{
84 // Linear cells
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
VTKCellType
Definition: vtkCellType.h:83
@ VTK_VOXEL
Definition: vtkCellType.h:96
@ VTK_QUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:109
@ VTK_PARAMETRIC_SURFACE
Definition: vtkCellType.h:132
@ VTK_HIGHER_ORDER_TETRAHEDRON
Definition: vtkCellType.h:143
@ VTK_TRIANGLE_STRIP
Definition: vtkCellType.h:91
@ VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:118
@ VTK_NUMBER_OF_CELL_TYPES
Definition: vtkCellType.h:166
@ VTK_LAGRANGE_CURVE
Definition: vtkCellType.h:149
@ VTK_HIGHER_ORDER_QUAD
Definition: vtkCellType.h:141
@ VTK_PYRAMID
Definition: vtkCellType.h:99
@ VTK_PIXEL
Definition: vtkCellType.h:93
@ VTK_QUADRATIC_WEDGE
Definition: vtkCellType.h:110
@ VTK_BEZIER_WEDGE
Definition: vtkCellType.h:163
@ VTK_BIQUADRATIC_QUAD
Definition: vtkCellType.h:112
@ VTK_HIGHER_ORDER_WEDGE
Definition: vtkCellType.h:144
@ VTK_LAGRANGE_QUADRILATERAL
Definition: vtkCellType.h:151
@ VTK_POLY_LINE
Definition: vtkCellType.h:89
@ VTK_TRIQUADRATIC_PYRAMID
Definition: vtkCellType.h:114
@ VTK_TRIANGLE
Definition: vtkCellType.h:90
@ VTK_BEZIER_TRIANGLE
Definition: vtkCellType.h:159
@ VTK_POLYGON
Definition: vtkCellType.h:92
@ VTK_EMPTY_CELL
Definition: vtkCellType.h:85
@ VTK_QUADRATIC_PYRAMID
Definition: vtkCellType.h:111
@ VTK_POLYHEDRON
Definition: vtkCellType.h:128
@ VTK_TRIQUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:113
@ VTK_TETRA
Definition: vtkCellType.h:95
@ VTK_LINE
Definition: vtkCellType.h:88
@ VTK_CONVEX_POINT_SET
Definition: vtkCellType.h:125
@ VTK_BEZIER_HEXAHEDRON
Definition: vtkCellType.h:162
@ VTK_PARAMETRIC_TRI_SURFACE
Definition: vtkCellType.h:133
@ VTK_LAGRANGE_WEDGE
Definition: vtkCellType.h:154
@ VTK_LAGRANGE_HEXAHEDRON
Definition: vtkCellType.h:153
@ VTK_PENTAGONAL_PRISM
Definition: vtkCellType.h:100
@ VTK_HIGHER_ORDER_TRIANGLE
Definition: vtkCellType.h:140
@ VTK_QUADRATIC_QUAD
Definition: vtkCellType.h:106
@ VTK_WEDGE
Definition: vtkCellType.h:98
@ VTK_PARAMETRIC_QUAD_SURFACE
Definition: vtkCellType.h:134
@ VTK_LAGRANGE_TETRAHEDRON
Definition: vtkCellType.h:152
@ VTK_PARAMETRIC_CURVE
Definition: vtkCellType.h:131
@ VTK_BEZIER_CURVE
Definition: vtkCellType.h:158
@ VTK_HIGHER_ORDER_PYRAMID
Definition: vtkCellType.h:145
@ VTK_HEXAGONAL_PRISM
Definition: vtkCellType.h:101
@ VTK_PARAMETRIC_HEX_REGION
Definition: vtkCellType.h:136
@ VTK_BEZIER_QUADRILATERAL
Definition: vtkCellType.h:160
@ VTK_QUADRATIC_LINEAR_WEDGE
Definition: vtkCellType.h:116
@ VTK_HEXAHEDRON
Definition: vtkCellType.h:97
@ VTK_CUBIC_LINE
Definition: vtkCellType.h:122
@ VTK_LAGRANGE_TRIANGLE
Definition: vtkCellType.h:150
@ VTK_HIGHER_ORDER_HEXAHEDRON
Definition: vtkCellType.h:146
@ VTK_QUADRATIC_POLYGON
Definition: vtkCellType.h:107
@ VTK_QUAD
Definition: vtkCellType.h:94
@ VTK_QUADRATIC_TRIANGLE
Definition: vtkCellType.h:105
@ VTK_PARAMETRIC_TETRA_REGION
Definition: vtkCellType.h:135
@ VTK_QUADRATIC_EDGE
Definition: vtkCellType.h:104
@ VTK_QUADRATIC_TETRA
Definition: vtkCellType.h:108
@ VTK_HIGHER_ORDER_EDGE
Definition: vtkCellType.h:139
@ VTK_LAGRANGE_PYRAMID
Definition: vtkCellType.h:155
@ VTK_BEZIER_TETRAHEDRON
Definition: vtkCellType.h:161
@ VTK_VERTEX
Definition: vtkCellType.h:86
@ VTK_POLY_VERTEX
Definition: vtkCellType.h:87
@ VTK_QUADRATIC_LINEAR_QUAD
Definition: vtkCellType.h:115
@ VTK_BEZIER_PYRAMID
Definition: vtkCellType.h:164
@ VTK_BIQUADRATIC_QUADRATIC_WEDGE
Definition: vtkCellType.h:117
@ VTK_HIGHER_ORDER_POLYGON
Definition: vtkCellType.h:142
@ VTK_BIQUADRATIC_TRIANGLE
Definition: vtkCellType.h:119