X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f93ce4dadc287261babbd21a29aae59a8efbed2b..31811e1acaf3dd16403b94f5ff93c41e4e4ca9bb:/utils/ogl/src/ogldiag.h diff --git a/utils/ogl/src/ogldiag.h b/utils/ogl/src/ogldiag.h index 485857e440..e06e1248f4 100644 --- a/utils/ogl/src/ogldiag.h +++ b/utils/ogl/src/ogldiag.h @@ -93,5 +93,32 @@ protected: wxList* m_shapeList; }; +class wxLineCrossing: public wxObject +{ +public: + wxLineCrossing() { m_lineShape1 = NULL; m_lineShape2 = NULL; } + wxRealPoint m_pt1; // First line + wxRealPoint m_pt2; + wxRealPoint m_pt3; // Second line + wxRealPoint m_pt4; + wxRealPoint m_intersect; + wxLineShape* m_lineShape1; + wxLineShape* m_lineShape2; +}; + +class wxLineCrossings: public wxObject +{ +public: + wxLineCrossings(); + ~wxLineCrossings(); + + void FindCrossings(wxDiagram& diagram); + void DrawCrossings(wxDiagram& diagram, wxDC& dc); + void ClearCrossings(); + +public: + wxList m_crossings; +}; + #endif // _OGL_OGLDIAG_H_