24 #ifndef _GEMA_NODE_SET_H_ 25 #define _GEMA_NODE_SET_H_ 42 virtual GmMesh* mesh()
const = 0;
45 virtual int numNodes()
const = 0;
51 virtual int node(
int i)
const = 0;
62 Q_UNUSED(numNodes); Q_UNUSED(nodeList);
67 virtual size_t usedMemory()
const = 0;
79 virtual QString id()
const {
return "mesh wrapper"; }
85 virtual int numNodes()
const {
return _mesh->numNodes(); }
88 virtual int node(
int i)
const {
return i; }
virtual int node(int i) const
Returns the node id of the i'th entry stored in this set.
Definition: gmNodeSet.h:88
virtual ~GmNodeSet()
Virtual destructor.
Definition: gmNodeSet.h:36
A node set wrapper over a common mesh. Constant (no support for setNodeData())
Definition: gmNodeSet.h:72
virtual GmMesh * mesh() const
Returns the mesh that this set is tied to.
Definition: gmNodeSet.h:82
This class stores a set of nodes belonging to a mesh. The nodes can belong to the mesh boundary but t...
Definition: gmNodeSet.h:32
virtual size_t usedMemory() const
Returns an estimative of the memory used by the node set in bytes.
Definition: gmNodeSet.h:91
GmMesh * _mesh
The wrapped mesh.
Definition: gmNodeSet.h:94
Declaration of the GmMesh interface class.
virtual int numNodes() const
Returns the number of nodes stored in this set.
Definition: gmNodeSet.h:85
#define GMC_API_EXPORT
Macro for controling if the class is being exported (GEMA_CORE_LIB defined) or imported (GEMA_CORE_LI...
Definition: gmCoreConfig.h:35
virtual bool setNodeData(int numNodes, int *nodeList)
Updates the node list in the set object.
Definition: gmNodeSet.h:60
virtual QString id() const
Returns the set name.
Definition: gmNodeSet.h:79
Base interface class for Mesh type plugins.
Definition: gmMesh.h:44
GmMeshNodeSet(GmMesh *mesh)
Simple constructor.
Definition: gmNodeSet.h:76