![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtDistributedDrawDriver (DtAgentManager &agentManager, const std::string &instanceName) | |
| CTOR. | |
| virtual | ~DtDistributedDrawDriver () |
| Virtual DTOR. | |
| virtual const std::string & | className () const |
| Get the class name as a string. | |
| virtual void | drawRandomSphere () |
| Randomly place a sphere in the scene or move the sphere to a new random location if it's already been added. | |
Protected Member Functions | |
| virtual bool | onStart () |
| When late-joining display engines are connected to the master display engine, all drivers are stopped and restarted. | |
| virtual bool | onStop () |
| Called when the driver is stopped by the display engine. | |
| virtual void | slot_displayEngineAdded (const DtDeRecord &igRecord) |
| Called when a display engine is connected; restarts the driver. | |
| virtual bool | onTick () |
| Stub implementation since this driver doesn't have anything that needs updating. | |
| virtual void | updateSphere () |
| Utility function add a sphere at location x,y,z in the scene. | |
Protected Attributes | |
| DtExampleDrawObjectAgent * | myDrawAgent |
| The draw agent that draws the sphere. | |
| double | mySphereX |
| Saved location of the sphere. | |
| double | mySphereY |
| double | mySphereZ |
| bool | mySphereInScene |
| Whether or not a sphere is displayed. | |
| DtDistributedDrawDriver::DtDistributedDrawDriver | ( | DtAgentManager & | agentManager, |
| const std::string & | instanceName | ||
| ) |
CTOR.
| virtual DtDistributedDrawDriver::~DtDistributedDrawDriver | ( | ) | [virtual] |
Virtual DTOR.
| virtual const std::string& DtDistributedDrawDriver::className | ( | ) | const [virtual] |
Get the class name as a string.
Implements makVrv::DtDriver.
| virtual void DtDistributedDrawDriver::drawRandomSphere | ( | ) | [virtual] |
Randomly place a sphere in the scene or move the sphere to a new random location if it's already been added.
| virtual bool DtDistributedDrawDriver::onStart | ( | ) | [protected, virtual] |
When late-joining display engines are connected to the master display engine, all drivers are stopped and restarted.
The onStop() and onStart() implementations for this driver will save the sphere's state when the driver is stopped, and recreate it when the driver is started. It is critical to implement these methods correctly to make late-joining display engines work correctly. Called when the driver is started by the display engine Restores state that existed the last time the driver was stopped
Implements makVrv::DtDriver.
| virtual bool DtDistributedDrawDriver::onStop | ( | ) | [protected, virtual] |
Called when the driver is stopped by the display engine.
Implements makVrv::DtDriver.
| virtual void DtDistributedDrawDriver::slot_displayEngineAdded | ( | const DtDeRecord & | igRecord | ) | [protected, virtual] |
Called when a display engine is connected; restarts the driver.
Reimplemented from makVrv::DtDriver.
| virtual bool DtDistributedDrawDriver::onTick | ( | ) | [protected, virtual] |
Stub implementation since this driver doesn't have anything that needs updating.
Implements makVrv::DtDriver.
| virtual void DtDistributedDrawDriver::updateSphere | ( | ) | [protected, virtual] |
Utility function add a sphere at location x,y,z in the scene.
DtExampleDrawObjectAgent* DtDistributedDrawDriver::myDrawAgent [protected] |
The draw agent that draws the sphere.
double DtDistributedDrawDriver::mySphereX [protected] |
Saved location of the sphere.
double DtDistributedDrawDriver::mySphereY [protected] |
double DtDistributedDrawDriver::mySphereZ [protected] |
bool DtDistributedDrawDriver::mySphereInScene [protected] |
Whether or not a sphere is displayed.