Loading [MathJax]/extensions/tex2jax.js
Tatooine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
p
r
s
t
u
v
w
Enumerations
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
b
f
h
i
l
p
s
t
u
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
Related Functions
b
c
d
i
o
r
s
Files
File List
File Members
All
_
d
o
s
t
Functions
d
o
s
t
Variables
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Concepts
geometry
include
tatooine
vtk
cell_type.h
Go to the documentation of this file.
1
#ifndef TATOOINE_VTK_CELL_TYPE_H
2
#define TATOOINE_VTK_CELL_TYPE_H
3
//==============================================================================
4
#include <string>
5
//==============================================================================
6
namespace
tatooine::vtk
{
7
//==============================================================================
8
enum class
cell_type
: std::uint8_t {
9
vertex
= 1,
10
poly_vertex
= 2,
11
line
= 3,
12
poly_line
= 4,
13
triangle
= 5,
14
triangle_strip
= 6,
15
polygon
= 7,
16
pixel
= 8,
17
quad
= 9,
18
tetra
= 10,
19
voxel
= 11,
20
hexahedron
= 12,
21
wedge
= 13,
22
pyramid
= 14,
23
unknown_cell_type
= 0,
24
};
25
//-----------------------------------------------------------------------------
26
constexpr
auto
to_string_view
(
cell_type
const
ct) -> std::string_view {
27
switch
(ct) {
28
case
cell_type::vertex
:
29
return
"VERTEX"
;
30
case
cell_type::poly_vertex
:
31
return
"POLY_VERTEX"
;
32
case
cell_type::line
:
33
return
"LINE"
;
34
case
cell_type::poly_line
:
35
return
"POLY_LINE"
;
36
case
cell_type::triangle
:
37
return
"TRIANGLE"
;
38
case
cell_type::triangle_strip
:
39
return
"TRIANGLE_STRIP"
;
40
case
cell_type::polygon
:
41
return
"POLYGON"
;
42
case
cell_type::pixel
:
43
return
"PIXEL"
;
44
case
cell_type::quad
:
45
return
"QUAD"
;
46
case
cell_type::tetra
:
47
return
"TETRA"
;
48
case
cell_type::voxel
:
49
return
"VOXEL"
;
50
case
cell_type::hexahedron
:
51
return
"HEXAHEDRON"
;
52
case
cell_type::wedge
:
53
return
"WEDGE"
;
54
case
cell_type::pyramid
:
55
return
"PYRAMID"
;
56
default
:
57
case
cell_type::unknown_cell_type
:
58
return
"UNKNOWN"
;
59
}
60
}
61
//-----------------------------------------------------------------------------
62
auto
parse_cell_type
(std::string
const
&) ->
cell_type
;
63
//==============================================================================
64
}
// namespace tatooine::vtk
65
//==============================================================================
66
#endif
tatooine::vtk
Definition:
cell_type.h:6
tatooine::vtk::parse_cell_type
auto parse_cell_type(std::string const &) -> cell_type
tatooine::vtk::to_string_view
constexpr auto to_string_view(cell_type const ct) -> std::string_view
Definition:
cell_type.h:26
tatooine::vtk::cell_type
cell_type
Definition:
cell_type.h:8
tatooine::vtk::cell_type::triangle_strip
@ triangle_strip
tatooine::vtk::cell_type::vertex
@ vertex
tatooine::vtk::cell_type::hexahedron
@ hexahedron
tatooine::vtk::cell_type::pyramid
@ pyramid
tatooine::vtk::cell_type::poly_line
@ poly_line
tatooine::vtk::cell_type::line
@ line
tatooine::vtk::cell_type::wedge
@ wedge
tatooine::vtk::cell_type::quad
@ quad
tatooine::vtk::cell_type::poly_vertex
@ poly_vertex
tatooine::vtk::cell_type::voxel
@ voxel
tatooine::vtk::cell_type::pixel
@ pixel
tatooine::vtk::cell_type::unknown_cell_type
@ unknown_cell_type
tatooine::vtk::cell_type::triangle
@ triangle
tatooine::vtk::cell_type::polygon
@ polygon
tatooine::vtk::cell_type::tetra
@ tetra
tatooine::line
Definition:
line.h:35
Generated by
1.9.5