Glade Reference
The path class is derived from a shape. A path is represented by a list of vertices, plus a width, style, beginExtent and endExtent. This class is normally created in a cellView using the dbCreatePath() function.
Sets the path width to w.
Gets the path width.
Sets the path style, i.e. the type of the path end. The style can be one of: 0 - truncate, 1 - round, 2 - extend, 4 - varextend, 8 - octagonal. Python global variables TRUNCATE, ROUND, EXTEND, VAREXTEND, OCTAGONAL are defined to these values.
Gets the path style.
Set the path begin extent. For a path style 2 (extend) or 4 (varextend) , this is the begin extent of the path.
Get the path begin extent. For a path style of 2 (extend) this is half the path's width. For a path style 4 (varextend), this is the begin extent of the path.
Set the path end extent. For a path style 2 (extend) or 4 (varextend), this is the end extent of the path.
Get the path end extent. For a path style of 2 (extend) this is half the path's width. For a path style 4 (varextend), this is the end extent of the path.
Get the bounding box of this path.
Set the bounding box of this path. Not useful and will throw an exception if called.
Returns the object type of this path as PATH.
Returns the object name of this path as "PATH".
Returns the number of points of the path.
Returns the point list of this path as a C array of Points.
Returns the Point p at the index into the list of points.
Bias this path by bias, snapping to the grid grid.
Scale this path by scale, snapping to the grid grid.
Get the distance of the nearest segment s of this path to the point p;
Get the distance of the nearest vertex s of this path to the point p;
Get the area of this path.
Get the perimeter of this path.
Transform this path using trans.
Returns true if the Point p is contained in the path or on its edges.
Move this path by distance delta. If opt is true then the database is re-optimised for the new path 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 this path to cellView cv, with offset delta. If layerNum is a positive integer the path will be copied to the new layer number.
Flatten this path into cellView cv with transformation trans.
Stretch segment seg of this path by delta.
Removes colinear points from the path.
Converts this path to a polygon.
Copyright © Peardrop Design 2024.