VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtDriverManager Class Reference

The DtDriverManager manages all the DtDriver's in the DtDe. More...

List of all members.

Public Types

typedef std::vector< DtDriver * > Drivers
 A list of hosts.

Public Member Functions

 DtDriverManager (DtDe &de)
 CTOR.
 ~DtDriverManager ()
 DTOR.
void tick ()
 Tick the master scene.
void addDriver (DtDriver *driver)
 Add a host driver to the master scene.
void startDriver (DtDriver *driver)
 Start a driver driver modifying the scene.
void stopDriver (DtDriver *driver)
 Stop a driver driver modifying the scene.
void destroyDriver (DtDriver *driver)
 Destroy a driver from the master scene, the driver is deallocated and is no longer valid.
void renameDriver (DtDriver *driver, const std::string &newName)
 Rename a driver.
DtDriverfindDriver (const std::string &name)
 Search for a driver by it's instance name.
DtSceneDriversceneDriver ()
 Return the DtSceneDriver associated with the master scene.
DtInputDriverinputDriver ()
 Return the DtInputDriver associated with the master scene.
DtDede ()
 Get the de.
void saveDriverToFile (const DtDriver &driver) const
 Load a driver from a file.
void deleteDriverFile (const DtDriver &driver) const
 Load a driver from a file.
std::string createDriverFileName (const DtDriver &driver) const
 Create the filename for a driver.
void saveAutoDriver ()
 Load the auto connections to a file.
void loadAutoDriversFromFile (bool errorIfNotFound)
 Load the auto connections from a file.
void autoStartDrivers ()
 Automatically start drivers loaded from a settings file.
void setAutoDriver (const std::string &driver, bool saveToFile)
 Set the auto start driver.
const std::string & autoDriver () const
void startDrivers (const std::vector< std::string > &drivers)
 Start a list of drivers by name.
void autoLoadDrivers ()
 Load all drivers in the IG's Initializer driver directory.
void saveDrivers ()
 Saves each driver to a file.
void loadDriver (const std::string &filename)
 Load a driver from a file.
Driversdrivers ()
 Host driver list accessor.
const Driversdrivers () const
 Host driver list accessor.

Public Attributes

boost::signal< void(DtDriver &)> signal_driverAdded
boost::signal< void(DtDriver &)> signal_driverToBeDestroyed
boost::signal< void(DtDriver &)> signal_driverStarted
boost::signal< void(DtDriver &)> signal_driverStopped
boost::signal< void(const
std::string &)> 
signal_autoDriverChanged

Protected Member Functions

void startWindowDependendDrivers ()
 Called internally when window dependents drivers can be started.
void stopWindowDependentDrivers ()
 Called internally when window dependents drivers must be stopped.
void onViewCreated ()
 Called when the local display is available to listen for when windows are created/destroyed.
void onViewToBeDestroyed ()

Protected Attributes

DtDemyDe
bool myAllowDriversFlag
Drivers myDrivers
Drivers myActiveDrivers
DtSceneDrivermySceneDriver
DtInputDrivermyInputDriver
DtDriverManagerSignalermySignaler
std::string myAutoDriver
bool myAutoStartDrivers
bool myInvalidToAddFlag

Detailed Description

The DtDriverManager manages all the DtDriver's in the DtDe.


Member Typedef Documentation

A list of hosts.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Tick the master scene.

Master scene ticks all hosts, then gets the updates from any modified objects.

Add a host driver to the master scene.

The host is now owned by the Master Scene.

Exceptions:
DtCorruptedStateif attempting to add a driver during tick or stop.

Start a driver driver modifying the scene.

Stop a driver driver modifying the scene.

Destroy a driver from the master scene, the driver is deallocated and is no longer valid.

void makVrv::DtDriverManager::renameDriver ( DtDriver driver,
const std::string &  newName 
)

Rename a driver.

DtDriver* makVrv::DtDriverManager::findDriver ( const std::string &  name)

Search for a driver by it's instance name.

Host driver list accessor.

Host driver list accessor.

Return the DtSceneDriver associated with the master scene.

Return the DtInputDriver associated with the master scene.

Get the de.

void makVrv::DtDriverManager::saveDriverToFile ( const DtDriver driver) const

Load a driver from a file.

void makVrv::DtDriverManager::deleteDriverFile ( const DtDriver driver) const

Load a driver from a file.

std::string makVrv::DtDriverManager::createDriverFileName ( const DtDriver driver) const

Create the filename for a driver.

Load the auto connections to a file.

Load the auto connections from a file.

Automatically start drivers loaded from a settings file.

void makVrv::DtDriverManager::setAutoDriver ( const std::string &  driver,
bool  saveToFile 
)

Set the auto start driver.

const std::string& makVrv::DtDriverManager::autoDriver ( ) const
void makVrv::DtDriverManager::startDrivers ( const std::vector< std::string > &  drivers)

Start a list of drivers by name.

Load all drivers in the IG's Initializer driver directory.

Saves each driver to a file.

void makVrv::DtDriverManager::loadDriver ( const std::string &  filename)

Load a driver from a file.

Called internally when window dependents drivers can be started.

Called internally when window dependents drivers must be stopped.

Called when the local display is available to listen for when windows are created/destroyed.


Member Data Documentation

boost::signal<void (const std::string&)> makVrv::DtDriverManager::signal_autoDriverChanged
std::string makVrv::DtDriverManager::myAutoDriver [protected]

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)