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.
|
Constructor & Destructor Documentation
| DtDistributedDrawDriver::DtDistributedDrawDriver |
( |
DtAgentManager & |
agentManager, |
|
|
const std::string & |
instanceName |
|
) |
| |
| virtual DtDistributedDrawDriver::~DtDistributedDrawDriver |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual const std::string& DtDistributedDrawDriver::className |
( |
| ) |
const |
|
virtual |
Get the class name as a string.
| 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 |
( |
| ) |
|
|
protectedvirtual |
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
| virtual bool DtDistributedDrawDriver::onStop |
( |
| ) |
|
|
protectedvirtual |
Called when the driver is stopped by the display engine.
| virtual void DtDistributedDrawDriver::slot_displayEngineAdded |
( |
const DtDeRecord & |
igRecord | ) |
|
|
protectedvirtual |
Called when a display engine is connected; restarts the driver.
| virtual bool DtDistributedDrawDriver::onTick |
( |
| ) |
|
|
protectedvirtual |
Stub implementation since this driver doesn't have anything that needs updating.
| virtual void DtDistributedDrawDriver::updateSphere |
( |
| ) |
|
|
protectedvirtual |
Utility function add a sphere at location x,y,z in the scene.
Member Data Documentation
| 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.
The documentation for this class was generated from the following file: