diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-12-15 17:24:24 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-15 17:24:24 -0200 |
commit | 28e9cc4d9df63cb12c01d49017172c5f39ca9c22 (patch) | |
tree | 7896e1bb7cc5f42751c5d31ec99ba2bdf19d6f6c /Project/Element.h | |
parent | cff8d90d61be4d34f5e84e8dd0933f678e6214be (diff) | |
parent | 5cdfee44e75b9a3635350aa261818e0a3bb44c5f (diff) | |
download | PSP.git-28e9cc4d9df63cb12c01d49017172c5f39ca9c22.tar.gz PSP.git-28e9cc4d9df63cb12c01d49017172c5f39ca9c22.tar.xz PSP.git-28e9cc4d9df63cb12c01d49017172c5f39ca9c22.zip |
Merge pull request #3 from Thales1330/wip/save-load-xml
Wip/save load xml
Diffstat (limited to 'Project/Element.h')
-rw-r--r-- | Project/Element.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Project/Element.h b/Project/Element.h index f5a2edb..512fc8f 100644 --- a/Project/Element.h +++ b/Project/Element.h @@ -98,6 +98,7 @@ public: void ShowPickbox(bool showPickbox = true) { m_showPickbox = showPickbox; } void SetBorderSize(double borderSize) { m_borderSize = borderSize; } void SetOnline(bool online = true); + virtual void SetPointList(std::vector<wxPoint2DDouble> pointList) { m_pointList = pointList; } // Getters wxRect2DDouble GetRect() const { return m_rect; } wxPoint2DDouble GetPosition() const { return m_position; } @@ -106,8 +107,11 @@ public: bool IsSelected() const { return m_selected; } double GetWidth() const { return m_width; } double GetAngle() const { return m_angle; } + double GetRotationAngle() const { return m_rotationAngle; } bool IsPickboxShown() const { return m_showPickbox; } bool IsOnline() const { return m_online; } + virtual std::vector<wxPoint2DDouble> GetPointList() const { return m_pointList; } + // Pure-virtuals methods virtual bool AddParent(Element* parent, wxPoint2DDouble position) = 0; virtual bool Contains(wxPoint2DDouble position) const = 0; |