102 for(
int i = 0; i < 100; i++ )
106 m_tree.insert( junction );
137 for(
SCH_ITEM* item : m_tree.Overlapping( small_bbox ) )
139 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
149 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
159 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
167 for(
SCH_ITEM* item : m_tree.Overlapping( med_bbox ) )
169 BOOST_CHECK( med_bbox.
Intersects( item->GetBoundingBox() ) );
177 for(
SCH_ITEM* item : m_tree.Overlapping( big_bbox ) )
179 BOOST_CHECK( big_bbox.
Intersects( item->GetBoundingBox() ) );
191 for(
int i = 0; i < 100; i++ )
193 int x_sign = ( i % 2 == 0 ) ? -1 : 1;
194 int y_sign = ( i % 3 == 0 ) ? -1 : 1;
198 m_tree.insert( junction );
229 for(
SCH_ITEM* item : m_tree.Overlapping( small_bbox ) )
231 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
241 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
251 BOOST_CHECK( small_bbox.
Intersects( item->GetBoundingBox() ) );
BOOST_CHECK_EQUAL(result, "25.4")