1 // File: LineConn2d_BoxTree.cpp
2 // Created: 12.08.05 15:19:55
3 // Author: Alexander GRIGORIEV
4 // Copyright: Open Cascade 2005
7 #include <LineConn2dAfx.h>
9 #include <LineConn2d_BoxTree.h>
10 #include <LineConn2d_Segment.h>
12 //=======================================================================
13 //function : LineConn2d_BoxTreeSelector
14 //purpose : Constructor
15 //=======================================================================
17 LineConn2d_BoxTreeSelector::LineConn2d_BoxTreeSelector
18 (const LineConn2d_Segment& theSeg)
20 myBox.Add (theSeg.Origin());
21 myBox.Add (theSeg.Extremity());
25 //=======================================================================
28 //=======================================================================
30 Standard_Boolean LineConn2d_BoxTreeSelector::Accept
31 (const LineConn2d_Object * const& theObj)
33 myList.Append (theObj);
37 //=======================================================================
40 //=======================================================================
42 Standard_Boolean LineConn2d_BoxTreeSelector::Reject
43 (const LineConn2d_Box& theBox) const
45 return theBox.IsOut (myBox);