blob: fd6858512f4deae62edbca097192ee94c4efe071 (
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
|
#ifndef LINE_H
#define LINE_H
#include <wx/msgdlg.h>
#include "Element.h"
class Line : public Element
{
public:
Line();
~Line();
virtual bool Contains(wxPoint2DDouble position) const;
virtual void Draw(wxPoint2DDouble translation, double scale) const;
virtual wxCursor GetBestPickboxCursor() const;
virtual bool AddParent(Element* parent, wxPoint2DDouble position);
virtual bool Intersects(wxRect2DDouble rect) const;
virtual void MovePickbox(wxPoint2DDouble position);
virtual bool PickboxContains(wxPoint2DDouble position);
virtual void Rotate();
virtual void AddPoint(wxPoint2DDouble point);
protected:
std::vector<Element*> m_parentList;
std::vector<wxPoint2DDouble> m_pointList;
};
#endif // LINE_H
|