From 726686c9b378f3a727ded52226b13a760cba1e6c Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Sat, 3 Sep 2016 17:09:24 -0300 Subject: Inductor under implementation Ind motor, sync condenser and load implemented --- Project/Shunt.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Project/Shunt.h (limited to 'Project/Shunt.h') diff --git a/Project/Shunt.h b/Project/Shunt.h new file mode 100644 index 0000000..2d74984 --- /dev/null +++ b/Project/Shunt.h @@ -0,0 +1,31 @@ +#ifndef SHUNT_H +#define SHUNT_H + +#include "Element.h" + +class Shunt : public Element +{ +public: + Shunt(); + ~Shunt(); + + virtual bool Contains(wxPoint2DDouble position) const { return m_rect.Contains(position); } + virtual bool Intersects(wxRect2DDouble rect) const { return m_rect.Intersects(rect); } + virtual void Move(wxPoint2DDouble position); + virtual void MoveNode(Element* element, wxPoint2DDouble position); + virtual void StartMove(wxPoint2DDouble position); + virtual void RotateNode(Element* parent); + virtual void RemoveParent(Element* parent); + virtual bool NodeContains(wxPoint2DDouble position); + virtual bool SetNodeParent(Element* parent); + virtual void UpdateNodes(); + + protected: + void UpdateSwitchesPosition(); + bool m_inserted = false; + std::vector m_pointList; + std::vector m_movePts; + +}; + +#endif // SHUNT_H -- cgit From c1aad656847602f7e4c7aead048f7465a76838d4 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sun, 4 Sep 2016 00:59:41 -0300 Subject: Inductor implemented --- Project/Shunt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Project/Shunt.h') diff --git a/Project/Shunt.h b/Project/Shunt.h index 2d74984..9f5064a 100644 --- a/Project/Shunt.h +++ b/Project/Shunt.h @@ -22,6 +22,7 @@ public: protected: void UpdateSwitchesPosition(); + void DrawGround(wxPoint2DDouble position) const; bool m_inserted = false; std::vector m_pointList; std::vector m_movePts; -- cgit From d93ef357da510f2515556ff2cb51688a4e068805 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Mon, 5 Sep 2016 18:43:50 -0300 Subject: All elements implemented, switches implemented --- Project/Shunt.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'Project/Shunt.h') diff --git a/Project/Shunt.h b/Project/Shunt.h index 9f5064a..8369516 100644 --- a/Project/Shunt.h +++ b/Project/Shunt.h @@ -24,8 +24,6 @@ public: void UpdateSwitchesPosition(); void DrawGround(wxPoint2DDouble position) const; bool m_inserted = false; - std::vector m_pointList; - std::vector m_movePts; }; -- cgit From 697baaa3cc92e945d2301238dc9bcabffdb465ef Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 6 Sep 2016 18:32:47 -0300 Subject: Counter clockwise rotation implemented --- Project/Shunt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project/Shunt.h') diff --git a/Project/Shunt.h b/Project/Shunt.h index 8369516..e44f735 100644 --- a/Project/Shunt.h +++ b/Project/Shunt.h @@ -14,7 +14,7 @@ public: virtual void Move(wxPoint2DDouble position); virtual void MoveNode(Element* element, wxPoint2DDouble position); virtual void StartMove(wxPoint2DDouble position); - virtual void RotateNode(Element* parent); + virtual void RotateNode(Element* parent, bool clockwise = true); virtual void RemoveParent(Element* parent); virtual bool NodeContains(wxPoint2DDouble position); virtual bool SetNodeParent(Element* parent); -- cgit From 7d4df7195202eaea0e84f227e96f19dec4144081 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Sat, 29 Oct 2016 17:46:00 -0200 Subject: Power flow arrows implemented --- Project/Shunt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Project/Shunt.h') diff --git a/Project/Shunt.h b/Project/Shunt.h index e44f735..cf1681d 100644 --- a/Project/Shunt.h +++ b/Project/Shunt.h @@ -22,6 +22,7 @@ public: protected: void UpdateSwitchesPosition(); + void UpdatePowerFlowArrowsPosition(); void DrawGround(wxPoint2DDouble position) const; bool m_inserted = false; -- cgit