Glade Reference


arc class

An arc is a portion of an ellipse and is derived from an ellipse. It is normally created by the cellView::dbCreateArc() function.

 

arc::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. A positive angle is anticlockwise from zero.

 

double arc::startAngle()

Gets the arc start angle.

 

arc::setSpanAngle(double angle)

Sets the arc span angle in degrees. The span is the angle from the start to end point of the arc. A positive angle is anticlockwise from the start.

 

double arc::spanAngle()

Gets the arc span angle.

 

dbtype_t arc::objType()

Gets the arc object type, ARC.

 

const char * arc::objName()

Gets the arc object name as “ARC”.

bool arc::offGrid(int grid)

Returns true if the radius of the arc is offgrid.

 

arc::transform(transform &trans)

Transforms this arc by trans.

 

Rect arc::bBox()

Returns the true bounding box of the arc.

 

arc::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 * arc::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> * arc::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.

 

 

Contents|Index

Copyright © Peardrop Design 2024.