106 for(
int i = 0; i < 100; i++ )
110 m_tree.insert( junction );
141 for(
SCH_ITEM* item : m_tree.Overlapping( small_bbox ) )
143 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
153 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
163 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
171 for(
SCH_ITEM* item : m_tree.Overlapping( med_bbox ) )
173 BOOST_CHECK( med_bbox.
Intersects( item->GetBoundingBox() ) );
181 for(
SCH_ITEM* item : m_tree.Overlapping( big_bbox ) )
183 BOOST_CHECK( big_bbox.
Intersects( item->GetBoundingBox() ) );
195 for(
int i = 0; i < 100; i++ )
197 int x_sign = ( i % 2 == 0 ) ? -1 : 1;
198 int y_sign = ( i % 3 == 0 ) ? -1 : 1;
202 m_tree.insert( junction );
233 for(
SCH_ITEM* item : m_tree.Overlapping( small_bbox ) )
235 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
245 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
255 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
BOOST_CHECK_EQUAL(result, "25.4")