24 #ifndef _GEMA_PLUGIN_MESH_LOADER_H_ 25 #define _GEMA_PLUGIN_MESH_LOADER_H_ 45 template <
template <
class>
class>
struct GmpMeshData;
53 template <
template <
class>
class Vector>
66 bool loadCoordData (
LuaTable& table);
81 int parseIntegrationRuleInfo(
QVariant v,
int* irType,
int* r1,
int* r2,
int* r3);
94 : _v(v), _field(f), _size(s), _type(t), _next(1), _nextt(1) { assert(s >= 0 && t >= 0 && t <= 3); }
97 DataIt tableSize(
LuaEnv* env,
const QVariant& v,
const char* field);
99 int itable (
LuaEnv* env, DataIt& it);
101 void cleanup(
GmMesh* mesh);
const QVariant & _v
The data source. Either a LuaTable or a LuaFunction object, held externally.
Definition: gmpMeshLoader.h:86
const char * _field
The field name used on error messages.
Definition: gmpMeshLoader.h:87
GmpMeshData< Vector > * _nd
The node data to be filled.
Definition: gmpMeshLoader.h:110
GmCell *(* GmpMeshLoaderCellAllocator)(GmCellMesh *mesh, int meshId, GmCellType type, int hindex, int id, int offset)
Typedef for a function that can allocate a single cell of the given type and initialize it with the g...
Definition: gmpMeshLoaderAllocator.h:36
QList< GmValueInfo * > _gaussList
Stores Gauss attributes metadata while they where not yet claimed by a ValueSet.
Definition: gmpMeshLoader.h:108
QList< GmValueInfo * > _ghostList
Stores ghost attributes && state vars metadata while they where not yet claimed by a ValueSet.
Definition: gmpMeshLoader.h:107
const GmLogCategory & _logger
The logger object used to emmit messages.
Definition: gmpMeshLoader.h:104
Iterator structure returned by tableSize and consumed by ttable / itable.
Definition: gmpMeshLoader.h:84
GmpCellMeshData< Vector > * _cd
The cell data to be filled.
Definition: gmpMeshLoader.h:111
QList< GmValueInfo * > _infoList
Stores attributes && state vars metadata while they where not yet claimed by a ValueSet.
Definition: gmpMeshLoader.h:106
GmSimulationData * _simulation
Pointer to simulation data.
Definition: gmpMeshLoader.h:103
Auxiliary class used to load mesh data from a Lua file.
Definition: gmpMeshLoader.h:54
int _size
The data size.
Definition: gmpMeshLoader.h:88
int _nextt
The next table index when the data is provided by multiple tables.
Definition: gmpMeshLoader.h:91
Auxiliar structure used to share data between GmpXxxMeshBase and GmpMeshLoader.
Definition: gmpMeshData.h:43
Declaration of usefull configuration definitions for the plugin library.
Auxiliar structure used to share data between GmpXxxCellMeshBase and GmpMeshLoader.
Definition: gmpCellMeshData.h:123
int _next
The next index when calling a function / indexing a table.
Definition: gmpMeshLoader.h:90
Declaration of the GmpMeshLoaderCellAllocator type.
int _type
_v type: 0 = invalid, 1 = function, 2 = table, 3 = multiple tables
Definition: gmpMeshLoader.h:89