Package net.sf.jsi.rtree

Examples of net.sf.jsi.rtree.RTree.checkConsistency()


    for (int move = 0; move < numMoves; move++) {
      for (int i = 0; i < numRects; i++) {
        rtree.delete(rects[i], i);
        rects[i].set(nextRect());
        rtree.add(rects[i], i);
        assertTrue(rtree.checkConsistency());
      }
    }
  }
}
View Full Code Here


    for (int i = 0; i <= numRects; i+=100) {
      // add some entries
      for (int j = 0; j < i; j++) {
        rtree.add(rects[j], j);
      }
      assertTrue(rtree.checkConsistency());
     
      // now delete them all
      for (int j = 0; j < i; j++) {
        rtree.delete(rects[j], j);   
      }
View Full Code Here

      // now delete them all
      for (int j = 0; j < i; j++) {
        rtree.delete(rects[j], j);   
      }
      assertTrue(rtree.size() == 0);
      assertTrue(rtree.checkConsistency());
     
      // check that we can make queries on an empty rtree without error.
      Rectangle testRect = new Rectangle(1,2,3,4);
      Point testPoint = new Point(1,2);
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.