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