AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
luaUtils.h File Reference
#include <agx/config/AGX_USE_LUA.h>
#include <agx/config.h>
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#include <agx/Referenced.h>
#include <agxLua/export.h>
#include <stdexcept>

Go to the source code of this file.

Classes

class  agxLua::LuaError
 

Namespaces

 agxLua
 The agxLua namespace contain classes for coupling AGX to Lua.
 

Functions

AGXLUA_EXPORT void * agxLua::_tousertype (lua_State *L, int index, const char *type)
 This method will return a variable of a specified stack index. More...
 
AGXLUA_EXPORT int agxLua::doFile (lua_State *L)
 
AGXLUA_EXPORT int agxLua::doString (lua_State *L)
 
AGXLUA_EXPORT void agxLua::ensurepointer (lua_State *L, const void *p)
 
AGXLUA_EXPORT void agxLua::error (lua_State *L)
 
AGXLUA_EXPORT void agxLua::error (lua_State *L, const char *msg, tolua_Error *err)
 
AGXLUA_EXPORT void agxLua::getpointertable (lua_State *L)
 
AGXLUA_EXPORT std::string agxLua::getStackTrace (lua_State *L)
 
AGXLUA_EXPORT int agxLua::pcall (lua_State *L, int nargs, int nresults, int errfunc)
 
AGXLUA_EXPORT void agxLua::pushstring (lua_State *L, const char *value)
 
AGXLUA_EXPORT bool agxLua::pushusertype (lua_State *L, void *p, const char *name)
 
AGXLUA_EXPORT int agxLua::requestPlugin (lua_State *L)
 
AGXLUA_EXPORT int agxLua::tableToRealPairVector (lua_State *L)
 Function that will take a table of tables and convert it to a agx::RealPairVector The table has to follow the format {{1,2},{3,4},...} otherwise an error is generated. More...
 
AGXLUA_EXPORT int agxLua::tableToRealVector (lua_State *L)
 Function that will take a table of numbers and convert it to a agx::RealVector The table has to follow the format {{1,2,3,4,...} otherwise an error is generated. More...
 
AGXLUA_EXPORT bool agxLua::testuserdata (lua_State *L, int index, const char *name)
 
AGXLUA_EXPORT const char * agxLua::tostring (lua_State *L, int narg, const char *def="")
 
template<typename T >
T * agxLua::tousertype (lua_State *L, int index, const char *type)
 
template<typename T >
T * agxLua::tousertype (lua_State *L, const char *variableName, const char *type)
 This method will return a variable of a global named variable It will be tested for type (using tolua++) and if it is the correct user type, it will be statically cast and returned,. More...