public class GeometrySearch extends HierarchyEnumerator.Visitor
| Modifier and Type | Class and Description |
|---|---|
static class |
GeometrySearch.GeometrySearchResult
Class that holds results of the search (a packaged Geometric and VarContext).
|
| Constructor and Description |
|---|
GeometrySearch(LayerVisibility lv) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enterCell(HierarchyEnumerator.CellInfo info)
Enumerator class
|
void |
exitCell(HierarchyEnumerator.CellInfo info)
The HierarchyEnumerator has finished enumerating the
contents of the current Cell instance.
|
int |
getCellsProcessed() |
java.util.List<GeometrySearch.GeometrySearchResult> |
searchGeometries(Cell cell,
EPoint point,
boolean visibleObjectsOnly)
Find a Primitive Node or Arc at a point in a cell.
|
boolean |
visitNodeInst(Nodable no,
HierarchyEnumerator.CellInfo info)
The HierarchyEnumerator is visiting Nodable ni.
|
newCellInfopublic GeometrySearch(LayerVisibility lv)
public java.util.List<GeometrySearch.GeometrySearchResult> searchGeometries(Cell cell, EPoint point, boolean visibleObjectsOnly)
cell - the cell in which the point residespoint - a point to search undervisibleObjectsOnly - true to consider only Geometries that are visiblepublic int getCellsProcessed()
public boolean enterCell(HierarchyEnumerator.CellInfo info)
enterCell in class HierarchyEnumerator.Visitorinfo - information about the Cell instance being
enumeratedpublic void exitCell(HierarchyEnumerator.CellInfo info)
HierarchyEnumerator.VisitorexitCell in class HierarchyEnumerator.Visitorinfo - information about the Cell instance being
enumeratedpublic boolean visitNodeInst(Nodable no, HierarchyEnumerator.CellInfo info)
HierarchyEnumerator.VisitorvisitNodeInst in class HierarchyEnumerator.Visitorno - the Nodable that HierarchyEnumerator is visiting.