From b5324f48c855b0c82ccf6da7d5a008fe5cf1c17e Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Mon, 8 Aug 2016 17:01:53 -0300 Subject: Start Power Line implementation gogogogo --- Project/Line.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Project/Line.h (limited to 'Project/Line.h') diff --git a/Project/Line.h b/Project/Line.h new file mode 100644 index 0000000..d98a1c5 --- /dev/null +++ b/Project/Line.h @@ -0,0 +1,21 @@ +#ifndef LINE_H +#define LINE_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 void Insert(Element* parent, wxPoint2DDouble position); + virtual bool Intersects(wxRect2DDouble rect) const; + virtual void MovePickbox(wxPoint2DDouble position); + virtual bool PickboxContains(wxPoint2DDouble position); + virtual void Rotate(); +}; + +#endif // LINE_H -- cgit