summaryrefslogtreecommitdiffstats
path: root/Project/Shunt.cpp
diff options
context:
space:
mode:
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);
+}
+