diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-09-04 00:59:41 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-09-04 00:59:41 -0300 |
commit | c1aad656847602f7e4c7aead048f7465a76838d4 (patch) | |
tree | 2b69d1d0e98f50ed8113746c3c4a4d87d6be3b7e /Project/Shunt.cpp | |
parent | 726686c9b378f3a727ded52226b13a760cba1e6c (diff) | |
download | PSP.git-c1aad656847602f7e4c7aead048f7465a76838d4.tar.gz PSP.git-c1aad656847602f7e4c7aead048f7465a76838d4.tar.xz PSP.git-c1aad656847602f7e4c7aead048f7465a76838d4.zip |
Inductor implemented
Diffstat (limited to 'Project/Shunt.cpp')
-rw-r--r-- | Project/Shunt.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Project/Shunt.cpp b/Project/Shunt.cpp index 6e55dde..34e4068 100644 --- a/Project/Shunt.cpp +++ b/Project/Shunt.cpp @@ -127,3 +127,18 @@ void Shunt::RotateNode(Element* parent) } } +void Shunt::DrawGround(wxPoint2DDouble position) const +{ + std::vector<wxPoint2DDouble> groundPts; + groundPts.push_back(position); + groundPts.push_back(position + wxPoint2DDouble(0, 10)); + groundPts.push_back(position + wxPoint2DDouble(-10, 10)); + groundPts.push_back(position + wxPoint2DDouble(10, 10)); + groundPts.push_back(position + wxPoint2DDouble(-6, 15)); + groundPts.push_back(position + wxPoint2DDouble(6, 15)); + groundPts.push_back(position + wxPoint2DDouble(-3, 20)); + groundPts.push_back(position + wxPoint2DDouble(3, 20)); + + DrawLine(groundPts, GL_LINES); +} + |