OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityBlockCircuitResistor.h
Go to the documentation of this file.
1#pragma once
3class __declspec(dllexport) EntityBlockCircuitResistor : public EntityBlockCircuitElement
4{
5public:
6 EntityBlockCircuitResistor(ot::UID ID, EntityBase* parent, EntityObserver* obs, ModelState* ms, ClassFactoryHandler* factory, const std::string& owner);
7 virtual std::string getClassName(void) override { return "EntityBlockCircuitResistor"; };
8 virtual entityType getEntityType(void) override { return TOPOLOGY; };
9 virtual void createProperties() override;
10 std::string getElementType();
11
12 virtual ot::GraphicsItemCfg* CreateBlockCfg() override;
13
14
15 double getRotation();
16 std::string getFlip();
17 const ot::Connector getLeftConnector() const { return m_LeftConnector; }
18 const ot::Connector getRightConnector() const { return m_RightConnector; }
19 virtual bool updateFromProperties(void) override;
20private:
21
22 ot::Connector m_LeftConnector;
23 ot::Connector m_RightConnector;
24 //std::list<Connection> listOfConnections
25
26 void AddStorageData(bsoncxx::builder::basic::document& storage) override;
27 void readSpecificDataFromDataBase(bsoncxx::document::view& doc_view, std::map<ot::UID, EntityBase*>& entityMap) override;
28
29
30};
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27