diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-17 17:19:58 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-17 17:19:58 -0300 |
commit | e58cec073cbd982246898c733ae21b9f2b92b2b7 (patch) | |
tree | 1f2201686465ef0e41292d31ee3285e90ed2e7f3 /Project/Line.h | |
parent | 0a85e05fa7aa0e2b950c2c3bcec5d45f25b1c0e2 (diff) | |
download | PSP.git-e58cec073cbd982246898c733ae21b9f2b92b2b7.tar.gz PSP.git-e58cec073cbd982246898c733ae21b9f2b92b2b7.tar.xz PSP.git-e58cec073cbd982246898c733ae21b9f2b92b2b7.zip |
Line under implementation
Diffstat (limited to 'Project/Line.h')
-rw-r--r-- | Project/Line.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Project/Line.h b/Project/Line.h index fd68585..6717783 100644 --- a/Project/Line.h +++ b/Project/Line.h @@ -12,6 +12,8 @@ class Line : public Element ~Line(); virtual bool Contains(wxPoint2DDouble position) const; virtual void Draw(wxPoint2DDouble translation, double scale) const; + virtual void Move(wxPoint2DDouble position) {} + virtual void MoveNode(Element* parent, wxPoint2DDouble position); virtual wxCursor GetBestPickboxCursor() const; virtual bool AddParent(Element* parent, wxPoint2DDouble position); virtual bool Intersects(wxRect2DDouble rect) const; @@ -19,9 +21,10 @@ class Line : public Element virtual bool PickboxContains(wxPoint2DDouble position); virtual void Rotate(); virtual void AddPoint(wxPoint2DDouble point); + protected: - std::vector<Element*> m_parentList; std::vector<wxPoint2DDouble> m_pointList; + bool m_inserted = false; }; #endif // LINE_H |