Glade Reference


viaInst

A viaInst is a reference to a via, in a cellview. viaInsts are like instances but require less memory and have a specific function, i.e. to be instances of vias which again are a type of cellView with a specific function, i.e to hold rectangular shapes of the via. Normally viaInsts are created in a cellView using the dbCreateViaInst() function.

 

int coord = vi.left()

Get the left edge of the viaInst's bounding box

 

int coord = vi.bottom()

Get the bottom edge of the viaInst's bounding box

 

int coord = vi.right()

Get the right edge of the viaInst's bounding box

 

int coord = vi.top()

Get the top edge of the viaInst's bounding box

 

bool  vi.offGrid(int grid)

Checks if a viaInst's origin is on the grid grid, which is in database units.


 vi.orient(db_Orient o) 

Set the viaInst's orientation. db_Orient can be one of: R0, R90, R180, R270, MX, MXR90, MY, MYR90.


 db_Orient  vi.orient () 

Get the viaInst's orientation.

 

vi.origin(Point origin)

Sets the viaInst's origin to the Point origin .
  

int vi.origin()

Get the viaInst's origin.

 

Rect box = vi.bBox()

Get the viaInst's bounding box.

 

db_Type vi.objType()

Returns the objects type as VIAINST

 

char * vi.objName()

Returns the print name i.e. "VIAINST"

 

vi.transform(transform trans)

Transform the instance by the given transform.

 

vi.scale(double scalefactor, double grid)

Scale the instance origin coordinates by scalefactor, snapping to grid.

 

vi.Move(cellView *cv, Point delta, bool opt= 1)

Move the viaInst's origin by delta.  If opt is 1 then the database is re-optimised for the new inst 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.

 

dbObj *obj = vi.Copy(cellView *cv, Point delta)

Copy the viaInst's . cv is the destination cellview, delta is the offset from the current origin.

 

dbObj *obj = vi.Flatten(cellView *cv, transform trans)

Flatten the viaInst's into the cellView cv, with the given transform trans .

 

via *v = vi.getVia()

Gets the via master for this viaInst

 

 

Contents|Index

Copyright © Peardrop Design 2020.