diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-20 17:22:47 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-20 17:22:47 -0300 |
commit | 30181ca0ae73f5f7f1856ac289db8fcf849c9a84 (patch) | |
tree | 4b8de3270f4157e6dfbce05bc404cbc29333e969 /Project/Machines.h | |
parent | 7a556cd67b60f70b9779d298ee687f66c859a529 (diff) | |
download | PSP.git-30181ca0ae73f5f7f1856ac289db8fcf849c9a84.tar.gz PSP.git-30181ca0ae73f5f7f1856ac289db8fcf849c9a84.tar.xz PSP.git-30181ca0ae73f5f7f1856ac289db8fcf849c9a84.zip |
Electromechanical class and several methods implemented
Diffstat (limited to 'Project/Machines.h')
-rw-r--r-- | Project/Machines.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Project/Machines.h b/Project/Machines.h index 8efcab6..615d82e 100644 --- a/Project/Machines.h +++ b/Project/Machines.h @@ -5,10 +5,10 @@ class Machines : public PowerElement { -public: - Machines(); - ~Machines(); - + public: + Machines(); + ~Machines(); + virtual bool AddParent(Element* parent, wxPoint2DDouble position); virtual bool Contains(wxPoint2DDouble position) const { return m_rect.Contains(position); } virtual void Draw(wxPoint2DDouble translation, double scale) const; @@ -22,14 +22,13 @@ public: virtual bool SetNodeParent(Element* parent); virtual void UpdateNodes(); virtual void Rotate(bool clockwise = true); - virtual void DrawSymbol() const {} + virtual void DrawSymbol() const {} virtual void SetPowerFlowDirection(PowerFlowDirection pfDirection); protected: void UpdateSwitchesPosition(); void UpdatePowerFlowArrowsPosition(); bool m_inserted = false; - }; -#endif // MACHINES_H +#endif // MACHINES_H |