Glade Reference
The line class is derived from a shape. A line can be considered a zero width path, or wire. This class is normally created in a cellView using the dbCreateLine() function.
Creates a new line object.
Get the bounding box of this line. This is the convex hull of the points in the line.
Set the bounding box of this line. Not useful and will throw an exception if called.
Returns the object type of this line as LINE.
Returns the object name of this line as "LINE".
Returns the number of points of the line.
Returns the point list of this line as a C array of Points.
Returns the Point p at the index into the list of points.
Adds a Point to the end of this line. Returns true is sucessful.
Deletes the vertex given by index for this line. Returns true is sucessful.
Sets the vertex index of the line to Point p.
Sets the vertex index of the line to the point given by x, y.
Get the distance of the nearest segment s of this line to the point p;
Get the distance of the nearest vertex s of this line to the point p;
Get the area of this line.
Get the perimeter of this line.
Get the length of this line.
Transform this line using trans.
Returns true if the point p is on the line. If includeEnds is true, this includes the line start and end point.
Returns true if the line crosses (intersects) a rectangle r.
Move this line by distance delta.If opt is true then the database is re-optimised for the new line 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 line to cellView cv, with offset delta. If layerNum is non negative the line will be copied to the new layer number.
Flatten this line into cellView cv with transformation trans.
Stretch a segment seg of this line by delta.
Copyright © Peardrop Design 2024.