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=========================================================================*/
35#ifndef vtkCellType_h
36#define vtkCellType_h
37
38// To add a new cell type, define a new integer type flag here, then
39// create a subclass of vtkCell to implement the proper behavior. You
40// may have to modify the following methods: vtkDataSet (and subclasses)
41// GetCell() and vtkGenericCell::SetCellType(). Also, to do the job right,
42// you'll also have to modify some filters (vtkGeometryFilter...) and
43// regression tests (example scripts) to reflect the new cell addition.
44// Also, make sure to update vtkCellTypesStrings in vtkCellTypes.cxx
45// and the vtkCellTypes::IsLinear method in vtkCellTypes.h.
46
47// .SECTION Caveats
48// An unstructured grid stores the types of its cells as a
49// unsigned char array. Therefore, the maximum encoding number for a cell type
50// is 255.
51
52typedef enum
53{
54 // Linear cells
72
73 // Quadratic, isoparametric cells
90
91 // Cubic, isoparametric cell
93
94 // Special class of cells formed by convex group of points
96
97 // Polyhedron cell (consisting of polygonal faces)
99
100 // Higher order cells in parametric form
107
108 // Higher order cells
117
118 // Arbitrary order Lagrange elements (formulated separated from generic higher order cells)
126
127 // Arbitrary order Bezier elements (formulated separated from generic higher order cells)
135
138
139#endif
140// VTK-HeaderTest-Exclude: vtkCellType.h
VTKCellType
Definition: vtkCellType.h:53
@ VTK_VOXEL
Definition: vtkCellType.h:66
@ VTK_QUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:79
@ VTK_PARAMETRIC_SURFACE
Definition: vtkCellType.h:102
@ VTK_HIGHER_ORDER_TETRAHEDRON
Definition: vtkCellType.h:113
@ VTK_TRIANGLE_STRIP
Definition: vtkCellType.h:61
@ VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:88
@ VTK_NUMBER_OF_CELL_TYPES
Definition: vtkCellType.h:136
@ VTK_LAGRANGE_CURVE
Definition: vtkCellType.h:119
@ VTK_HIGHER_ORDER_QUAD
Definition: vtkCellType.h:111
@ VTK_PYRAMID
Definition: vtkCellType.h:69
@ VTK_PIXEL
Definition: vtkCellType.h:63
@ VTK_QUADRATIC_WEDGE
Definition: vtkCellType.h:80
@ VTK_BEZIER_WEDGE
Definition: vtkCellType.h:133
@ VTK_BIQUADRATIC_QUAD
Definition: vtkCellType.h:82
@ VTK_HIGHER_ORDER_WEDGE
Definition: vtkCellType.h:114
@ VTK_LAGRANGE_QUADRILATERAL
Definition: vtkCellType.h:121
@ VTK_POLY_LINE
Definition: vtkCellType.h:59
@ VTK_TRIQUADRATIC_PYRAMID
Definition: vtkCellType.h:84
@ VTK_TRIANGLE
Definition: vtkCellType.h:60
@ VTK_BEZIER_TRIANGLE
Definition: vtkCellType.h:129
@ VTK_POLYGON
Definition: vtkCellType.h:62
@ VTK_EMPTY_CELL
Definition: vtkCellType.h:55
@ VTK_QUADRATIC_PYRAMID
Definition: vtkCellType.h:81
@ VTK_POLYHEDRON
Definition: vtkCellType.h:98
@ VTK_TRIQUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:83
@ VTK_TETRA
Definition: vtkCellType.h:65
@ VTK_LINE
Definition: vtkCellType.h:58
@ VTK_CONVEX_POINT_SET
Definition: vtkCellType.h:95
@ VTK_BEZIER_HEXAHEDRON
Definition: vtkCellType.h:132
@ VTK_PARAMETRIC_TRI_SURFACE
Definition: vtkCellType.h:103
@ VTK_LAGRANGE_WEDGE
Definition: vtkCellType.h:124
@ VTK_LAGRANGE_HEXAHEDRON
Definition: vtkCellType.h:123
@ VTK_PENTAGONAL_PRISM
Definition: vtkCellType.h:70
@ VTK_HIGHER_ORDER_TRIANGLE
Definition: vtkCellType.h:110
@ VTK_QUADRATIC_QUAD
Definition: vtkCellType.h:76
@ VTK_WEDGE
Definition: vtkCellType.h:68
@ VTK_PARAMETRIC_QUAD_SURFACE
Definition: vtkCellType.h:104
@ VTK_LAGRANGE_TETRAHEDRON
Definition: vtkCellType.h:122
@ VTK_PARAMETRIC_CURVE
Definition: vtkCellType.h:101
@ VTK_BEZIER_CURVE
Definition: vtkCellType.h:128
@ VTK_HIGHER_ORDER_PYRAMID
Definition: vtkCellType.h:115
@ VTK_HEXAGONAL_PRISM
Definition: vtkCellType.h:71
@ VTK_PARAMETRIC_HEX_REGION
Definition: vtkCellType.h:106
@ VTK_BEZIER_QUADRILATERAL
Definition: vtkCellType.h:130
@ VTK_QUADRATIC_LINEAR_WEDGE
Definition: vtkCellType.h:86
@ VTK_HEXAHEDRON
Definition: vtkCellType.h:67
@ VTK_CUBIC_LINE
Definition: vtkCellType.h:92
@ VTK_LAGRANGE_TRIANGLE
Definition: vtkCellType.h:120
@ VTK_HIGHER_ORDER_HEXAHEDRON
Definition: vtkCellType.h:116
@ VTK_QUADRATIC_POLYGON
Definition: vtkCellType.h:77
@ VTK_QUAD
Definition: vtkCellType.h:64
@ VTK_QUADRATIC_TRIANGLE
Definition: vtkCellType.h:75
@ VTK_PARAMETRIC_TETRA_REGION
Definition: vtkCellType.h:105
@ VTK_QUADRATIC_EDGE
Definition: vtkCellType.h:74
@ VTK_QUADRATIC_TETRA
Definition: vtkCellType.h:78
@ VTK_HIGHER_ORDER_EDGE
Definition: vtkCellType.h:109
@ VTK_LAGRANGE_PYRAMID
Definition: vtkCellType.h:125
@ VTK_BEZIER_TETRAHEDRON
Definition: vtkCellType.h:131
@ VTK_VERTEX
Definition: vtkCellType.h:56
@ VTK_POLY_VERTEX
Definition: vtkCellType.h:57
@ VTK_QUADRATIC_LINEAR_QUAD
Definition: vtkCellType.h:85
@ VTK_BEZIER_PYRAMID
Definition: vtkCellType.h:134
@ VTK_BIQUADRATIC_QUADRATIC_WEDGE
Definition: vtkCellType.h:87
@ VTK_HIGHER_ORDER_POLYGON
Definition: vtkCellType.h:112
@ VTK_BIQUADRATIC_TRIANGLE
Definition: vtkCellType.h:89