diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-10-28 17:46:43 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-10-28 17:46:43 -0200 |
commit | 468ba7581675a23567746628d6777ca411b150d3 (patch) | |
tree | 1c52dc5d0f530a04c03ab76d71e6134df18a4816 /Project/Element.h | |
parent | 02c5a1d22a078c132aca40ea14b95800dd8257e9 (diff) | |
download | PSP.git-468ba7581675a23567746628d6777ca411b150d3.tar.gz PSP.git-468ba7581675a23567746628d6777ca411b150d3.tar.xz PSP.git-468ba7581675a23567746628d6777ca411b150d3.zip |
Power flow arrow under implementation
Diffstat (limited to 'Project/Element.h')
-rw-r--r-- | Project/Element.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Project/Element.h b/Project/Element.h index 51cb588..ec18ccd 100644 --- a/Project/Element.h +++ b/Project/Element.h @@ -7,6 +7,8 @@ #include <wx/menu.h> #include <GL/gl.h> +#include <complex> + #include <wx/log.h> enum PickboxID @@ -135,6 +137,9 @@ class Element virtual bool SwitchesContains(wxPoint2DDouble position) const; virtual void UpdateSwitches(); virtual void DrawSwitches() const; + + virtual void CalculatePowerFlowPts(std::vector<wxPoint2DDouble> edges); + virtual void DrawPowerFlowPts() const; virtual bool PickboxContains(wxPoint2DDouble position) { return false; } virtual void MovePickbox(wxPoint2DDouble position) {} @@ -204,6 +209,7 @@ class Element double m_switchSize = 10.0; std::vector<wxRect2DDouble> m_switchRect; + std::vector< std::vector<wxPoint2DDouble> > m_powerFlowArrow; bool m_selected = false; bool m_dragging = false; |