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/Machines.cpp | |
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/Machines.cpp')
-rw-r--r-- | Project/Machines.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Project/Machines.cpp b/Project/Machines.cpp index 1b11c68..c86f7b7 100644 --- a/Project/Machines.cpp +++ b/Project/Machines.cpp @@ -54,6 +54,7 @@ void Machines::Draw(wxPoint2DDouble translation, double scale) const DrawLine(m_pointList); DrawSwitches(); + DrawPowerFlowPts(); glColor4d(1.0, 1.0, 1.0, 1.0); DrawCircle(m_position, 25.0, 20, GL_POLYGON); @@ -89,6 +90,12 @@ void Machines::Move(wxPoint2DDouble position) m_pointList[0] = m_movePts[0] + position - m_moveStartPt; } UpdateSwitchesPosition(); + + //Power flow arrows + std::vector<wxPoint2DDouble> edges; + edges.push_back(m_pointList[1]); + edges.push_back(m_pointList[2]); + CalculatePowerFlowPts(edges); } void Machines::MoveNode(Element* element, wxPoint2DDouble position) |