Glade Reference
A lpp object forms a layer-purpose pair. It manages objects in a tree structure for fast spatial searching.
Constructs a lpp object with master cellView cv.
Constructs a lpp object with master cellView cv, with expected size of size.
Sets the layer name of the lpp.
Gets the lpp's layer name.
Sets the purpose name of the lpp.
Gets the lpp's purpose name.
Sets the layer number of the lpp.
Gets the lpp's layer number.
Gets the number of shapes in this lpp.
Get the cellView for this lpp.
Get the bounding box of all shapes in this lpp.
Set the bounding box of the lpp.
Optimise the lpp. Must be carried out after adding objects.
Update the lpp for an object
Gets the size (number of items) of the lpp
Search the lpp for shapes overlapping the search rectangle searchRect. If filterSize is non-zero, only shapes with a width and height greater than filterSize are reported.Note this function creates a new list, and therefore it is better to use the following two functions:
As above, but returns a Python list.
As getOverlaps, but shapes are appended to the existing list.
An iterator to allow traversing the objects in the lpp using Python.
Initialises the dbObj iterator iter for the lpp lp. For example:
iter = objIterator(lpp) while not iter.end() : obj = iter.value() type = obj.objType() print("object type = ", type) iter.next()
Returns the current iterator value.
Advances the iterator to the next dbObj.
<Returns false if there are more objects, else returns true if there are no more.
Copyright © Peardrop Design 2023.