diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-19 17:53:45 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-19 17:53:45 -0300 |
commit | 474b1f94ced70e1d183a79bb6df87603982755aa (patch) | |
tree | be4d12d44aa7cffa1cd7b712d6a736cbdf61ae02 /Project/Line.h | |
parent | d4efffcdedbb41596eecd0882a1cef76f6afc435 (diff) | |
download | PSP.git-474b1f94ced70e1d183a79bb6df87603982755aa.tar.gz PSP.git-474b1f94ced70e1d183a79bb6df87603982755aa.tar.xz PSP.git-474b1f94ced70e1d183a79bb6df87603982755aa.zip |
Line still under implementation
Diffstat (limited to 'Project/Line.h')
-rw-r--r-- | Project/Line.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/Line.h b/Project/Line.h index 08a2b36..9293baa 100644 --- a/Project/Line.h +++ b/Project/Line.h @@ -24,10 +24,12 @@ class Line : public Element virtual void RotateNode(Element* parent); virtual void AddPoint(wxPoint2DDouble point); virtual bool GetContextMenu(wxMenu& menu); + virtual void RemoveNode(wxPoint2DDouble point); + virtual void AddNode(wxPoint2DDouble point); protected: void UpdateSwitchesPosition(); - double PointToLineDistance(wxPoint2DDouble point) const; + double PointToLineDistance(wxPoint2DDouble point, int* segmentNumber = NULL) const; std::vector<wxPoint2DDouble> m_pointList; bool m_inserted = false; std::vector<wxPoint2DDouble> m_movePts; |