Glade Reference
An arc is a portion of an ellipse and is derived from an ellipse. It is normally created by the cellView::dbCreateArc() function.
a.setStartAngle(double angle)
Sets the arc start angle in degrees. Zero degrees is at the 3 o’clock position with respect to the centre of the arc.
double angle = a.startAngle()
Gets the arc start angle.
a.setSpanAngle(double angle)
Sets the arc span angle in degrees. The span is the angle from the start to end point of the arc.
double angle = a.spanAngle()
Gets the arc span angle.
dbtype_t_t type = a.objType()
Gets the arc object type, ARC.
char *name = a.objName()
Gets the arc object name as “ARC”.
Bool ok = a.offGrid(int grid)
Returns True if the radius of the arc is offgrid.
a.transform(transform trans)
Transforms this arc by trans.
a.Move(cellView dest, Point delta, bool opt=True)
Move the arc origin by delta in the cellView given by dest. 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.
dbObj obj = a.Copy(cellView dest, Point delta, int layer=-1)
Copy the arc. dest is the destination cellView, delta is the offset from the current origin. If layer is non-negative, the arc is copied to the layer number.
dbObjList<dbObj> objs = a.Flatten(cellView dest, transform trans, bool hier=True)
Flatten the arc into the cellView dest, with the given transform trans, and return a list of the flattened objects.
Copyright © Peardrop Design 2020.