Glade Reference
An array is a reference to an array of cellViews, in another cellView. Arrays correspond to GDS2 AREFs. Arrays are created using the dbCreateArray cellView function. An array is derived from the inst class.
a.numRows(int rows)
Set the number of rows of this array.
int rows = a.rows()
Get the number of rows for this array.
a.numCols(int cols)
Set the number of columns for this array.
int cols = a.cols()
Get the number of columns for this array.
a.rowSpacing(int spacing)
Set the row spacing. This can be positive or negative.
int spacing = a.rowSpacing()
Get the row spacing.
a.colSpacing(int spacing)
set the column spacing for this array. This can be positive or negative.
int spacing = a.colSpacing()
Get the column spacing.
Get the left edge of the array's bounding box. Note the bounding box of an array encloses all cells in the array, and depends on the origin, rotation and magnification, if any.
Get the bottom edge of the array's bounding box
Get the right edge of the array's bounding box
Get the top edge of the array's bounding box
bool a.offGrid(int grid)
Checks if an array origin is on the grid grid, which is in database units.
a.orient(orient_t orient)
Set the array orientation. orient can be one of: R0, R90, R180, R270, MX, MXR90, MY, MYR90.
orient_t orient = a.orient ()
Get the array orientation.
a.bound(bool b)
Set the array binding. This should probably not be set by the user.
bool a.bound()
Get the instance binding status. An array is bound if it references a valid master.
Get the array magnification. Magnifications other than 1.0 are supported, but their use is deprecated.
Rect box = a.bBox()
Get the array's bounding box.
Get the array's lib name.
library *lib = a.lib()
Get the array's library.
Get the array's master cell name.
a.cellName(const char *s)
Set the array master's cellName.
Get the array's view name.
a.viewName(const char *s)
Set the array master's viewName.
a.instName(cellView *cv, const char *instName)
Set the array's instName. cv is the cellView containing the instance.
char * a.instName()
Get the array's instName.
Get the cellview of the array's master.
a.setMaster(cellView *cv)
Set the array's master cellView.
Get the origin of the array. Note that an array's origin does not have to be e.g. the lower left of its bounding box - it can be anywhere.
Set the origin of the array.
Get the array's bounding box.
db_Type a.objType()
Returns the objects type as ARRAY
const char * a.objName()
Returns the print name i.e. "ARRAY"
int a.getNearestEdge(Point &p, segment &edge)
Get the nearest edge of this object to a Point p.
Rect boundary = a.getBoundary()
Returns the boundary shape rectangle (e.g. for a symbol or abstract view) if it exists; if not the master's bounding box.
Transform the array by the given transform trans.
Scale the array origin coordinates by scalefactor, snapping to grid.
Move the array origin by delta. If opt is true then the database is re-optimised for the new array position. If there are a lot of objects to move it makes sense to turn this off and instead use the cellView update() function after moving them all.
Copy the array. cv is the destination cellview, delta is the offset from the current origin.
Flatten the array into the cellView cv, with the given transform trans.
instPin &ip = a.dbCreateInstPin(net *n, const char *name)
Create an instance pin on this array for the net n and pin name name .
Delete the instPin ip from this array.
Find the inst pin with name name on this array. Returns null if not found.
Get a list of all instPins for this array.
Get the number of instPins for this array.
Copyright © Peardrop Design 2020.