From 30181ca0ae73f5f7f1856ac289db8fcf849c9a84 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 20 May 2017 17:22:47 -0300 Subject: Electromechanical class and several methods implemented --- Project/Machines.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Project/Machines.h') 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 -- cgit From 4ca362b083d7b20adfd80f1ec4b46a52789cdeb7 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Mon, 17 Jul 2017 21:02:07 -0300 Subject: Some optimization, model 1 machine implementation start --- Project/Machines.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Project/Machines.h') diff --git a/Project/Machines.h b/Project/Machines.h index 615d82e..9c2e6cd 100644 --- a/Project/Machines.h +++ b/Project/Machines.h @@ -6,6 +6,8 @@ class Machines : public PowerElement { public: + enum SyncMachineModel { SM_MODEL_1 = 0, SM_MODEL_2, SM_MODEL_3, SM_MODEL_4, SM_MODEL_5 }; + Machines(); ~Machines(); -- cgit