public static class RTNode.Search extends java.lang.Object implements java.util.Iterator<RTBounds>
For example, here is the code to search cell "myCell" in the area "bounds" (in database coordinates):
for(RTNode.Search sea = new RTNode.Search(bounds, cell); sea.hasNext(); ) { Geometric geom = (Geometric)sea.next(); if (geom instanceof NodeInst) { NodeInst ni = (NodeInst)geom; // process NodeInst ni in the selected area } else { ArcInst ai = (ArcInst)geom; // process ArcInst ai in the selected area } }
Constructor and Description |
---|
Search(java.awt.geom.Rectangle2D bounds,
RTNode root,
boolean includeEdges) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
RTBounds |
next() |
void |
remove() |
public Search(java.awt.geom.Rectangle2D bounds, RTNode root, boolean includeEdges)