A element of a list of schematic-elements. More...
| sElementList* | nextElement |
| sElement* | thisElement |
sElementList is one node in the linked list of schematic elements. thisElement points to an sElement; nextElement points to the next node. The head of the list is firstElement on a sheet or on a symbol. A typical loop starts at that head and walks until nextElement is NULL. Always test thisElement against NULL before you call isDevice or read parameters. You do not construct list nodes; adding or deleting an element on the sheet updates the list.
Example:
sElementList *el = schematic->drawing->currentSheet->firstElement;
while (el != NULL) {
if (el->thisElement != NULL) {
if (el->thisElement->isWire()) {
pointArray p = el->thisElement->getPoints();
}
}
el = el->nextElement;
}
Pointer to the next node in the list, or NULL at the end.
Pointer to the sElement stored in this node.