summaryrefslogtreecommitdiffstats
path: root/Project/ConnectionLine.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2017-03-03 18:50:40 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2017-03-03 18:50:40 -0300
commit4ddc7be64451db873e49169e951532ce8893e359 (patch)
treede034defff5a76a71249d53d8b0abb2a4eab17f9 /Project/ConnectionLine.h
parenta54f50d0bf86c7c4d400e8b4d30cbc6091cfd9df (diff)
downloadPSP.git-4ddc7be64451db873e49169e951532ce8893e359.tar.gz
PSP.git-4ddc7be64451db873e49169e951532ce8893e359.tar.xz
PSP.git-4ddc7be64451db873e49169e951532ce8893e359.zip
More connection line methods implemented
Diffstat (limited to 'Project/ConnectionLine.h')
-rw-r--r--Project/ConnectionLine.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/Project/ConnectionLine.h b/Project/ConnectionLine.h
index 8249df8..cc7b51e 100644
--- a/Project/ConnectionLine.h
+++ b/Project/ConnectionLine.h
@@ -6,12 +6,23 @@
class ConnectionLine : public ControlElement
{
public:
- ConnectionLine();
+ ConnectionLine(Node* firstNode);
~ConnectionLine();
virtual void Draw(wxPoint2DDouble translation, double scale) const;
virtual bool Contains(wxPoint2DDouble position) const;
virtual bool Intersects(wxRect2DDouble rect) const;
+ virtual void StartMove(wxPoint2DDouble position);
+ virtual void Move(wxPoint2DDouble position);
+ virtual bool AppendNode(Node* node, ControlElement* parent);
+ virtual void UpdatePoints();
+ virtual void SetTemporarySecondPoint(wxPoint2DDouble point) { m_tmpSndPt = point; };
+
+protected:
+ double m_lineOffset = 0.0;
+ double m_moveStartPtY = 0.0;
+ double m_moveStartOffset = 0.0;
+ wxPoint2DDouble m_tmpSndPt;
};
#endif // CONNECTIONLINE_H