Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
ed614b81
Commit
ed614b81
authored
6 months ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[MeL/IO/XDMF] Values from website-docu to enum ParentDataType
parent
ab809570
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MeshLib/IO/XDMF/MeshPropertyDataType.cpp
+96
-0
96 additions, 0 deletions
MeshLib/IO/XDMF/MeshPropertyDataType.cpp
MeshLib/IO/XDMF/MeshPropertyDataType.h
+29
-6
29 additions, 6 deletions
MeshLib/IO/XDMF/MeshPropertyDataType.h
with
125 additions
and
6 deletions
MeshLib/IO/XDMF/MeshPropertyDataType.cpp
0 → 100644
+
96
−
0
View file @
ed614b81
/**
* \file
* \brief Enum ParentDataType to string translations
* \copyright
* Copyright (c) 2012-2024, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include
"MeshPropertyDataType.h"
// See https://www.xdmf.org/index.php/XDMF_Model_and_Format#Topology (Arbitrary)
std
::
string
ParentDataType2String
(
ParentDataType
p
)
{
// not used in OGS ParentDataType::POLYGON, ParentDataType::POLYHEDRON,
// ParentDataType::HEXAHEDRON_24
if
(
p
==
ParentDataType
::
MIXED
)
{
return
"Mixed"
;
}
if
(
p
==
ParentDataType
::
POLYVERTEX
)
{
return
"Polyvertex"
;
}
if
(
p
==
ParentDataType
::
POLYLINE
)
{
return
"Polyline"
;
}
if
(
p
==
ParentDataType
::
TRIANGLE
)
{
return
"Triangle"
;
}
if
(
p
==
ParentDataType
::
QUADRILATERAL
)
{
return
"Quadrilateral"
;
}
if
(
p
==
ParentDataType
::
TETRAHEDRON
)
{
return
"Tetrahedron"
;
}
if
(
p
==
ParentDataType
::
PYRAMID
)
{
return
"Pyramid"
;
}
if
(
p
==
ParentDataType
::
WEDGE
)
{
return
"Wedge"
;
}
if
(
p
==
ParentDataType
::
HEXAHEDRON
)
{
return
"Hexahedron"
;
}
if
(
p
==
ParentDataType
::
EDGE_3
)
{
return
"Edge_3"
;
}
if
(
p
==
ParentDataType
::
QUADRILATERAL_9
)
{
return
"Quadrilateral_9"
;
}
if
(
p
==
ParentDataType
::
TRIANGLE_6
)
{
return
"Triangle_6"
;
}
if
(
p
==
ParentDataType
::
QUADRILATERAL_8
)
{
return
"Quadrilateral_8"
;
}
if
(
p
==
ParentDataType
::
TETRAHEDRON_10
)
{
return
"Tetrahedron_10"
;
}
if
(
p
==
ParentDataType
::
PYRAMID_13
)
{
return
"Pyramid_13"
;
}
if
(
p
==
ParentDataType
::
WEDGE_15
)
{
return
"Wedge_15"
;
}
if
(
p
==
ParentDataType
::
WEDGE_18
)
{
return
"Wedge_18"
;
}
if
(
p
==
ParentDataType
::
HEXAHEDRON_20
)
{
return
"Hexahedron_20"
;
}
if
(
p
==
ParentDataType
::
HEXAHEDRON_27
)
{
return
"Hexahedron_27"
;
}
return
"Mixed"
;
}
This diff is collapsed.
Click to expand it.
MeshLib/IO/XDMF/MeshPropertyDataType.h
+
29
−
6
View file @
ed614b81
...
...
@@ -2,7 +2,7 @@
* \file
* \author Tobias Meisel
* \date 2020-12-15
* \brief Enum for all propertyVector data types
* \brief Enum for all propertyVector data types
and XDMF ParentDataTypes
* \copyright
* Copyright (c) 2012-2024, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
...
...
@@ -12,6 +12,8 @@
#pragma once
#include
<string>
// TODO (tm) If used on several other places move definition of propertyVector
enum
class
MeshPropertyDataType
{
...
...
@@ -29,12 +31,33 @@ enum class MeshPropertyDataType
enum_length
};
// See https://www.xdmf.org/index.php/XDMF_Model_and_Format - only relevant of
// See https://www.xdmf.org/index.php/XDMF_Model_and_Format - only relevant if
// TopologyType(s) added, structure is open to be extended with GridType(s)
// and ItemType(s).
enum
class
ParentDataType
{
Polyvertex
=
0
,
Mixed
,
};
\ No newline at end of file
MIXED
=
0
,
POLYVERTEX
=
1
,
POLYLINE
=
2
,
// POLYGON = 3, // not used in OGS
TRIANGLE
=
4
,
QUADRILATERAL
=
5
,
TETRAHEDRON
=
6
,
PYRAMID
=
7
,
WEDGE
=
8
,
HEXAHEDRON
=
9
,
// POLYHEDRON = 16, // not used in OGS
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_24 = 49, // not used in OGS
HEXAHEDRON_27
=
50
};
std
::
string
ParentDataType2String
(
ParentDataType
p
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment