GemaLuaCoreLib
The GeMA Lua Core library
Loading...
Searching...
No Matches
gmLuaModelData.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4** All rights reserved.
5**
6** This file is part of the "GeMA" software. It's use should respect
7** the terms in the license agreement that can be found together
8** with this source code.
9** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11** A PARTICULAR PURPOSE.
12**
13************************************************************************/
14
24#ifndef _GEMALUA_MODEL_DATA_H_
25#define _GEMALUA_MODEL_DATA_H_
26
27#include "gmLuaObject.h"
28
30class GmModelData;
31
33class GML_API_EXPORT GmLuaModelData: public GmLuaObject
34{
35public:
36 GmLuaModelData(GmSimulationData* simData, const GmLogCategory& logger);
37 virtual ~GmLuaModelData();
38
39 // See comments on the base class
40 virtual const char* typeName() const { return "modelData"; }
41
42 virtual void fillMetatable(lua_State* L, int index);
43
45 virtual void* getClassMetatableID() { static int classID = 0; return &classID; }
46
47private:
48 int mesh (lua_State* L);
49 int boundaryCondition (lua_State* L);
50 int contactBoundaryCondition(lua_State* L);
51 int propertySet (lua_State* L);
52 int spatialIndex (lua_State* L);
53 int discontinuitySet (lua_State* L);
54 int addNewEmptyMesh (lua_State* L);
55 int addNewEmptyDiscSet (lua_State* L);
56
59};
60
61#endif
A proxy class to export GmModelData methods to the Lua environment.
Definition gmLuaModelData.h:34
virtual const char * typeName() const
Returns the object type as will be stored in the object metatable.
Definition gmLuaModelData.h:40
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a GmLuaModelData object.
Definition gmLuaModelData.h:45
GmSimulationData * _simData
The simulation data object that owns the model data.
Definition gmLuaModelData.h:57
GmModelData * _data
The ModelData 'wrapped' by this proxy object.
Definition gmLuaModelData.h:58
A proxy class to export object methods to the Lua environment.
Definition gmLuaObject.h:36
virtual void fillMetatable(lua_State *L, int index)=0
Function called by populateMetatable() to fill the metatable with exported methods by derived classes...
Declaration of the GmLuaObject class.