Glade Reference


vertex class

A vertex is a point. It is derived from a dbObj so it can be selectable; it also refers to a dbObj. Vertices are used when selecting a vertex of e.g. a rectangle or polygon.

vertex::vertex(Point p)

Creates a vertex with coordinate p.

 

vertex::vertex(int x, int y)

Creates a vertex with the specified xy coordinates.

 

db_Type vertex::objType()

Returns the objects type - VERTEX.

 

char * vertex::objName()

Returns the print name i.e. "VERTEX"

 

operator ==

Returns true if one vertex is equal to another by coordinates.

 

operator !=

Returns true if one vertex is not equal to another by coordinates.

 

vertex::SetObj(dbObj *obj)

Sets the dbObj associated with this vertex.

 

dbObj * vertex::GetObj()

Gets the dbObj associated with this vertex.

 

Rect vertex::bBox()

Returns a fake bounding box 10 dbu larger than the vertex itself.

 

vertex::transform(transform trans)

Transforms this vertex according to trans.

 

vertex::Move(cellView *cv, Point delta, bool opt = true)

Moves this vertex by delta. If opt is true then the database is re-optimised for the new vertex 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 * vertex::Copy(cellView *from, Point delta)

Copies the vertex. cv is the cellView containing the vertex, delta is the XY coordinate to move the vertex by during the copy.

 

int32_t vertex::x()

The x coordinate of the vertex.

 

int32_t vertex::y()

The y coordinate of the vertex.

 

vert.setX(int32_t x)

Set the X coordinate of the vertex.

 

vertex::setY(int32_t y)

Set the Y coordinate of the vertex.

 

 

Contents|Index

Copyright © Peardrop Design 2024.