diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-25 18:09:39 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-25 18:09:39 -0300 |
commit | 8e00906e0517b335a6c33f682334bda3c1eadb69 (patch) | |
tree | 73a05e149d2fe0bc55cfd81cef9048d51a61f251 /Project/Line.h | |
parent | c36a96b8a152b98e406c352462435070b46f2dcd (diff) | |
download | PSP.git-8e00906e0517b335a6c33f682334bda3c1eadb69.tar.gz PSP.git-8e00906e0517b335a6c33f682334bda3c1eadb69.tar.xz PSP.git-8e00906e0517b335a6c33f682334bda3c1eadb69.zip |
Line finally done
Diffstat (limited to 'Project/Line.h')
-rw-r--r-- | Project/Line.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/Project/Line.h b/Project/Line.h index 7374e29..596b1a4 100644 --- a/Project/Line.h +++ b/Project/Line.h @@ -12,29 +12,30 @@ class Line : public Element ~Line(); virtual bool Contains(wxPoint2DDouble position) const; virtual void Draw(wxPoint2DDouble translation, double scale) const; - virtual void Move(wxPoint2DDouble position) {} - virtual void StartMove(wxPoint2DDouble position); + virtual void Move(wxPoint2DDouble position); + virtual void StartMove(wxPoint2DDouble position); virtual void MoveNode(Element* parent, wxPoint2DDouble position); - virtual bool NodeContains(wxPoint2DDouble position); - virtual bool SetNodeParent(Element* parent); - virtual wxCursor GetBestPickboxCursor() const; + virtual bool NodeContains(wxPoint2DDouble position); + virtual bool SetNodeParent(Element* parent); + virtual void UpdateNodes(); + virtual wxCursor GetBestPickboxCursor() const { return wxCURSOR_SIZING; } virtual bool AddParent(Element* parent, wxPoint2DDouble position); virtual bool Intersects(wxRect2DDouble rect) const; virtual void MovePickbox(wxPoint2DDouble position); virtual bool PickboxContains(wxPoint2DDouble position); virtual void Rotate() {} - virtual void RotateNode(Element* parent); + 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); + virtual bool GetContextMenu(wxMenu& menu); + virtual void RemoveNode(wxPoint2DDouble point); + virtual void AddNode(wxPoint2DDouble point); -protected: - void UpdateSwitchesPosition(); - double PointToLineDistance(wxPoint2DDouble point, int* segmentNumber = NULL) const; + protected: + void UpdateSwitchesPosition(); + double PointToLineDistance(wxPoint2DDouble point, int* segmentNumber = NULL) const; std::vector<wxPoint2DDouble> m_pointList; bool m_inserted = false; - std::vector<wxPoint2DDouble> m_movePts; + std::vector<wxPoint2DDouble> m_movePts; }; #endif // LINE_H |