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 | Protected Member Functions | Protected Attributes
DtDistributedDrawDriver Class Reference
Inheritance diagram for DtDistributedDrawDriver:
Inheritance graph
[legend]

Public Member Functions

 DtDistributedDrawDriver (DtAgentManager &agentManager, const std::string &instanceName)
 
virtual ~DtDistributedDrawDriver ()
 
virtual const std::string & className () const
 
virtual void drawRandomSphere ()
 
- Public Member Functions inherited from makVrv::DtDriver
 DtDriver (DtAgentManager &agentManager, const std::string &instanceName)
 
virtual ~DtDriver ()
 
virtual void realizeConfiguration (const DtConfiguration &configuration)
 
virtual DtConfiguration createConfiguration () const
 
DtAgentManageragentManager ()
 
virtual DtAgentManagerInterfacesceneInterface ()
 
bool started () const
 
virtual const std::string & instanceName () const
 
virtual bool autoStart () const
 
virtual void setAutoStart (bool autoStart)
 
virtual bool isWindowDependent () const
 
virtual void setIsWindowDependent (bool dep)
 
virtual void setIsUserControllable (bool)
 
virtual bool isUserControllable () const
 
virtual void setIsPersistent (bool per)
 
virtual bool isPersistent () const
 
virtual bool isOnDriverSelectionList () const
 
virtual void setOnDriverSelectionList (bool)
 
bool objectFromAgentManager (const DtUniqueID &id) const
 

Protected Member Functions

virtual bool onStart ()
 
virtual bool onStop ()
 
virtual void slot_displayEngineAdded (const DtDeRecord &igRecord)
 
virtual bool onTick ()
 
virtual void updateSphere ()
 
- Protected Member Functions inherited from makVrv::DtDriver
void applyChangesAndDelete (DtElementChanges *changes)
 
void reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type)
 
void reportElementAttribute (DtElementID id, DtElementAttribute *attribute)
 
void reportElementDestroyed (DtElementID id)
 
void start ()
 
void stop ()
 
bool tick ()
 
virtual void setInstanceName (const std::string &name)
 
virtual void installAccessories ()
 
virtual void uninstallAccessories ()
 

Protected Attributes

DtExampleDrawObjectAgent * myDrawAgent
 
double mySphereX
 
double mySphereY
 
double mySphereZ
 
bool mySphereInScene
 
- Protected Attributes inherited from makVrv::DtDriver
DtAgentManagermyAgentManager
 
bool myStartedFlag
 
std::string myName
 
DtConfiguration myConfiguration
 
bool myPersistentFlag
 
bool myUserControllableFlag
 
bool myRequestStateDiffPendingFlag
 
DtElementChanges myChanges
 

Constructor & Destructor Documentation

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

CTOR.

virtual DtDistributedDrawDriver::~DtDistributedDrawDriver ( )
virtual

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 ( )
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

Implements makVrv::DtDriver.

virtual bool DtDistributedDrawDriver::onStop ( )
protectedvirtual

Called when the driver is stopped by the display engine.

Implements makVrv::DtDriver.

virtual void DtDistributedDrawDriver::slot_displayEngineAdded ( const DtDeRecord igRecord)
protectedvirtual

Called when a display engine is connected; restarts the driver.

Reimplemented from makVrv::DtDriver.

virtual bool DtDistributedDrawDriver::onTick ( )
protectedvirtual

Stub implementation since this driver doesn't have anything that needs updating.

Implements makVrv::DtDriver.

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:

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)