blob: b598f40332d9e39dd2795dc8333cbddbf959fef7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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) {}
|