GemaCoreLib
The GeMA Core library
Public Member Functions | Static Public Member Functions | List of all members
GmCellGroupSet Class Referenceabstract

Interface for helping managing mesh cell groups and returning the elements in their union. More...

#include <gmCellGroupSet.h>

Inheritance diagram for GmCellGroupSet:
Inheritance graph
[legend]

Public Member Functions

virtual int numCells () const =0
 Returns the number of unique elements in the cell group set.
 
virtual GmCellcell (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 GmCellMeshmesh () 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...
 

Detailed Description

Interface for helping managing mesh cell groups and returning the elements in their union.

Member Function Documentation

◆ cellGroupIds()

bool GmCellGroupSet::cellGroupIds ( const GmCellMesh mesh,
const QStringList groupNames,
QList< int > &  idList,
QString err 
)
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.


The documentation for this class was generated from the following files: