From 122d124108384bb4579b6d96956b931d7221d3c1 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 8 Sep 2016 18:54:52 -0300 Subject: Fit implemented --- Project/Line.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Project/Line.h') diff --git a/Project/Line.h b/Project/Line.h index d2b3547..edf4d07 100644 --- a/Project/Line.h +++ b/Project/Line.h @@ -3,6 +3,8 @@ #include "Branch.h" +#include + class Line : public Branch { public: @@ -22,6 +24,7 @@ class Line : public Branch virtual bool GetContextMenu(wxMenu& menu); virtual void RemoveNode(wxPoint2DDouble point); virtual void AddNode(wxPoint2DDouble point); + virtual void CalculateBoundaries(wxPoint2DDouble& leftUp, wxPoint2DDouble& rightBottom) const; protected: double PointToLineDistance(wxPoint2DDouble point, int* segmentNumber = NULL) const; -- cgit