Class Reference elementList3d

A element of a list of 3d drawing elements. More...

Member

elementList3d* nextElement
element3d* thisElement

Detailed Description

graph LR ce(cell3d)--firstElement-->el(elementList3d) el==thisElement==>e(element3d) el==nextElement==>el click ce "/layoutscript/api/cell3d" click el "/layoutscript/api/elementlist3d" click e "/layoutscript/api/element3d" classDef thisClas fill:#eaf5fc,stroke:#3c7faa,stroke-width:4px; classDef clas fill:#eaf5fc,stroke:#3c7faa,stroke-width:1px; class el thisClas class ce,e clas

An elementList3d node is one step in the linked list of 3d objects inside a cell3d. thisElement is the element3d at this node; nextElement is the following node, or NULL at the end of the list. The head of the list is cell3d->firstElement. Always test both the node and thisElement against NULL before you call isMesh or change selection. The example below selects every mesh of the current 3d cell.

Example:

elementList3d *el = layout3d->drawing->currentCell->firstElement;
while (el != NULL) {
 if (el->thisElement != NULL) {
 if (el->thisElement->isMesh()) {
 el->thisElement->selectAll();
 }
 }
 el = el->nextElement;
}

Member Function Documentation


elementList3d* elementList3d::nextElement

The next node in the list, or NULL after the last element3d.


element3d* elementList3d::thisElement

The element3d stored at this node.