OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityBlockConnection.h
Go to the documentation of this file.
1#pragma once
2#include "EntityBlock.h"
3
4class __declspec(dllexport) EntityBlockConnection : public EntityBase
5{
6public:
7 EntityBlockConnection(ot::UID ID, EntityBase* parent, EntityObserver* obs, ModelState* ms, ClassFactoryHandler* factory, const std::string& owner);
8 virtual ~EntityBlockConnection();
9
10 virtual bool getEntityBox(double& xmin, double& xmax, double& ymin, double& ymax, double& zmin, double& zmax) override { return false; };
11
12 virtual std::string getClassName(void) override { return "EntityBlockConnection"; };
13 virtual entityType getEntityType(void) override { return TOPOLOGY; };
14
15 ot::GraphicsConnectionCfg getConnectionCfg();
16 void setConnectionCfg(const ot::GraphicsConnectionCfg& connectionCfg);
17 void SetGraphicsScenePackageName(const std::string& name) { _graphicsScenePackage = name; }
18 void SetServiceInformation(const ot::BasicServiceInformation& info) { _info = info; }
19
20 void createProperties();
21 virtual bool updateFromProperties() override;
22 virtual void addVisualizationNodes(void) override;
23 virtual int getSchemaVersion(void) override { return 1; };
24private:
25 std::string _navigationOldTreeIconName = "";
26 std::string _navigationOldTreeIconNameHidden = "";
28 ot::OutlineF m_lineStyle;
29
31 std::string _graphicsScenePackage;
32 ot::UID _blockIDOrigin;
33 ot::UID _blockIDDestination;
34 std::string _connectorNameOrigin;
35 std::string _connectorNameDestination;
36
37
38 void CreateNavigationTreeEntry();
39 void CreateConnections();
40 void AddStorageData(bsoncxx::builder::basic::document& storage) override;
41 void readSpecificDataFromDataBase(bsoncxx::document::view& doc_view, std::map<ot::UID, EntityBase*>& entityMap) override;
42};
43
The BasicServiceInformation class is used to hold a service name and type. The BasicServiceInformatio...
Definition BasicServiceInformation.h:21
Definition GraphicsConnectionCfg.h:22
ConnectionShape
Definition GraphicsConnectionCfg.h:24
The OutlineF class is used to describe how a outline should look like.
Definition Outline.h:161
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27