OGS
MeshPropertyDataType.h
Go to the documentation of this file.
1
12
13
#pragma once
14
15
#include <string>
16
17
// TODO (tm) If used on several other places move definition of propertyVector
18
enum class
MeshPropertyDataType
19
{
20
unknown
= 0,
21
float64
,
22
float32
,
23
int32
,
24
int64
,
25
uint32
,
26
uint64
,
27
int8
,
28
uint8
,
29
char_native
,
30
uchar
,
31
enum_length
32
};
33
34
// See https://www.xdmf.org/index.php/XDMF_Model_and_Format - only relevant if
35
// TopologyType(s) added, structure is open to be extended with GridType(s)
36
// and ItemType(s).
37
enum class
ParentDataType
38
{
39
MIXED
= 0,
40
POLYVERTEX
= 1,
41
POLYLINE
= 2,
// OGS polylines are supposed to contain exactly 2 nodes
42
// POLYGON = 3, // not used in OGS
43
TRIANGLE
= 4,
44
QUADRILATERAL
= 5,
45
TETRAHEDRON
= 6,
46
PYRAMID
= 7,
47
WEDGE
= 8,
48
HEXAHEDRON
= 9,
49
// POLYHEDRON = 16, // not used in OGS
50
EDGE_3
= 34,
51
QUADRILATERAL_9
= 35,
52
TRIANGLE_6
= 36,
53
QUADRILATERAL_8
= 37,
54
TETRAHEDRON_10
= 38,
55
PYRAMID_13
= 39,
56
WEDGE_15
= 40,
57
WEDGE_18
= 41,
58
HEXAHEDRON_20
= 48,
59
// HEXAHEDRON_24 = 49, // not used in OGS
60
HEXAHEDRON_27
= 50
61
};
62
63
std::pair<std::string, std::size_t>
ParentDataType2String
(
ParentDataType
p);
ParentDataType
ParentDataType
Definition
MeshPropertyDataType.h:38
ParentDataType::TETRAHEDRON_10
@ TETRAHEDRON_10
Definition
MeshPropertyDataType.h:54
ParentDataType::PYRAMID_13
@ PYRAMID_13
Definition
MeshPropertyDataType.h:55
ParentDataType::WEDGE_15
@ WEDGE_15
Definition
MeshPropertyDataType.h:56
ParentDataType::TRIANGLE_6
@ TRIANGLE_6
Definition
MeshPropertyDataType.h:52
ParentDataType::QUADRILATERAL_9
@ QUADRILATERAL_9
Definition
MeshPropertyDataType.h:51
ParentDataType::WEDGE
@ WEDGE
Definition
MeshPropertyDataType.h:47
ParentDataType::MIXED
@ MIXED
Definition
MeshPropertyDataType.h:39
ParentDataType::HEXAHEDRON_27
@ HEXAHEDRON_27
Definition
MeshPropertyDataType.h:60
ParentDataType::EDGE_3
@ EDGE_3
Definition
MeshPropertyDataType.h:50
ParentDataType::HEXAHEDRON
@ HEXAHEDRON
Definition
MeshPropertyDataType.h:48
ParentDataType::HEXAHEDRON_20
@ HEXAHEDRON_20
Definition
MeshPropertyDataType.h:58
ParentDataType::TETRAHEDRON
@ TETRAHEDRON
Definition
MeshPropertyDataType.h:45
ParentDataType::TRIANGLE
@ TRIANGLE
Definition
MeshPropertyDataType.h:43
ParentDataType::QUADRILATERAL
@ QUADRILATERAL
Definition
MeshPropertyDataType.h:44
ParentDataType::PYRAMID
@ PYRAMID
Definition
MeshPropertyDataType.h:46
ParentDataType::POLYVERTEX
@ POLYVERTEX
Definition
MeshPropertyDataType.h:40
ParentDataType::POLYLINE
@ POLYLINE
Definition
MeshPropertyDataType.h:41
ParentDataType::WEDGE_18
@ WEDGE_18
Definition
MeshPropertyDataType.h:57
ParentDataType::QUADRILATERAL_8
@ QUADRILATERAL_8
Definition
MeshPropertyDataType.h:53
MeshPropertyDataType
MeshPropertyDataType
Definition
MeshPropertyDataType.h:19
MeshPropertyDataType::int32
@ int32
Definition
MeshPropertyDataType.h:23
MeshPropertyDataType::int8
@ int8
Definition
MeshPropertyDataType.h:27
MeshPropertyDataType::uint64
@ uint64
Definition
MeshPropertyDataType.h:26
MeshPropertyDataType::uint32
@ uint32
Definition
MeshPropertyDataType.h:25
MeshPropertyDataType::uint8
@ uint8
Definition
MeshPropertyDataType.h:28
MeshPropertyDataType::enum_length
@ enum_length
Definition
MeshPropertyDataType.h:31
MeshPropertyDataType::uchar
@ uchar
Definition
MeshPropertyDataType.h:30
MeshPropertyDataType::unknown
@ unknown
Definition
MeshPropertyDataType.h:20
MeshPropertyDataType::char_native
@ char_native
Definition
MeshPropertyDataType.h:29
MeshPropertyDataType::float32
@ float32
Definition
MeshPropertyDataType.h:22
MeshPropertyDataType::float64
@ float64
Definition
MeshPropertyDataType.h:21
MeshPropertyDataType::int64
@ int64
Definition
MeshPropertyDataType.h:24
ParentDataType2String
std::pair< std::string, std::size_t > ParentDataType2String(ParentDataType p)
Definition
MeshPropertyDataType.cpp:14
MeshLib
IO
XDMF
MeshPropertyDataType.h
Generated by
1.14.0