From 3a246308dcd76f70a1b6c3e6b08f0d597b255dba Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 30 Jul 2016 00:29:03 -0300 Subject: Adding the basics graphics elements The base is done, bus under contruction --- Project/Bus.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Project/Bus.cpp (limited to 'Project/Bus.cpp') diff --git a/Project/Bus.cpp b/Project/Bus.cpp new file mode 100644 index 0000000..b598f40 --- /dev/null +++ b/Project/Bus.cpp @@ -0,0 +1,19 @@ +#include "Bus.h" + +Bus::Bus(wxPoint2DDouble position) : Element() +{ + m_width = 100.0; + m_height = 5.0; + SetPosition(position); +} +Bus::~Bus() {} + +void Bus::Draw(wxPoint2DDouble translation, double scale) const +{ + glColor4d(0.0, 0.0, 1.0, 1.0); + DrawRectangle(m_position, m_width, m_height); +} +bool Bus::Contains(wxPoint2DDouble position) const { return false; } +int Bus::PickboxContains(wxPoint2DDouble position) const { return 0; } +wxCursor Bus::GetBestPickboxCursor() const { return wxCURSOR_ARROW; } +void Bus::MovePickbox(wxPoint2DDouble position, int pickboxID) {} -- cgit