OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
DatasetOverviewVisualiser.h
Go to the documentation of this file.
1#pragma once
3#include "MetadataSeries.h"
4#include "MetadataCampaign.h"
5
7{
8public:
9 uint32_t getColumn() const { return m_column; }
10 uint32_t getRow() const { return m_row; }
11 void moveRight() { m_column++; }
12 void moveLeft() { m_column--; }
13 void moveUp() { m_row--; }
14 void moveDown() { m_row++; }
15 void moveDownAndLeft() { m_row++; m_column--; }
16
17private:
18 uint32_t m_column = 0;
19 uint32_t m_row = 0;
20};
21
23{
24 uint32_t columns;
25 uint32_t rows;
26};
27
28class __declspec(dllexport) DatasetOverviewVisualiser
29{
30public:
31 ot::GenericDataStruct* buildTableOverview(const MetadataSeries& _metadataSeries);
32 ot::GenericDataStruct* buildTableOverview(const MetadataCampaign& _metadataCampaign);
33 ~DatasetOverviewVisualiser();
34
35private:
36 uint32_t m_maxNbOfValues = 10;
37 TableLocationPointer m_tablePointer;
38 ot::GenericDataStructMatrix* m_genericDataStruct = nullptr;
39
40 TableDimension calculateNeededTableSize(const MetadataSeries& _metadataSeries);
41
42 void addParameterToOverview(const MetadataParameter& _parameter);
43 void addQuantityToOverview(const MetadataQuantity& _quantity);
44 void addMetadataToOverview(std::shared_ptr<MetadataEntry> _metadataEntries);
45
46 std::string concatinateMaxNbOfVariablesInString(const std::list<ot::Variable>& _values);
47
48 void addKeyValuePair(const std::string& _key,const ot::Variable& _value);
49 void addSingleValue(const ot::Variable& _value);
50 void addHeading(const std::string& _heading);
51
52 void addSeriesToOverview(const MetadataSeries& _metadataSeries);
53
54 void initiate(TableDimension& _tableDimension);
55 ot::GenericDataStructMatrix* release();
56};
57
Definition DatasetOverviewVisualiser.h:7
uint32_t getColumn() const
Definition DatasetOverviewVisualiser.h:9
uint32_t getRow() const
Definition DatasetOverviewVisualiser.h:10
void moveUp()
Definition DatasetOverviewVisualiser.h:13
void moveRight()
Definition DatasetOverviewVisualiser.h:11
void moveDownAndLeft()
Definition DatasetOverviewVisualiser.h:15
void moveDown()
Definition DatasetOverviewVisualiser.h:14
void moveLeft()
Definition DatasetOverviewVisualiser.h:12
Definition Variable.h:107
Definition DatasetOverviewVisualiser.h:23
uint32_t columns
Definition DatasetOverviewVisualiser.h:24
uint32_t rows
Definition DatasetOverviewVisualiser.h:25