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