Class to construct a list of elements having some common properties. More...
Public Member Functions | |
ElementList (Mesh &ms) | |
Constructor using a Mesh instance. | |
~ElementList () | |
Destructor. | |
void | selectCode (int code) |
Select elements having a given code. | |
void | unselectCode (int code) |
Unselect elements having a given code. More... | |
void | selectLevel (int level) |
Select elements having a given level. More... | |
size_t | getNbElements () const |
Return number of selected elements. | |
void | top () |
Reset list of elements at its top position (Non constant version) | |
void | top () const |
Reset list of elements at its top position (Constant version) | |
Element * | get () |
Return pointer to current element and move to next one (Non constant version) | |
Element * | get () const |
Return pointer to current element and move to next one (Constant version) | |
Class to construct a list of elements having some common properties.
This class enables choosing multiple selection criteria by using function select...
However, the intersection of these properties must be empty.
void selectLevel | ( | int | level | ) |
Select elements having a given level.
[in] | level | Level of elements to select |
Elements having a given level (for mesh adaption) are selected in a list
void unselectCode | ( | int | code | ) |
Unselect elements having a given code.
[in] | code | Code of elements to exclude |