OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
BlockHandlerPlot1D.h
Go to the documentation of this file.
1#pragma once
2#include "BlockHandler.h"
3#include "EntityBlockPlot1D.h"
6
8{
9public:
10 BlockHandlerPlot1D(EntityBlockPlot1D* blockEntity, const HandlerMap& handlerMap);
11 virtual bool executeSpecialized() override;
12
13private:
14 std::string _xDataConnector;
15 std::list<std::string> _yDataConnectors;
16 std::list<std::string> _curveNames;
17
18 std::string _resultFolder = ot::FolderNames::ResultFolder + "/";
19 std::string _plotName;
20 std::string _curveName = "Curve";
21 const std::string _curveFolderPath = _resultFolder + "1D/Curves";
22 std::string _xlabel;
23 std::string _xunit;
24 std::string _ylabel;
25 std::string _yunit;
26
27 void setLabel(PipelineData& _pipelineData, std::string& _label);
28 void setUnit(PipelineData& _pipelineData, std::string& _unit);
29
30 std::vector<double> transformDataToDouble(GenericDataList& data);
31 double VariableToDouble(const ot::Variable& var);
32};
std::list< std::shared_ptr< ot::GenericDataStruct > > GenericDataList
Definition PipelineData.h:12
Definition BlockHandler.h:10
std::map< std::shared_ptr< GraphNode >, std::shared_ptr< BlockHandler > > HandlerMap
Definition BlockHandler.h:12
Definition BlockHandlerPlot1D.h:8
BlockHandlerPlot1D(EntityBlockPlot1D *blockEntity, const HandlerMap &handlerMap)
Definition BlockHandlerPlot1D.cpp:9
virtual bool executeSpecialized() override
Definition BlockHandlerPlot1D.cpp:42
Definition Variable.h:107
const std::string ResultFolder
Definition FolderNames.h:12
Definition PipelineData.h:14