summaryrefslogtreecommitdiffstats
path: root/Project/ConnectionLine.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-04 17:03:19 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-04 17:03:19 -0300
commit412ddd0fa4a6e32651619897c8606d4cbaaa1ffa (patch)
treed93249ee4a8e32668d497bc6675fbb42b93d0f2c /Project/ConnectionLine.h
parent7ade1da522d642fa5f7a38e62d0e865733ef1afe (diff)
downloadPSP.git-412ddd0fa4a6e32651619897c8606d4cbaaa1ffa.tar.gz
PSP.git-412ddd0fa4a6e32651619897c8606d4cbaaa1ffa.tar.xz
PSP.git-412ddd0fa4a6e32651619897c8606d4cbaaa1ffa.zip
Control solver class created
Just the basics methods implemented
Diffstat (limited to 'Project/ConnectionLine.h')
-rw-r--r--Project/ConnectionLine.h9
1 files changed, 9 insertions, 0 deletions
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<ConnectionLine*> 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