24 #ifndef _GEMA_FILE_NODE_RENUMBERING_H_ 25 #define _GEMA_FILE_NODE_RENUMBERING_H_ 73 return _map ? (
_map[node] != -1) :
true;
84 int map(
int node)
const const GmAffectedNodes mode() const
Returns the associated node mode.
Definition: gmFileNodeRenumbering.h:54
bool active(int node) const
Returns true if the node belongs to an active cell, false if not. The node index should be a linear n...
Definition: gmFileNodeRenumbering.h:70
Interface for helping managing mesh cell groups and returning the elements in their union.
Definition: gmCellGroupSet.h:34
int _nActiveNodes
The total number of active nodes in the mesh. Equals _nMeshNodes before filter()
Definition: gmFileNodeRenumbering.h:101
GmAffectedNodes _mode
Which kind of nodes are we dealing with?
Definition: gmFileNodeRenumbering.h:99
bool filter(bool active, const GmCellGroupSet *group, const GmFileFormat *fileFormat)
Initializes the node mapping structure to enable saving node data without nodes that are used only by...
Definition: gmFileNodeRenumbering.cpp:73
const GmCellMesh * _mesh
The mesh.
Definition: gmFileNodeRenumbering.h:98
GmAffectedNodes
Affected node types for node based values (GM_NODE_COORDINATES, GM_NODE_ATTRIBUTE or GM_NODE_STATEVAR...
Definition: gmValueInfo.h:91
Declaration of the GmValueInfo class.
int numActiveGhostNodes() const
Returns the number of active nodes (like numActiveNodes()) that are ghost nodes.
Definition: gmFileNodeRenumbering.h:64
Specifies that this value exists over mesh and ghost nodes.
Definition: gmValueInfo.h:95
static bool isGhostNode(int nodeIndex)
Returns true if the given index is a ghost node index, false if not.
Definition: gmMesh.h:109
Specifies that this value exists over common geometry mesh nodes only.
Definition: gmValueInfo.h:93
int map(int node) const
Returns the mapping between a node number and its position in the renumbered node set....
Definition: gmFileNodeRenumbering.h:84
int _nActiveGhostNodes
The number of nodes in _nActiveNodes that are ghost nodes.
Definition: gmFileNodeRenumbering.h:102
static int clearGhostFlag(int nodeIndex)
Returns the given index with the ghost node bit cleared.
Definition: gmMesh.h:115
Base interface class for CellMesh type plugins.
Definition: gmCellMesh.h:39
~GmFileNodeRenumbering()
Destructor.
Definition: gmFileNodeRenumbering.h:48
int numActiveNodes() const
Returns the number of active nodes in the mesh: the number of nodes belonging to an unfiltered cell a...
Definition: gmFileNodeRenumbering.h:61
Declaration of the GmCellMesh interface class.
int _nMeshNodes
The total number of nodes in the mesh, respecting mode.
Definition: gmFileNodeRenumbering.h:100
int * _map
The mapping between node indices. Size equal to _nMeshNodes. -1 if an index is not active....
Definition: gmFileNodeRenumbering.h:103
const GmCellMesh * mesh() const
Returns the associated mesh.
Definition: gmFileNodeRenumbering.h:51
virtual int numNodes() const =0
Returns the number of nodes in the mesh.
GmFileNodeRenumbering(const GmCellMesh *mesh, GmAffectedNodes mode=GM_GEOMETRY_NODE)
Constructor. Gets as parameter the mesh and the definition of which types of nodes should be consider...
Definition: gmFileNodeRenumbering.cpp:38
An auxilliary class for renumbering nodes when filtering cells from an output mesh....
Definition: gmFileNodeRenumbering.h:42