![]() |
VR-Forces 5.0.1 Developer's Guide
|
Typedefs | |
| typedef bool(* | luaToRwFnc )(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| typedef bool(* | rwToLuaFnc )(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| typedef DtReaderWriter *(* | luaToRwCreatorFnc )(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *parent) |
| typedef std::map< DtString, luaToRwFnc > | DtRwFromLuaFcnMap |
| typedef std::map< DtString, rwToLuaFnc > | DtLuaFromRwFcnMap |
Functions | |
| bool | setPropertyFromLua (const luabind::object &inObj, DtReaderWriter *outRw) |
| bool | setLuaFromRw (lua_State *L, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setRwFromLua (const luabind::object &inObj, DtReaderWriter *outRw) |
| DtRwFromLuaFcnMap & | rwFromLuaFcnMap () |
| DtLuaFromRwFcnMap & | luaFromRwFcnMap () |
| bool | setStringRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setUUIDRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setEntityTypeFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setObjectTypeFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setLocVectorRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setOffsetVectorRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setVerticesFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setOffsetVerticesFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setIntRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setDoubleRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setBoolRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setStructRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setListRwFromLua (const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
| bool | setStringLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setEntityTypeLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setObjectTypeLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setSimObjectLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setLocationLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setOffsetVectorLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setVerticesLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setOffsetVerticesLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setIntLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setDoubleLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setBoolLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setStructLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
| bool | setListLuaFromRw (lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
Namespace for methods which set a variable from a Lua object to ReaderWriter and vice-versa.
| typedef bool(* DtReaderWriterSetter::luaToRwFnc)(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *outRw) |
Function signature for Lua-to-ReaderWriter conversion functions.
| typedef bool(* DtReaderWriterSetter::rwToLuaFnc)(lua_State *L, const DtString &rwName, const DtReaderWriter *inRw, luabind::object &outObj) |
Function signature for ReaderWriter-to-Lua object conversion functions.
| typedef DtReaderWriter*(* DtReaderWriterSetter::luaToRwCreatorFnc)(const DtString &rwName, luabind::object const &inObj, DtReaderWriter *parent) |
Function signature for Lua-to-ReaderWriter creation functions.
| typedef std::map<DtString, luaToRwFnc> DtReaderWriterSetter::DtRwFromLuaFcnMap |
These are not used anywhere – delete TMP.
| typedef std::map<DtString, rwToLuaFnc> DtReaderWriterSetter::DtLuaFromRwFcnMap |
| bool DtReaderWriterSetter::setPropertyFromLua | ( | const luabind::object & | inObj, |
| DtReaderWriter * | outRw | ||
| ) |
Sets the given ReaderWriter from a Lua object. Returns true if successful.
| bool DtReaderWriterSetter::setLuaFromRw | ( | lua_State * | L, |
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
Sets the given Lua object from a ReaderWriter. Returns true if successful.
| bool DtReaderWriterSetter::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 representation of a particular reader/writer item then the process will try and set all the registry items from the lua supplied object by name. If the table has a name that does not exist in the reader/writer object then an error will be thrown. If there is no factory representation of a reader/writer object and that object also has no children then an error will be thrown.
Referenced by DtVariableParameterReaderWriter< _Container >::createRwStructure().
| bool DtReaderWriterSetter::setStringRwFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setUUIDRwFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setEntityTypeFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setObjectTypeFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::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.
| bool DtReaderWriterSetter::setOffsetVectorRwFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setVerticesFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setOffsetVerticesFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setIntRwFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setDoubleRwFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setBoolRwFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setStructRwFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setListRwFromLua | ( | const DtString & | rwName, |
| luabind::object const & | inObj, | ||
| DtReaderWriter * | outRw | ||
| ) |
Lua-to-ReaderWriter conversion functions.
| bool DtReaderWriterSetter::setStringLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setEntityTypeLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setObjectTypeLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setSimObjectLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
Assumes the RW is a UUID.
| bool DtReaderWriterSetter::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 type.
| bool DtReaderWriterSetter::setOffsetVectorLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setVerticesLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setOffsetVerticesLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setIntLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setDoubleLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setBoolLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setStructLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| bool DtReaderWriterSetter::setListLuaFromRw | ( | lua_State * | L, |
| const DtString & | rwName, | ||
| const DtReaderWriter * | inRw, | ||
| luabind::object & | outObj | ||
| ) |
ReaderWriter-to-Lua conversion functions.
| DtRwFromLuaFcnMap& DtReaderWriterSetter::rwFromLuaFcnMap | ( | ) |
The Lua-to-ReaderWriter by type.
| DtLuaFromRwFcnMap& DtReaderWriterSetter::luaFromRwFcnMap | ( | ) |
The ReaderWriter-to-Lua by type.