summaryrefslogtreecommitdiffstats
path: root/Project/Machines.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-09-04 20:05:30 -0300
committerGitHub <noreply@github.com>2017-09-04 20:05:30 -0300
commit926af7f34aaf5aebdbac0cbc550ed75647874258 (patch)
tree4df26f8c631aeeeed6e5c9e8aab87c4c663bd30f /Project/Machines.h
parent17d1dd82ec065eff08546ef1fd2a188ce77471b2 (diff)
parent6f3421c4150e49af026432a2a2be0171d741ad03 (diff)
downloadPSP.git-926af7f34aaf5aebdbac0cbc550ed75647874258.tar.gz
PSP.git-926af7f34aaf5aebdbac0cbc550ed75647874258.tar.xz
PSP.git-926af7f34aaf5aebdbac0cbc550ed75647874258.zip
Merge pull request #33 from Thales1330/wip/electromechanical-calc
Wip electromechanical calc
Diffstat (limited to 'Project/Machines.h')
-rw-r--r--Project/Machines.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/Project/Machines.h b/Project/Machines.h
index 8efcab6..9c2e6cd 100644
--- a/Project/Machines.h
+++ b/Project/Machines.h
@@ -5,10 +5,12 @@
class Machines : public PowerElement
{
-public:
- Machines();
- ~Machines();
-
+ public:
+ enum SyncMachineModel { SM_MODEL_1 = 0, SM_MODEL_2, SM_MODEL_3, SM_MODEL_4, SM_MODEL_5 };
+
+ 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 +24,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