diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-10-21 17:44:27 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-10-21 17:44:27 -0200 |
commit | 58cc8933337d4681025f890af78bfddc45c212d0 (patch) | |
tree | ffe3737ba2b86aab8d4832d9a2c5533fbc63342c /Project/Load.h | |
parent | dc8e7b67eb2141cfbed0f26ac50a8d14104f391b (diff) | |
download | PSP.git-58cc8933337d4681025f890af78bfddc45c212d0.tar.gz PSP.git-58cc8933337d4681025f890af78bfddc45c212d0.tar.xz PSP.git-58cc8933337d4681025f890af78bfddc45c212d0.zip |
Load form under implementation
Diffstat (limited to 'Project/Load.h')
-rw-r--r-- | Project/Load.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Project/Load.h b/Project/Load.h index fcdaa6b..d1c0e04 100644 --- a/Project/Load.h +++ b/Project/Load.h @@ -3,6 +3,22 @@ #include "Shunt.h" +enum LoadType +{ + CONST_POWER = 0, + CONST_IMPEDANCE +}; + +struct LoadElectricalData +{ + wxString name; + double activePower = 100.0; + ElectricalUnit activePowerUnit = UNIT_MW; + double reactivePower = 0.0; + ElectricalUnit reactivePower = UNIT_MVAr; + LoadType loadType = CONST_POWER; +}; + class Load : public Shunt { public: @@ -13,9 +29,12 @@ class Load : public Shunt virtual void Draw(wxPoint2DDouble translation, double scale) const; virtual void Rotate(bool clockwise = true); virtual bool GetContextMenu(wxMenu& menu); + LoadElectricalData GetElectricalData() { return m_electricalData } + void SetElectricalData(LoadElectricalData electricalData) { m_electricalData = electricalData; } private: std::vector<wxPoint2DDouble> m_triangPts; + LoadElectricalData m_electricalData; }; #endif // LOAD_H |