GemaMesh
The GeMA Mesh Plugin
Public Member Functions | Protected Attributes | List of all members
GmpGemaCell< Base, Proxy, CellMeshData, T, N, VN > Class Template Reference

Basic implementation for a "Gema cell", adding the information about the offset of its nodes in the global mesh data node vector. More...

#include <gmpGemaCell.h>

Inheritance diagram for GmpGemaCell< Base, Proxy, CellMeshData, T, N, VN >:
Inheritance graph
[legend]
Collaboration diagram for GmpGemaCell< Base, Proxy, CellMeshData, T, N, VN >:
Collaboration graph
[legend]

Public Member Functions

 GmpGemaCell (GmCellMesh *mesh, int meshId, int id, int offset)
 Constructs a cell given its id and associated mesh id.
 
virtual int nodeIndex (int localIndex) const
 
virtual void nodes (int *nodeList, bool ghost) const
 
virtual bool setNodes (const int *nodeList)
 
int offset () const
 Returns the offset in the global mesh cell nodes vector for this cell.
 
void setOffset (int offset)
 
- Public Member Functions inherited from GmpCellBaseWithId< Base, Proxy, CellMeshData, T, N, VN >
virtual int cellId () const
 
virtual GmCellMeshmesh () const
 
virtual int meshId () const
 
virtual bool active () const
 
virtual void setActive (bool active)
 
virtual void replaceCellId (int id, bool keepActiveFlag)
 
- Public Member Functions inherited from GmpCellBase< Base, Proxy, CellMeshData, T, N, VN >
 GmpCellBase ()
 Constructs a cell.
 
virtual int numNodes () const
 
virtual void pushProxy (lua_State *L, const GmLogCategory &logger)
 
virtual GmCellType type () const
 
virtual int propertyIndex (int propertySet) const
 
virtual bool setProperties (const int *propList, int nprop)
 

Protected Attributes

int _nodeOffset
 Index in the mesh data for the first node for this cell.
 
- Protected Attributes inherited from GmpCellBaseWithId< Base, Proxy, CellMeshData, T, N, VN >
int _cellId
 The cell index inside the mesh. MSB is used to control if the cell is active or not.
 

Additional Inherited Members

- Protected Member Functions inherited from GmpCellBaseWithId< Base, Proxy, CellMeshData, T, N, VN >
 GmpCellBaseWithId (int cellId, int meshId)
 Constructs a cell given its id and associated mesh id.
 
- Protected Member Functions inherited from GmpCellBase< Base, Proxy, CellMeshData, T, N, VN >
CellMeshData * meshData () const
 Returns the mesh data object associated with this cell's mesh.
 

Detailed Description

template<class Base, class Proxy, class CellMeshData, GmCellType T, int N, int VN>
class GmpGemaCell< Base, Proxy, CellMeshData, T, N, VN >

Basic implementation for a "Gema cell", adding the information about the offset of its nodes in the global mesh data node vector.

If the mesh is homogeneous, the offset could be replaced by a simple calculation based on the cell id but due to structure alignment needs, the size of a cell would NOT be reduced so we don't bother to try that distintion.


The documentation for this class was generated from the following file: