From 0a85e05fa7aa0e2b950c2c3bcec5d45f25b1c0e2 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 9 Aug 2016 17:45:09 -0300 Subject: Line under implementation --- Project/Line.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Project/Line.h') diff --git a/Project/Line.h b/Project/Line.h index d98a1c5..fd68585 100644 --- a/Project/Line.h +++ b/Project/Line.h @@ -1,6 +1,8 @@ #ifndef LINE_H #define LINE_H +#include + #include "Element.h" class Line : public Element @@ -8,14 +10,18 @@ class Line : public Element public: Line(); ~Line(); - virtual bool Contains(wxPoint2DDouble position) const; + 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 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 m_parentList; + std::vector m_pointList; }; #endif // LINE_H -- cgit