11 #include <luabind/luabind.hpp>
18 namespace DtReaderWriterSetter
DT_DLL_vrfLua bool setRwFromLua(const luabind::object &inObj, DtReaderWriter *outRw)
Tries to set all the contents of the reader/writer item from lua. If there is not a factory represent...
std::map< DtString, rwToLuaFnc > DtLuaFromRwFcnMap
Definition: readerWriterSetter.h:150
std::map< DtString, luaToRwFnc > DtRwFromLuaFcnMap
Definition: readerWriterSetter.h:146
DT_DLL_vrfLua bool setOffsetVectorRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
DT_DLL_vrfLua bool setVerticesFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
DT_DLL_vrfLua bool setLuaFromRw(lua_State *L, const DtReaderWriter *inRw, luabind::object &outObj)
Sets the given Lua object from a ReaderWriter. Returns true if successful.
DT_DLL_vrfLua bool setLocVectorRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
A DtVector can be used to hold a location3D or a vector3D. There is no type DtRwPoint, and DtVector is used for locations throughout VRF code, DtVector is used for locations and vectors. There is no way to tell from DtVector whether it is representing a point or vector. So, in readerWriterSetter, use DtRwVector for location3Ds and reject vector3Ds when going from Lua to RW; assume DtRwVectors are location 3Ds.
DT_DLL_vrfLua bool setListLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua bool setStructLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua bool setStringRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
DT_DLL_vrfLua bool setEntityTypeLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
Definition: readerWriter.h:85
DT_DLL_vrfLua bool setOffsetVectorLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua bool setDoubleLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua bool setBoolRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
DT_DLL_vrfLua bool setOffsetVerticesFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
bool(* rwToLuaFnc)(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
Function signature for ReaderWriter-to-Lua object conversion functions.
Definition: readerWriterSetter.h:94
DT_DLL_vrfLua bool setLocationLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
See comment above. A DtVector is interpreted as a location3D, not a vector3D or anything other object...
DT_DLL_vrfLua bool setObjectTypeLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua bool setPropertyFromLua(const luabind::object &inObj, DtReaderWriter *outRw)
Sets the given ReaderWriter from a Lua object. Returns true if successful.
DT_DLL_vrfLua bool setEntityTypeFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
#define DT_DLL_vrfLua
This file is used to determine how to build.
Definition: vrfLuaDefines.h:25
DT_DLL_vrfLua bool setOffsetVerticesLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua DtRwFromLuaFcnMap & rwFromLuaFcnMap()
The Lua-to-ReaderWriter by type.
DT_DLL_vrfLua bool setDoubleRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
DT_DLL_vrfLua bool setIntRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
DT_DLL_vrfLua bool setForceRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
DT_DLL_vrfLua bool setUUIDRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
DT_DLL_vrfLua bool setVerticesLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua bool setStructRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
DT_DLL_vrfLua bool setIntLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua bool setSimObjectLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
Assumes the RW is a UUID.
DT_DLL_vrfLua DtLuaFromRwFcnMap & luaFromRwFcnMap()
The ReaderWriter-to-Lua by type.
DT_DLL_vrfLua bool setBoolLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua bool setListRwFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.
bool(* luaToRwFnc)(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Function signature for Lua-to-ReaderWriter conversion functions.
Definition: readerWriterSetter.h:38
DT_DLL_vrfLua bool setStringLuaFromRw(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj)
ReaderWriter-to-Lua conversion functions.
DT_DLL_vrfLua bool setObjectTypeFromLua(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw)
Lua-to-ReaderWriter conversion functions.