OGS
MeshPropertyDataType.h File Reference

Detailed Description

Enum for all propertyVector data types and XDMF ParentDataTypes.

Author
Tobias Meisel
Date
2020-12-15

Definition in file MeshPropertyDataType.h.

#include <string>
Include dependency graph for MeshPropertyDataType.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  MeshPropertyDataType {
  unknown = 0 , float64 , float32 , int32 ,
  int64 , uint32 , uint64 , int8 ,
  uint8 , char_native , uchar , enum_length
}
 
enum class  ParentDataType {
  MIXED = 0 , POLYVERTEX = 1 , POLYLINE = 2 , TRIANGLE = 4 ,
  QUADRILATERAL = 5 , TETRAHEDRON = 6 , PYRAMID = 7 , WEDGE = 8 ,
  HEXAHEDRON = 9 , EDGE_3 = 34 , QUADRILATERAL_9 = 35 , TRIANGLE_6 = 36 ,
  QUADRILATERAL_8 = 37 , TETRAHEDRON_10 = 38 , PYRAMID_13 = 39 , WEDGE_15 = 40 ,
  WEDGE_18 = 41 , HEXAHEDRON_20 = 48 , HEXAHEDRON_27 = 50
}
 

Functions

std::string ParentDataType2String (ParentDataType p)
 

Enumeration Type Documentation

◆ MeshPropertyDataType

enum class MeshPropertyDataType
strong
Enumerator
unknown 
float64 
float32 
int32 
int64 
uint32 
uint64 
int8 
uint8 
char_native 
uchar 
enum_length 

Definition at line 18 of file MeshPropertyDataType.h.

◆ ParentDataType

enum class ParentDataType
strong
Enumerator
MIXED 
POLYVERTEX 
POLYLINE 
TRIANGLE 
QUADRILATERAL 
TETRAHEDRON 
PYRAMID 
WEDGE 
HEXAHEDRON 
EDGE_3 
QUADRILATERAL_9 
TRIANGLE_6 
QUADRILATERAL_8 
TETRAHEDRON_10 
PYRAMID_13 
WEDGE_15 
WEDGE_18 
HEXAHEDRON_20 
HEXAHEDRON_27 

Definition at line 37 of file MeshPropertyDataType.h.

38{
39 MIXED = 0,
40 POLYVERTEX = 1,
41 POLYLINE = 2,
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};

Function Documentation

◆ ParentDataType2String()

std::string ParentDataType2String ( ParentDataType p)

Definition at line 14 of file MeshPropertyDataType.cpp.

15{
16 // not used in OGS ParentDataType::POLYGON, ParentDataType::POLYHEDRON,
17 // ParentDataType::HEXAHEDRON_24
18 if (p == ParentDataType::MIXED)
19 {
20 return "Mixed";
21 }
22
24 {
25 return "Polyvertex";
26 }
28 {
29 return "Polyline";
30 }
32 {
33 return "Triangle";
34 }
36 {
37 return "Quadrilateral";
38 }
40 {
41 return "Tetrahedron";
42 }
44 {
45 return "Pyramid";
46 }
47 if (p == ParentDataType::WEDGE)
48 {
49 return "Wedge";
50 }
52 {
53 return "Hexahedron";
54 }
56 {
57 return "Edge_3";
58 }
60 {
61 return "Quadrilateral_9";
62 }
64 {
65 return "Triangle_6";
66 }
68 {
69 return "Quadrilateral_8";
70 }
72 {
73 return "Tetrahedron_10";
74 }
76 {
77 return "Pyramid_13";
78 }
80 {
81 return "Wedge_15";
82 }
84 {
85 return "Wedge_18";
86 }
88 {
89 return "Hexahedron_20";
90 }
92 {
93 return "Hexahedron_27";
94 }
95 return "Mixed";
96}

References EDGE_3, HEXAHEDRON, HEXAHEDRON_20, HEXAHEDRON_27, MIXED, POLYLINE, POLYVERTEX, PYRAMID, PYRAMID_13, QUADRILATERAL, QUADRILATERAL_8, QUADRILATERAL_9, TETRAHEDRON, TETRAHEDRON_10, TRIANGLE, TRIANGLE_6, WEDGE, WEDGE_15, and WEDGE_18.

Referenced by MeshLib::IO::write_xdmf().