OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PropertiesVisUnstructuredScalar.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <map>
4
5class _declspec(dllexport) PropertiesVisUnstructuredScalar
6{
7public:
8 enum class VisualizationType
9 {
10 Isosurface, Points, Contour2D, UNKNOWN
11 };
12
13 const std::string GetNameVisType(void) { return nameVisType; }
14 const std::string GetNameMaxPoints(void) { return nameMaxPoints; }
15 const std::string GetNamePointScale(void) { return namePointScale; }
16 const std::string GetNameNumberIsosurfaces(void) { return nameNumberIsosurfaces; }
17 const std::string GetNameShow2DMesh(void) { return nameShow2dMesh; }
18 const std::string GetName2DMeshColor(void) { return name2dMeshColor; }
19 const std::string GetNameShow2DIsolines(void) { return nameShow2dIsolines; }
20 const std::string GetName2DIsolineColor(void) { return name2dIsolineColor; }
21
22 const std::string GetValueIsosurface(void) { return valueIsosurface; }
23 const std::string GetValuePoints(void) { return valuePoints; }
24 const std::string GetValueContour2D(void) { return valueContour2D; }
25
26 const VisualizationType GetVisualizationType(const std::string type) const
27 {
28 VisualizationType returnVal;
29 visualizationTypeMapping.find(type) == visualizationTypeMapping.end() ? returnVal = VisualizationType::UNKNOWN : returnVal = visualizationTypeMapping.at(type);
30 return returnVal;
31 }
32
33private:
34 const std::string nameVisType = "Type";
35 const std::string nameMaxPoints = "Max. Points";
36 const std::string namePointScale = "Point Scale";
37 const std::string nameNumberIsosurfaces = "Number Isosurfaces";
38
39 const std::string valueIsosurface = "Isosurface";
40 const std::string valuePoints = "Points";
41 const std::string valueContour2D = "2D Contour";
42
43 const std::string nameShow2dMesh = "Show 2D Mesh";
44 const std::string name2dMeshColor = "2D Mesh Color";
45 const std::string nameShow2dIsolines = "Show Isolines";
46 const std::string name2dIsolineColor = "Isoline Color";
47
48 std::map<std::string, VisualizationType> visualizationTypeMapping { {valueIsosurface,VisualizationType::Isosurface},{valuePoints,VisualizationType::Points},{valueContour2D,VisualizationType::Contour2D} };
49};