Class Reference cell3d

A cell of the 3d design. More...

Member

string cellName
void deleteSelect()
void deselectAll()
elementList3d* firstElement
void invertSelect()
void meshDeselect()
void meshSelect()
void mirrorSelect(int plane)
void moveSelect(int x, int y,int z)
void rotateSelect(double angle,int x, int y,int z)
void selectAll()
void selectCellref(string cellname)
void selectVisible()

Detailed Description

graph LR la(layout3d)--drawing-->dr(drawingField3d) dr--firstCell-->cl(cellList3d) dr--currentCell-->ce cl--thisCell-->ce(cell3d) cl--nextCell-->cl ce==firstElement==>el(elementList3d) click ce "/layoutscript/api/cell3d" click cl "/layoutscript/api/celllist3d" click el "/layoutscript/api/elementlist3d" click la "/layoutscript/api/layout3d" click dr "/layoutscript/api/drawingfield3d" classDef thisClas fill:#eaf5fc,stroke:#3c7faa,stroke-width:4px; classDef clas fill:#eaf5fc,stroke:#3c7faa,stroke-width:1px; class ce thisClas class cl,la,dr,el clas

A cell3d is one cell of the 3d design, analogous to a 2d cell. The cell you see and edit is layout3d->drawing->currentCell; every cell in the 3d file is also on the linked list that starts at layout3d->drawing->firstCell, a cellList3d you walk with nextCell and thisCell. Inside a cell, firstElement is an elementList3d: follow nextElement and read thisElement for each element3d. selectAll, selectVisible, meshSelect and selectCellref mark elements; deleteSelect, moveSelect, rotateSelect and mirrorSelect then act on that set. cellName is the name of this cell. There are no addBox helpers here: geometry arrives from view3dModule or from mesh members on element3d.

Example:

cell3d *c = layout3d->drawing->currentCell;
if (c != NULL) {
 c->deselectAll();
 c->meshSelect();
 c->moveSelect(0, 0, 1000);
}

Member Function Documentation


string cell3d::cellName

The name of this 3d cell.


void cell3d::deleteSelect()

Deletes every selected element of this cell.


void cell3d::deselectAll()

Clears the selection of every element in this cell.


elementList3d* cell3d::firstElement

Head of the linked list of element3d objects in this cell.


void cell3d::invertSelect()

Selected elements become unselected and the others become selected.


void cell3d::meshDeselect()

Deselects all mesh elements. Cell references are left as they are.


void cell3d::meshSelect()

Selects all mesh elements. Cell references are left as they are.


void cell3d::mirrorSelect(int plane)

Mirrors selected elements through the plane given by plane: 0 is yz (x), 1 is xz (y), 2 is xy (z).


void cell3d::moveSelect(int x, int y,int z)

Moves selected elements by the offsets x, y and z.

Parameter:
x offset in x
y offset in y
z offset in z

void cell3d::rotateSelect(double angle,int x, int y,int z)

Rotates selected elements by angle degrees around the axis through the origin along (x, y, z).

Parameter:
angle rotation in degrees
x x component of the axis
y y component of the axis
z z component of the axis

void cell3d::selectAll()

Selects every element in this cell.


void cell3d::selectCellref(string cellname)

Selects cell references whose referred cell is named cellname.


void cell3d::selectVisible()

Selects every visible element in this cell.