VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
DtDistributedDrawDriver Class Reference
Inheritance diagram for DtDistributedDrawDriver:
Inheritance graph
[legend]

List of all members.

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.

Constructor & Destructor Documentation

DtDistributedDrawDriver::DtDistributedDrawDriver ( DtAgentManager agentManager,
const std::string &  instanceName 
)

CTOR.

Virtual DTOR.


Member Function Documentation

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.


Member Data Documentation

DtExampleDrawObjectAgent* DtDistributedDrawDriver::myDrawAgent [protected]

The draw agent that draws the sphere.

Saved location of the sphere.

Whether or not a sphere is displayed.


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)