From ac9b62df34695e8c7f4fbb838c6126bd98671316 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Mon, 12 Dec 2016 21:12:51 -0200 Subject: Many elements save implemented --- Project/Element.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Project/Element.h') diff --git a/Project/Element.h b/Project/Element.h index f5a2edb..27933a9 100644 --- a/Project/Element.h +++ b/Project/Element.h @@ -108,6 +108,8 @@ public: double GetAngle() const { return m_angle; } bool IsPickboxShown() const { return m_showPickbox; } bool IsOnline() const { return m_online; } + virtual std::vector GetPointList() const { return m_pointList; } + // Pure-virtuals methods virtual bool AddParent(Element* parent, wxPoint2DDouble position) = 0; virtual bool Contains(wxPoint2DDouble position) const = 0; -- cgit From e86a20525e9838f4b3962eb267ea51dce7e8fb77 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 13 Dec 2016 21:38:03 -0200 Subject: Bus open implemented, capacitor buggy --- Project/Element.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Project/Element.h') diff --git a/Project/Element.h b/Project/Element.h index 27933a9..cdad147 100644 --- a/Project/Element.h +++ b/Project/Element.h @@ -106,6 +106,7 @@ 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 GetPointList() const { return m_pointList; } -- cgit From 341fd025a924f779acebcfa0ffcf07f46f8240c9 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Wed, 14 Dec 2016 21:12:05 -0200 Subject: Many elements open implemented --- Project/Element.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Project/Element.h') diff --git a/Project/Element.h b/Project/Element.h index cdad147..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 pointList) { m_pointList = pointList; } // Getters wxRect2DDouble GetRect() const { return m_rect; } wxPoint2DDouble GetPosition() const { return m_position; } -- cgit