OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityBlockCircuitDiode.h
Go to the documentation of this file.
2class __declspec(dllexport) EntityBlockCircuitDiode : public EntityBlockCircuitElement
3{
4public:
5 EntityBlockCircuitDiode(ot::UID ID, EntityBase* parent, EntityObserver* obs, ModelState* ms, ClassFactoryHandler* factory, const std::string& owner);
6 virtual std::string getClassName(void) override { return "EntityBlockCircuitDiode"; };
7 virtual entityType getEntityType(void) override { return TOPOLOGY; };
8 virtual void createProperties() override;
9 std::string getElementType();
10
11 virtual ot::GraphicsItemCfg* CreateBlockCfg() override;
12
13 const double getRotation();
14 const std::string getFlip();
15 const ot::Connector getLeftConnector() const { return m_LeftConnector; }
16 const ot::Connector getRightConnector() const { return m_RightConnector; }
17 virtual bool updateFromProperties(void) override;
18private:
19
20 ot::Connector m_LeftConnector;
21 ot::Connector m_RightConnector;
22 //std::list<Connection> listOfConnections
23
24 void AddStorageData(bsoncxx::builder::basic::document& storage) override;
25 void readSpecificDataFromDataBase(bsoncxx::document::view& doc_view, std::map<ot::UID, EntityBase*>& entityMap) override;
26
27
28};
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