24 #ifndef _GEMA_PLUGIN_GEMA_CELL_H_ 25 #define _GEMA_PLUGIN_GEMA_CELL_H_ 37 template <
class Base,
class Proxy,
class CellMeshData, GmCellType T,
int N,
int VN>
class GmpGemaCell 50 virtual int nodeIndex(
int localIndex)
const 52 assert(localIndex >= 0 && localIndex < N);
57 virtual void nodes(
int* nodeList,
bool ghost)
const 59 Q_UNUSED(ghost); assert(!ghost);
64 virtual bool setNodes(
const int* nodeList)
68 #if 0 // Checked when first reading the mesh. Also tested at the API on the Lua binding. 70 for(
int i = 0; i<N; i++)
72 int node = nodeList[i];
73 if(node < 0 || node >= nnodes)
80 if(topo && topo->cellIsIndexed(cellId()))
98 template <
class Base,
class Proxy,
class CellMeshData, GmCellType T,
int N,
int VN>
class GmpGemaGhostCell 106 GmpGemaGhostCell(
GmCellMesh* mesh,
int meshId,
int id,
int offset) :
GmpGhostCellBase<
GmpGemaCell, Base, Proxy, CellMeshData, T, N, VN>(mesh, meshId, id,
offset) {}
GmpGhostCellBase(GmCellMesh *mesh, int meshId, int id, int offset)
Constructs a cell given its id and associated mesh id.
Definition: gmpCellBase.h:244
int _nodeOffset
Index in the mesh data for the first node for this cell.
Definition: gmpGemaCell.h:94
Declaration of the UibhmTopology familiy of classes.
GmpGemaGhostCell(GmCellMesh *mesh, int meshId, int id, int offset)
Constructs a cell given its id.
Definition: gmpGemaCell.h:106
Basic implementation for a "Gema cell", adding the information about the offset of its nodes in the g...
Definition: gmpGemaCell.h:37
CellMeshData * meshData() const
Returns the mesh data object associated with this cell's mesh.
Definition: gmpCellBase.h:154
Declaration of the GmpCellBase class.
Basic implementation for a GmpGemaGhostCell cell, based on the GmpGhostCellBase class.
Definition: gmpGemaCell.h:98
Auxiliar structure used to share data between GmpGemaCellMesh and GmpMeshLoader.
Definition: gmpGemaCellMeshData.h:36
Template class used to add ghost node support to template class CellBase.
Definition: gmpCellBase.h:240
int offset() const
Returns the offset in the global mesh cell nodes vector for this cell.
Definition: gmpGemaCell.h:89
Interface for accessing the "exported" functions of a UibhmTopology class instance,...
Definition: uibhmTopology.h:83
virtual int numNodes() const=0
Adds cell id and active information to a GmpCellBase class.
Definition: gmpCellBase.h:184