![]() |
GemaCoreLib
The GeMA Core library
|
An auxilliary class for emiting extra mesh nodes needed by standard GeMA element transformations that can be used while exporting data. More...
#include <gmFileExtraNodes.h>
Public Member Functions | |
GmFileExtraNodes (const GmFileFormat *fileFormat, const GmCellMesh *mesh, bool activeOnly, const GmCellGroupSet *group, int numMeshNodes) | |
Constructor. Gets as parameter the file format object used to define which element types need transformation along with the target mesh, the definition of whether inactive cells should be considered or not, the definition of an optional cell group that contains the cells to be considered and the number of "standard" exported mesh nodes. More... | |
int | numNodes () const |
Returns the number of extra nodes. | |
const QPair< int, int > & | edgeNodes (int i) const |
Returns the mesh node indices for the endpoints of the edge where the i'th extra node was created. | |
void | resetNext () |
Resets the value that will be returned by nextNodeIndex() to the first extra node index. | |
int | nextNodeIndex () |
Each call returns the next extra node index. The series starts with the exported index for the first extra node and can be reset by a call to resetNext() | |
int | lastNodeIndex () const |
Returns the index of the last valid extra node index. | |
Static Public Member Functions | |
static bool | transformationExists (GmCellType cellType) |
Returns true if this class implements a standard transformation for the given type. | |
Private Attributes | |
QVector< QPair< int, int > > | _extraNodes |
int | _firstIndex |
The exported index for the first extra node. | |
int | _currentIndex |
The "current" extra node index returned by nextNodeIndex() | |
An auxilliary class for emiting extra mesh nodes needed by standard GeMA element transformations that can be used while exporting data.
Available transformations are:
GmFileExtraNodes::GmFileExtraNodes | ( | const GmFileFormat * | fileFormat, |
const GmCellMesh * | mesh, | ||
bool | activeOnly, | ||
const GmCellGroupSet * | group, | ||
int | numMeshNodes | ||
) |
Constructor. Gets as parameter the file format object used to define which element types need transformation along with the target mesh, the definition of whether inactive cells should be considered or not, the definition of an optional cell group that contains the cells to be considered and the number of "standard" exported mesh nodes.
The number of standard exported mesh nodes is not obtained from the mesh since it also depends on a set of other configurations, such as if unused nodes (due to not exporting inactive cells) are exported or not and if ghost nodes are exported or not.