OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityTableSelectedRanges.h
Go to the documentation of this file.
1#pragma once
2#include "EntityBase.h"
5#include "OTGui/TableRange.h"
6#include <vector>
7
8class __declspec(dllexport) EntityTableSelectedRanges : public EntityBase
9{
10public:
11 EntityTableSelectedRanges(ot::UID ID, EntityBase *parent, EntityObserver *obs, ModelState *ms, ClassFactoryHandler* factory, const std::string &owner);
12 virtual bool getEntityBox(double & xmin, double & xmax, double & ymin, double & ymax, double & zmin, double & zmax) override;
13 virtual std::string getClassName(void) { return "EntityTableSelectedRanges"; };
14 virtual entityType getEntityType() override { return TOPOLOGY; }
15 virtual void addVisualizationNodes() override;
16 virtual bool updateFromProperties(void) override;
17 void createProperties(const std::string& pythonScriptFolder, ot::UID pythonScriptFolderID, const std::string& pythonScriptName, ot::UID pythonScriptID, const std::string& _defaultType);
18 void setTableProperties(std::string tableName, ot::UID tableID, std::string tableOrientation);
19
20 std::string getSelectedType();
21 std::string getTableName();
22 ot::TableCfg::TableHeaderMode getTableHeaderMode();
23 ot::TableRange getSelectedRange();
24 bool getConsiderForBatchprocessing();
25 void setConsiderForBatchprocessing(bool considerForBatchprocessing);
26
27 bool getSelectEntireColumn();
28 bool getSelectEntireRow();
29
30 void setSelectEntireColumn(bool _selectAll);
31 void setSelectEntireRow(bool _selectAll);
32
33 uint32_t getBatchingPriority();
34 void setBatchingPriority(uint32_t _priority);
35
36 bool getPassOnScript();
37 void setPassOnScript(bool _passOn);
38
39 std::string getScriptName();
40 void setRange(const ot::TableRange& _range);
41
42private:
43
44 ot::UID _tableID = 0;
45 const std::string _propNameConsiderForBatchProcessing = "Consider for batching";
46 const std::string _propNamePassOnScript= "Pass on script";
47 const std::string _pythonScriptProperty = "Update script";
48
49 bool UpdateVisibility();
50
51 virtual void AddStorageData(bsoncxx::builder::basic::document &storage);
52 virtual void readSpecificDataFromDataBase(bsoncxx::document::view &doc_view, std::map<ot::UID, EntityBase *> &entityMap) override;
53};
TableHeaderMode
Definition TableCfg.h:21
Definition TableRange.h:16
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27