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.
|
newCellInfo
public 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.Visitor
info
- information about the Cell instance being
enumeratedpublic void exitCell(HierarchyEnumerator.CellInfo info)
HierarchyEnumerator.Visitor
exitCell
in class HierarchyEnumerator.Visitor
info
- information about the Cell instance being
enumeratedpublic boolean visitNodeInst(Nodable no, HierarchyEnumerator.CellInfo info)
HierarchyEnumerator.Visitor
visitNodeInst
in class HierarchyEnumerator.Visitor
no
- the Nodable that HierarchyEnumerator is visiting.