Xfem
The Xfem Plugin
Loading...
Searching...
No Matches
xfemLuaElement.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 _GEMA_XFEM_LUA_ELEMENT_H_
25#define _GEMA_XFEM_LUA_ELEMENT_H_
26
27#include <gmLuaCell.h>
28
29class XfemElement;
30
33{
34public:
35 XfemLuaElement(XfemElement* elem, const GmLogCategory& logger);
36
37 // See comments on the base class
38 virtual const char* typeName() const { return "xfemElement"; }
39
40 virtual void fillMetatable(lua_State* L, int index);
41
43 virtual void* getClassMetatableID() { static int classID = 0; return &classID; }
44
45private:
46 int enriched(lua_State* L);
47};
48
49
50#endif
51
Basic interface for an XFEM element.
Definition xfemElement.h:44
A proxy class to export XfemElement methods to the Lua environment.
Definition xfemLuaElement.h:33
XfemLuaElement(XfemElement *elem, const GmLogCategory &logger)
Constructor.
Definition xfemLuaElement.cpp:39
int enriched(lua_State *L)
Returns true if the element has been enriched, false otherwise.
Definition xfemLuaElement.cpp:65
virtual void * getClassMetatableID()
Returns an unique identifier to identify an user object as a XfemLuaElement object.
Definition xfemLuaElement.h:43
virtual void fillMetatable(lua_State *L, int index)
Prepares the object metatable for calling methods.
Definition xfemLuaElement.cpp:45