summaryrefslogtreecommitdiffstats
path: root/Project/Shunt.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-09-04 00:59:41 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-09-04 00:59:41 -0300
commitc1aad656847602f7e4c7aead048f7465a76838d4 (patch)
tree2b69d1d0e98f50ed8113746c3c4a4d87d6be3b7e /Project/Shunt.cpp
parent726686c9b378f3a727ded52226b13a760cba1e6c (diff)
downloadPSP.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.cpp15
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);
+}
+