24 #ifndef _GEMA_PLUGIN_MESH_DATA_H_ 25 #define _GEMA_PLUGIN_MESH_DATA_H_ 33 #include <QVarLengthArray> 42 template <
template <
class>
class Vector>
53 virtual bool setCoordinateDimension(
int ncoord) {
return ncoord >= 1 && ncoord <= 3; }
55 virtual void clear(
GmMesh* mesh);
56 virtual void releaseMemory();
59 virtual int addNewNodes (
GmMesh* mesh,
int numAddedNodes) = 0;
60 virtual int numNodes()
const = 0;
63 int addNewGhostNodes (
GmMesh* mesh,
int numAddedNodes);
65 bool ghostEnabled() {
return _ghostEnabled; }
66 void setGhostEnabled(
bool state) { _ghostEnabled = state; }
67 int numGhostNodes()
const {
return _numGhostNodes; }
69 virtual size_t nodeSetsMemory()
const;
74 _ghostCoordinates[(nodeIndex*_coordInfo->size()) + coordId] = coordVal;
84 virtual bool addStateGeometryData(
GmStateDump* state,
int groupId);
86 virtual bool fillDumpControlMapData (
GmMesh* mesh, QVariantMap* map,
const GmLogCategory& logger);
87 virtual bool dumpControlMapDataLoaded(
GmMesh* mesh, QVariantMap* map,
const GmLogCategory& logger);
111 void releaseGhostNodes();
int _numGhostNodes
The number of mesh ghost nodes.
Definition: gmpMeshData.h:93
virtual ~GmpMeshData()
Virtual destructor.
Definition: gmpMeshData.h:51
Vector< U > VectorType
A type identifying which vector type we are using.
Definition: gmpMeshData.h:46
void setGhostCoordinatesData(int nodeIndex, int coordId, double coordVal)
Updates a ghost node cooridnate.
Definition: gmpMeshData.h:72
Auxiliar structure used to share data between GmpXxxMeshBase and GmpMeshLoader.
Definition: gmpMeshData.h:43
GmValueInfo * _coordInfo
Information about node coordinates.
Definition: gmpMeshData.h:90
Declaration of usefull configuration definitions for the plugin library.
GmStateDump * _state
Definition: gmpMeshData.h:108
bool _ghostEnabled
Are ghost nodes enabled for this mesh?
Definition: gmpMeshData.h:92
QMap< QString, GmNodeSet * > _nodeSets
A map with the definition of each node set associated with the mesh. Map entries are instances of the...
Definition: gmpMeshData.h:101
Vector< double > _ghostCoordinates
Coordinate vector for ghost nodes. Size = _coordInfo->size() * _numGhostNodes. Values stored by node.
Definition: gmpMeshData.h:96