VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtBindableLuaComponentExtension Class Reference

This class will be used to bind Lua functions to allow for control of the swinging part actuator.

Inheritance diagram for DtBindableLuaComponentExtension:
Inheritance graph
[legend]

Public Member Functions

 DtBindableLuaComponentExtension (DtBindableLuaComponentInterface *)
 
virtual ~DtBindableLuaComponentExtension () override
 
virtual void cleanup (lua_State *) override
 
virtual void clearBackingPointer (void *usr) override
 
- Public Member Functions inherited from DtLuaScriptInterfaceExtension
virtual ~DtLuaScriptInterfaceExtension ()
 

Static Public Member Functions

static
DtLuaScriptInterfaceExtension * 
create (void *usr)
 

Protected Member Functions

virtual void bindLuaFunctions (DtLocalObject *entity, const DtString &scriptId, lua_State *L) override
 

Protected Attributes

DtBindableLuaComponentInterface * myExtension
 

Additional Inherited Members

- Public Types inherited from DtLuaScriptInterfaceExtension
typedef
DtLuaScriptInterfaceExtension *(* 
CreatorFcn )(void *usr)
 
typedef std::pair
< DtLuaScriptInterfaceExtension::CreatorFcn,
void * > 
CreatorUserPair
 

Constructor & Destructor Documentation

DtBindableLuaComponentExtension::DtBindableLuaComponentExtension ( DtBindableLuaComponentInterface *  )

CTOR.

virtual DtBindableLuaComponentExtension::~DtBindableLuaComponentExtension ( )
overridevirtual

DTOR.

Member Function Documentation

static DtLuaScriptInterfaceExtension* DtBindableLuaComponentExtension::create ( void *  usr)
static

Static creator function. user pointer is the pointer to the DtTranslatablePartActuator that will used to bind the lua functions.

virtual void DtBindableLuaComponentExtension::cleanup ( lua_State *  )
overridevirtual

Called to cleanup any state. The most important thing would be to clean up any global space, for example if you have added a global space as:

  luabind::globals(L)["myModule"] = this;

You will need to, in this cleanup call, do:

  luabind::globals(L)["myModule"] = luabind::object();  

Implements DtLuaScriptInterfaceExtension.

virtual void DtBindableLuaComponentExtension::clearBackingPointer ( void *  )
overridevirtual

Called when the object that backs this extension is about to be destroyed. Implementations should null out any raw pointer they hold to usr. The default implementation is a no-op.

Reimplemented from DtLuaScriptInterfaceExtension.

virtual void DtBindableLuaComponentExtension::bindLuaFunctions ( DtLocalObject *  entity,
const DtString &  scriptId,
lua_State *  L 
)
overrideprotectedvirtual

Binds method for this class to the lua state. This simple method will send an object console message to the entity that implements this task. Calls bind method in DtSwingingPartActuator class.

Implements DtLuaScriptInterfaceExtension.

Member Data Documentation

DtBindableLuaComponentInterface* DtBindableLuaComponentExtension::myExtension
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)