From 0ec05e0cb396a9ef153d29f605d4a0bbeb0dc7c1 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Mon, 17 Apr 2017 20:25:10 -0300 Subject: Connection line import under implementation Parent line not implemented yet --- Project/ConnectionLine.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Project/ConnectionLine.h') diff --git a/Project/ConnectionLine.h b/Project/ConnectionLine.h index 30e0d6a..e9d238a 100644 --- a/Project/ConnectionLine.h +++ b/Project/ConnectionLine.h @@ -7,6 +7,7 @@ class ConnectionLine : public ControlElement { public: enum ConnectionLineType { ELEMENT_ELEMENT = 0, ELEMENT_LINE }; + ConnectionLine(); ConnectionLine(Node* firstNode, int id); ~ConnectionLine(); @@ -21,6 +22,7 @@ class ConnectionLine : public ControlElement virtual void SetTemporarySecondPoint(wxPoint2DDouble point) { m_tmpSndPt = point; } virtual wxPoint2DDouble GetMidPoint() const; virtual double GetOffset() const { return m_lineOffset; } + virtual void SetOffset(double offset) { m_lineOffset = offset; } virtual ConnectionLineType GetType() const { return m_type; } virtual void SetType(ConnectionLineType newType) { m_type = newType; } virtual ConnectionLine* GetParentLine() const { return m_parentLine; } -- cgit