Class Reference elementList

A element of a list of drawing-elements. More...

Member

elementList* nextElement
element* thisElement
elementList* firstOnLayer(int layer)
elementList* nextOnLayer(int layer)

Detailed Description

This class is a list-element for the drawing-elements

Member Function Documentation


elementList* elementList::nextElement

A Pointer to the next drawing-element of the cell is returned.

Example: (loop over all shapes of the cell)

elementList *el=layout->drawing->currentCell->firstElement;
while (el!=NULL) {
   if (el->thisElement!=NULL){
      // e.g. el->thisElement->selectAll();
      // ...
   }
   el=el->nextElement;
}

element* elementList::thisElement

A pointer to a drawing-element.

Obsolete Members


elementList* elementList::firstOnLayer(int layer)

A pointer to the first element with a shape on layer is returned. NULL is returned, if no more layer is on the given layer.


elementList* elementList::nextOnLayer(int layer)

A pointer to the next element with a shape on layer is returned. NULL is returned, if no more element is on the given layer.

Example: (loop over all shapes on layer 5)

elementList *el=layout->drawing->currentCell->firstElement->firstOnLayer(5);
while (el!=NULL) {
   // e.g. el->thisElement->selectAll();
   // ...
   el=el->nextOnLayer(5);
}