Glade Reference
A HSeg represents a wiring segment for place&route data. It is a 2 vertex horizontal path. A HSeg is normally created by the cellView::dbCreateHSeg() function.
Sets the vertices of the HSeg
Gets the leftmost X coordinate of a HSeg.
Gets the rightmost X coordinate of a HSeg.
Gets the lowest Y coordinate of a HSeg.
Gets the highest Y coordinate of a HSeg.
Gets the HSeg width.
Sets the HSeg 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 HSeg style.
Sets the HSeg specialNet status
Returns true is the HSeg is a specialNet.
Get the bounding box of this HSeg.
Returns the object type of this HSeg as HSEG.
Returns the object name of this HSeg as "HSEG".
Returns the number of points of the HSeg (2).
Returns the point list of this HSeg as a C array of Points.
Get the area of this HSeg.
Get the perimeter of this HSeg.
Returns the origin point of a HSeg
Sets the origin of a HSeg.
Returns the extent, i.e. the length of the HSeg.
Sets the extent of the HSeg.
Gets the first vertex of this HSeg
Gets the last vertex of this HSeg.
Returns true if the Point p is contained in the HSeg or on its edges.
Move this HSeg by distance delta. If opt is true then the database is re-optimised for the new HSeg 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 HSeg to cellView
dest, with offset delta. If layer is a positive integer
the HSeg will be copied to the new layer number.
Flatten this HSeg into cellView dest with transformation trans.
Gets the nearest segment edge to the HSeg from the Point p and returns the distance. If centreline is true, the centre line of the HSeg is considered. If outLine is true, the outline edges of the HSeg are considered.
Gets the nearest vertex vert to the HSeg from the Point p and returns the distance.
Returns the HSeg net name as a string.
Returns true if the HSeg is offgrid.
Copyright © Peardrop Design 2024.