Class Reference cellList3d

a list element for the linked list of all cells in the 3d view. More...

Member

cellList3d* nextCell
cell3d* thisCell

Detailed Description

graph LR la(layout3d)--drawing-->dr(drawingField3d) dr--firstCell-->cl(cellList3d) cl==thisCell==>ce(cell3d) cl==nextCell==>cl click ce "/layoutscript/api/cell3d" click cl "/layoutscript/api/celllist3d" 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 cl thisClas class la,dr,ce clas

A cellList3d node is one step in the linked list of all 3d cells of a drawingField3d. thisCell points to the cell3d at this node; nextCell points to the following node, or NULL at the end of the list. The head of the list is layout3d->drawing->firstCell; the cell on screen is layout3d->drawing->currentCell. Walk the list when you need every 3d cell, not only the one in view. The example below visits each cell and skips empty thisCell pointers.

Example:

cellList3d *cl = layout3d->drawing->firstCell;
while (cl != NULL) {
 if (cl->thisCell != NULL) {
 // e.g. debug(cl->thisCell->cellName);
 }
 cl = cl->nextCell;
}

Member Function Documentation


cellList3d* cellList3d::nextCell

The next node in the list, or NULL after the last 3d cell.


cell3d* cellList3d::thisCell

The cell3d stored at this node.