public class RTreeIntersectionTester extends Objectimplements RectangleIntersectionTester
RectangleIntersectionTester based on an
RTree.
| Constructor and Description |
|---|
RTreeIntersectionTester()
Create an intersection tester with an internal
RTree that is created using the
RTree constructor with arguments 1 and 10 for min and max nodes.
|
RTreeIntersectionTester(int minNodeEntries, int maxNodeEntries)
Create an intersection tester with an internal
RTree that is created using the
RTree constructor with the specified values for min and max nodes.
|
RTreeIntersectionTester(RTree
Create an intersection tester using the the specified
RTree for storing the covered regions.
|
public RTreeIntersectionTester()
RTree that is created using the
RTree.RTree(int, int) constructor with arguments 1 and 10 for min and max nodes.
public RTreeIntersectionTester(int minNodeEntries,
int maxNodeEntries)
RTree that is created using the
RTree.RTree(int, int) constructor with the specified values for min and max nodes.
public RTreeIntersectionTester(RTreetree)
RTree for storing the covered regions. This will traverse all entries stored in the specified tree initially to determine the highest id already used.
tree - the rectangle tree to store covered regions in
public void add(Rectangler, boolean clone)
RectangleIntersectionTester
RectangleIntersectionTester.isFree(Rectangle) that intersect the specified rectangle will return false.
add in interface
RectangleIntersectionTester
r - the region to mark as covered
clone - whether the argument can be stored or it should be cloned to a new object (depends on whether you're reusing the same object on your end)
public boolean isFree(Rectanglerectangle)
RectangleIntersectionTester
RectangleIntersectionTester.add(Rectangle, boolean) before.
isFree in interface
RectangleIntersectionTester
rectangle - the region to test for