|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.io.output.Output
com.sun.electric.tool.io.output.Geometry
public abstract class Geometry
Base class for writing geometry to a file
Nested Class Summary | |
---|---|
protected class |
Geometry.CellGeom
Class to store polygon geometry of a cell |
protected static class |
Geometry.PolyWithGeom
Class for managing polygons that are associated with geometry. |
class |
Geometry.Visitor
|
Nested classes/interfaces inherited from class com.sun.electric.tool.io.output.Output |
---|
Output.OutputCellInfo, Output.WriteJELIB |
Field Summary | |
---|---|
protected java.util.HashMap<Cell,Geometry.CellGeom> |
cellGeoms
HashMap of all CellGeoms |
protected int |
numCells
number of unique cells to process |
protected int |
numVisited
number of unique cells processed |
protected Cell |
topCell
top-level cell being processed |
Fields inherited from class com.sun.electric.tool.io.output.Output |
---|
dataOutputStream, filePath, printWriter, quiet |
Method Summary | |
---|---|
protected abstract void |
done()
Abstract method called after traversal |
static int |
getMaxHierDepth(Cell cell)
get the max hierarchical depth of the hierarchy |
protected boolean |
includeGeometric()
Overridable method to determine whether or not to include the original Geometric with a Poly |
protected boolean |
mergeGeom(int hierLevelsFromBottom)
Overridable method to determine whether or not to merge geometry |
protected abstract void |
start()
Abstract method called before hierarchy traversal |
boolean |
writeCell(Cell cell,
VarContext context)
Write cell to file |
boolean |
writeCell(Cell cell,
VarContext context,
Geometry.Visitor visitor)
Write cell to file |
protected abstract void |
writeCellGeom(Geometry.CellGeom cellGeom)
Abstract method to write CellGeom to disk |
Methods inherited from class com.sun.electric.tool.io.output.Output |
---|
closeBinaryOutputStream, closeTextOutputStream, emitCopyright, exportCellCommand, getAreaToPrint, openBinaryOutputStream, openTextOutputStream, saveJelib, setContinuationString, setOutputWidth, writeCell, writeLibrary, writePanicSnapshot, writeWidthLimited |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int numVisited
protected int numCells
protected Cell topCell
protected java.util.HashMap<Cell,Geometry.CellGeom> cellGeoms
Method Detail |
---|
public boolean writeCell(Cell cell, VarContext context)
writeCell
in class Output
cell
- the Cell to be written.context
- the VarContext of the cell (for parameter evaluation)
public boolean writeCell(Cell cell, VarContext context, Geometry.Visitor visitor)
protected abstract void start()
protected abstract void done()
protected abstract void writeCellGeom(Geometry.CellGeom cellGeom)
protected boolean mergeGeom(int hierLevelsFromBottom)
protected boolean includeGeometric()
public static int getMaxHierDepth(Cell cell)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |