![]() |
GemaCoreLib
The GeMA Core library
|
Interface for helping managing mesh cell groups and returning the elements in their union. More...
#include <gmCellGroupSet.h>
Public Member Functions | |
virtual int | numCells () const =0 |
Returns the number of unique elements in the cell group set. | |
virtual GmCell * | cell (int setIndex) const =0 |
Given an index in the range [0..numCells()-1], returns the respective cell. | |
virtual bool | ordered () const =0 |
Returns true if the the set returned by calls to cell(0) through cell(numCells()-1) is ordered by cell id. | |
virtual int | numNodes () const =0 |
Returns the number of nodes shared by the group elements. | |
virtual int | node (int setIndex) const =0 |
Given an index in the range [0..numNodes()-1], returns the respective mesh node index. | |
virtual void | clear ()=0 |
Clear the group set in response to a mesh clear() opeartion. It will not clear the list of cellGroups. | |
virtual const QList< int > & | cellGroups () const =0 |
Returns a list with the cell groups belonging to this group set. Values are the group index in the mesh, ordered by index. | |
QStringList | cellGroupNames () const |
Returns the result of cellGroups() converted to group names. | |
virtual GmCellMesh * | mesh () const =0 |
Returns the mesh owning the cell groups. | |
Static Public Member Functions | |
static bool | cellGroupIds (const GmCellMesh *mesh, const QStringList &groupNames, QList< int > &idList, QString &err) |
Given a set of cell group names, creates a set of group ids, filling idList. More... | |
Interface for helping managing mesh cell groups and returning the elements in their union.
|
static |
Given a set of cell group names, creates a set of group ids, filling idList.
If a group name does not belong to the mesh, the function returns false and fills err.
If the list includes more than one copy of a group name, it will be included only once in the result list.