From 412ddd0fa4a6e32651619897c8606d4cbaaa1ffa Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Thu, 4 May 2017 17:03:19 -0300 Subject: Control solver class created Just the basics methods implemented --- Project/ConnectionLine.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Project/ConnectionLine.h') diff --git a/Project/ConnectionLine.h b/Project/ConnectionLine.h index e9d238a..8000cfa 100644 --- a/Project/ConnectionLine.h +++ b/Project/ConnectionLine.h @@ -29,6 +29,12 @@ class ConnectionLine : public ControlElement virtual bool SetParentLine(ConnectionLine* parent); virtual std::vector GetLineChildList() const; + + virtual bool IsSolved() const { return m_solved; } + virtual SetSolved(bool solved) { m_solved = solved; } + + virtual double GetValue() const { return m_value; } + virtual void SetValue(double value) { m_value = value; } protected: double m_lineOffset = 0.0; @@ -38,6 +44,9 @@ class ConnectionLine : public ControlElement ConnectionLineType m_type = ELEMENT_ELEMENT; ConnectionLine* m_parentLine = NULL; + + double m_value; + bool m_solved = false; }; #endif // CONNECTIONLINE_H -- cgit From 74d795cb074b6ae9aa93bcfacee8995d7e6d5945 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 6 May 2017 18:28:23 -0300 Subject: Streight control solver implemented Buggy, running 2x... Why?? --- Project/ConnectionLine.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Project/ConnectionLine.h') diff --git a/Project/ConnectionLine.h b/Project/ConnectionLine.h index 8000cfa..98e3098 100644 --- a/Project/ConnectionLine.h +++ b/Project/ConnectionLine.h @@ -30,9 +30,6 @@ class ConnectionLine : public ControlElement virtual std::vector GetLineChildList() const; - virtual bool IsSolved() const { return m_solved; } - virtual SetSolved(bool solved) { m_solved = solved; } - virtual double GetValue() const { return m_value; } virtual void SetValue(double value) { m_value = value; } @@ -46,7 +43,6 @@ class ConnectionLine : public ControlElement ConnectionLine* m_parentLine = NULL; double m_value; - bool m_solved = false; }; #endif // CONNECTIONLINE_H -- cgit