GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
GmCellMeshGroupSet Class Reference

Cell group set consisting of all the mesh cells. More...

#include <gmCellGroupSet.h>

Inheritance diagram for GmCellMeshGroupSet:
Collaboration diagram for GmCellMeshGroupSet:

Public Member Functions

 GmCellMeshGroupSet (GmCellMesh *mesh)
 Constructor.
 
virtual int numCells () const
 Returns the number of unique elements in the cell group set.
 
virtual GmCellcell (int setIndex) const
 Given an index in the range [0..numCells()-1], returns the respective cell.
 
virtual bool ordered () const
 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
 Returns the number of geometric nodes shared by the group elements.
 
virtual int node (int setIndex) const
 Given an index in the range [0..numNodes()-1], returns the respective mesh node index.
 
virtual void clear ()
 Clear the group set in response to a mesh clear() operation. It will not clear the list of cellGroups.
 
virtual const QList< int > & cellGroups () const
 Returns a list with the cell groups belonging to this group set. Values are the group index in the mesh, ordered by index.
 
virtual GmCellMeshmesh () const
 Returns the mesh owning the cell groups.
 
virtual size_t usedMemory () const
 Returns the approximate memory used internally by the group set object for storing its data. Might be 0 for groups that only reference a mesh or a set of group sets.
 
virtual void applyTransform (std::function< int(int)> &t)
 See comments on the base class. Does nothing. No stored cell ids.
 
- Public Member Functions inherited from GmCellGroupSet
virtual ~GmCellGroupSet ()
 Virtual destructor.
 
QStringList cellGroupNames () const
 Returns the result of cellGroups() converted to group names.
 

Private Attributes

GmCellMesh_mesh
 The associated mesh.
 

Additional Inherited Members

- Static Public Member Functions inherited from GmCellGroupSet
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.
 

Detailed Description

Cell group set consisting of all the mesh cells.

Member Function Documentation

◆ applyTransform()

virtual void GmCellMeshGroupSet::applyTransform ( std::function< int(int)> & t)
inlinevirtual

See comments on the base class. Does nothing. No stored cell ids.

Implements GmCellGroupSet.

◆ cell()

virtual GmCell * GmCellMeshGroupSet::cell ( int setIndex) const
inlinevirtual

Given an index in the range [0..numCells()-1], returns the respective cell.

Implements GmCellGroupSet.

◆ cellGroups()

virtual const QList< int > & GmCellMeshGroupSet::cellGroups ( ) const
inlinevirtual

Returns a list with the cell groups belonging to this group set. Values are the group index in the mesh, ordered by index.

Implements GmCellGroupSet.

◆ clear()

virtual void GmCellMeshGroupSet::clear ( )
inlinevirtual

Clear the group set in response to a mesh clear() operation. It will not clear the list of cellGroups.

Implements GmCellGroupSet.

◆ mesh()

virtual GmCellMesh * GmCellMeshGroupSet::mesh ( ) const
inlinevirtual

Returns the mesh owning the cell groups.

Implements GmCellGroupSet.

◆ node()

virtual int GmCellMeshGroupSet::node ( int setIndex) const
inlinevirtual

Given an index in the range [0..numNodes()-1], returns the respective mesh node index.

Implements GmCellGroupSet.

◆ numCells()

virtual int GmCellMeshGroupSet::numCells ( ) const
inlinevirtual

Returns the number of unique elements in the cell group set.

Implements GmCellGroupSet.

◆ numNodes()

virtual int GmCellMeshGroupSet::numNodes ( ) const
inlinevirtual

Returns the number of geometric nodes shared by the group elements.

Implements GmCellGroupSet.

◆ ordered()

virtual bool GmCellMeshGroupSet::ordered ( ) const
inlinevirtual

Returns true if the the set returned by calls to cell(0) through cell(numCells()-1) is ordered by cell id.

Implements GmCellGroupSet.

◆ usedMemory()

virtual size_t GmCellMeshGroupSet::usedMemory ( ) const
inlinevirtual

Returns the approximate memory used internally by the group set object for storing its data. Might be 0 for groups that only reference a mesh or a set of group sets.

Implements GmCellGroupSet.


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