SystemThreadListenerInterface Class Reference
#include <SystemThreadListenerInterface.h>
Inherited by CursorSpringConnector.
Public Member Functions | |
| virtual | ~SystemThreadListenerInterface () |
Protected Member Functions | |
| virtual void | systemUpdate (float dt)=0 |
Friends | |
| class | Physics |
Detailed Description
Interface for SystemThreadListener in Physics Module This interface can be used to implement an object which listenes on theupdate method call of the Physics Module. This method is called from the system thread. An example for this Interface would be to update the transformation from an physics object to the Entity transformation which will be used for rendering afterwards. NOTE: since this update-call is executed from the System Thread you have to take care to Lock data which is also accessible out of the Physics Thread!!! The registration of the Listener also has to take place from the System Thread. An opportunity for registering the listener would be in the constructor of the object which implements this Interface. Doing so allows the objects to register themself automatically on creation. Take care that when doing so it can happen that the System Thread callback occurs before the object was actually added to the physics simulation!!! Constructor & Destructor Documentation
| virtual SystemThreadListenerInterface::~SystemThreadListenerInterface | ( | ) | [inline, virtual] |
Empty destructor.
Member Function Documentation
| virtual void SystemThreadListenerInterface::systemUpdate | ( | float | dt | ) | [protected, pure virtual] |
Callback function when Physics::update is called. The method is called from the System Thread when the Physics::update method is called. It allows to update data which is needed by the System Thread, for example the transformation of an object. The method call runs parallel to the Physics Thread so take care to Lock data which can be accessible from both Threads!
- Parameters:
-
dt elapsed time since last call in seconds
Implemented in CursorSpringConnector.
Friends And Related Function Documentation
friend class Physics [friend] |
The documentation for this class was generated from the following file:
- src/inVRs/Modules/3DPhysics/SystemThreadListenerInterface.h
Generated on Wed Oct 20 16:12:01 2010 for inVRs by
1.5.8