diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-03 17:09:24 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-03 17:09:24 -0300 |
commit | 726686c9b378f3a727ded52226b13a760cba1e6c (patch) | |
tree | 941150985ee1823041024ce50bc812303d30868e /Project/Shunt.h | |
parent | 077270f0294d236c6047d850703c5d011cb4b711 (diff) | |
download | PSP.git-726686c9b378f3a727ded52226b13a760cba1e6c.tar.gz PSP.git-726686c9b378f3a727ded52226b13a760cba1e6c.tar.xz PSP.git-726686c9b378f3a727ded52226b13a760cba1e6c.zip |
Inductor under implementation
Ind motor, sync condenser and load implemented
Diffstat (limited to 'Project/Shunt.h')
-rw-r--r-- | Project/Shunt.h | 31 |
1 files changed, 31 insertions, 0 deletions
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<wxPoint2DDouble> m_pointList; + std::vector<wxPoint2DDouble> m_movePts; + +}; + +#endif // SHUNT_H |