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