104 for(
int i = 0; i < 100; i++ )
108 m_tree.insert( junction );
139 for(
SCH_ITEM* item : m_tree.Overlapping( small_bbox ) )
141 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
151 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
161 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
169 for(
SCH_ITEM* item : m_tree.Overlapping( med_bbox ) )
171 BOOST_CHECK( med_bbox.
Intersects( item->GetBoundingBox() ) );
179 for(
SCH_ITEM* item : m_tree.Overlapping( big_bbox ) )
181 BOOST_CHECK( big_bbox.
Intersects( item->GetBoundingBox() ) );
193 for(
int i = 0; i < 100; i++ )
195 int x_sign = ( i % 2 == 0 ) ? -1 : 1;
196 int y_sign = ( i % 3 == 0 ) ? -1 : 1;
200 m_tree.insert( junction );
231 for(
SCH_ITEM* item : m_tree.Overlapping( small_bbox ) )
233 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
243 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
253 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
BOOST_CHECK_EQUAL(result, "25.4")