blob: d0df0a2936374a5eb7853eefe6838643d8406ba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include "Line.h"
Line::Line() {}
Line::~Line() {}
bool Line::Contains(wxPoint2DDouble position) const { return false; }
void Line::Draw(wxPoint2DDouble translation, double scale) const {}
wxCursor Line::GetBestPickboxCursor() const { return wxCURSOR_ARROW; }
bool Line::AddParent(Element* parent, wxPoint2DDouble position)
{
if(parent) {
if(m_parentList.size() == 0) {
m_parentList.push_back(parent);
m_pointList.push_back(position); // First point
return false;
}
else if(parent != m_parentList[0])
{
m_parentList.push_back(parent);
m_pointList.push_back(position); // Last point
return true;
}
}
return false;
}
bool Line::Intersects(wxRect2DDouble rect) const { return false; }
void Line::MovePickbox(wxPoint2DDouble position) {}
bool Line::PickboxContains(wxPoint2DDouble position) { return false; }
void Line::Rotate() {}
void Line::AddPoint(wxPoint2DDouble point)
{
if(m_parentList.size() != 0) {
m_pointList.push_back(point);
}
}
|