![]() |
VR-Forces 4.10 Class Documentation
|
The DtSceneDriver owns the scene. More...

Public Member Functions | |
| virtual | ~DtSceneDriver () |
| DTOR. More... | |
| virtual bool | onStart () |
| Called then this host is stared. More... | |
| virtual bool | onStop () |
| Called when this host is stopped. More... | |
| virtual bool | onTick () |
| Called when this host is ticked. More... | |
| virtual const std::string & | className () const |
| Ge the class name for the scene driver. More... | |
| bool | saveScene (const std::string &filePath, bool saveAs=true) |
| Save the scene to a file. More... | |
| bool | loadScene (const std::string &filePath, bool emitSignal=true) |
| Load the scene from a file. More... | |
| const std::string & | sceneFileName () const |
| Get the file name of the loaded scene. More... | |
| DtScene * | findScene () |
| Attempt to get the scene. More... | |
| DtScene & | scene () |
| Get the scene object for the driver. More... | |
| virtual void | clearScene () |
| Removes all drawable objects from the scene. More... | |
Public Member Functions inherited from makVrv::DtDriver | |
| DtDriver (DtAgentManager &agentManager, const std::string &instanceName) | |
| CTOR. More... | |
| virtual | ~DtDriver () |
| DTOR. More... | |
| virtual void | realizeConfiguration (const DtConfiguration &configuration) |
| Realize the driver using the configuration. More... | |
| virtual DtConfiguration | createConfiguration () const |
| Create a configuration for the driver. More... | |
| DtAgentManager & | agentManager () |
| Get the master scene for this host. More... | |
| virtual DtAgentManagerInterface & | sceneInterface () |
| Get the scene manager interface for creating agents. More... | |
| bool | started () const |
| Get this driver's active state. More... | |
| virtual const std::string & | instanceName () const |
| Get this driver's instance name. More... | |
| virtual bool | autoStart () const |
| Get whether this driver is set to automatically start if it is persistent. More... | |
| virtual void | setAutoStart (bool autoStart) |
| Set whether this driver automatically starts if it is persistent. More... | |
| virtual bool | isWindowDependent () const |
| Get whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed. More... | |
| virtual void | setIsWindowDependent (bool dep) |
| Set whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed. More... | |
| virtual void | setIsUserControllable (bool) |
| Set whether this driver can be started and stopped by the user. More... | |
| virtual bool | isUserControllable () const |
| Get whether this driver can be started and stopped by the user. More... | |
| virtual void | setIsPersistent (bool per) |
| Set if the driver is persistent and should be saved between runs. More... | |
| virtual bool | isPersistent () const |
| Get if the driver is persistent and should be saved between runs. More... | |
| virtual bool | isOnDriverSelectionList () const |
| Returns whether or not this driver is to be automatically started/stopped from the driver selection list. More... | |
| virtual void | setOnDriverSelectionList (bool) |
| Sets whether or not this item is on the driver selection list. More... | |
| bool | objectFromAgentManager (const DtUniqueID &id) const |
| check to see if the object was created using this driver's agent manager. More... | |
Protected Member Functions | |
| DtSceneDriver (DtDe &de) | |
| CTOR. More... | |
| void | reportPropCreated (const DtProp &prop) |
| Report that a prop was created. More... | |
| void | reportPropDestroyed (const DtProp &prop) |
| Report that a prop was destroyed. More... | |
| void | reportBuoyCreated (const DtBuoyOrBeaconFacade &buoy) |
| void | reportBuoyDestroyed (const DtBuoyOrBeaconFacade &buoy) |
| void | reportTerrainPatchCreated (const DtTerrainPatch &patch) |
| Report that a terrain patch was created. More... | |
| void | reportTerrainPatchDestroyed (const DtTerrainPatch &patch) |
| Report that a terrain patch was destroyed. More... | |
| void | reportFeatureCreated (const DtFeature &feature) |
| Report that a feature was created. More... | |
| void | reportFeatureDestroyed (const DtFeature &feature) |
| Report that a feature was destroyed. More... | |
| virtual void | slot_displayEngineAdded (const DtDeRecord &igRecord) |
| Called when a display engine is added. More... | |
| virtual void | slot_elementAttributeChangeRequested (DtUniqueID id, DtUniqueID parentId, DtBoost::shared_ptr< const DtElementAttribute > atr) |
| void | handlePropElementChanged (DtProp &prop, const DtElementAttribute *attr) |
Protected Member Functions inherited from makVrv::DtDriver | |
| void | applyChangesAndDelete (DtElementChanges *changes) |
| Function for apply changes from a changes object and deleting it. More... | |
| void | reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type) |
| Report an element created. More... | |
| void | reportElementAttribute (DtElementID id, DtElementAttribute *attribute) |
| Report an element attribute changed. More... | |
| void | reportElementDestroyed (DtElementID id) |
| Report an element destroyed. More... | |
| void | start () |
| Start the driver. More... | |
| void | stop () |
| Stop the driver. More... | |
| bool | tick () |
| Tick the host driver. More... | |
| virtual void | setInstanceName (const std::string &name) |
| set the Instance name. More... | |
| virtual void | installAccessories () |
| Installs accessories on this driver. More... | |
| virtual void | uninstallAccessories () |
| Removes accessories from this driver. More... | |
Protected Attributes | |
| std::string | myClassName |
| DtDe & | myDe |
| DtScene * | myScene |
| std::string | mySceneFileName |
Protected Attributes inherited from makVrv::DtDriver | |
| DtAgentManager & | myAgentManager |
| bool | myStartedFlag |
| std::string | myName |
| DtConfiguration | myConfiguration |
| bool | myPersistentFlag |
| bool | myUserControllableFlag |
| bool | myRequestStateDiffPendingFlag |
| DtElementChanges | myChanges |
Friends | |
| class | DtSceneDriverCreator |
| Allow the creator to create instances of the scene driver. More... | |
The DtSceneDriver owns the scene.
|
virtual |
DTOR.
|
protected |
CTOR.
|
virtual |
Called then this host is stared.
Implements makVrv::DtDriver.
|
virtual |
Called when this host is stopped.
Implements makVrv::DtDriver.
|
virtual |
Called when this host is ticked.
Implements makVrv::DtDriver.
|
virtual |
Ge the class name for the scene driver.
Implements makVrv::DtDriver.
Save the scene to a file.
| Input | |
| filePath | is the location of the file to save. |
| saveAs | indicates whether saving the file sets the current filename. |
Load the scene from a file.
| emitSignal | whether emit the load scene signal which will add the scene to the recents terrains |
| const std::string& makVrv::DtSceneDriver::sceneFileName | ( | ) | const |
Get the file name of the loaded scene.
| "" | is the scene was not loaded/saved from a file. |
| DtScene* makVrv::DtSceneDriver::findScene | ( | ) |
Attempt to get the scene.
| 0 | is the scene driver is not started. |
| DtScene& makVrv::DtSceneDriver::scene | ( | ) |
Get the scene object for the driver.
| DtCorruptedState | if the scene driver has not been started. |
|
virtual |
Removes all drawable objects from the scene.
This includes, Terrains, Props, trees, etc.
|
protected |
Report that a prop was created.
|
protected |
Report that a prop was destroyed.
|
protected |
|
protected |
|
protected |
Report that a terrain patch was created.
|
protected |
Report that a terrain patch was destroyed.
|
protected |
Report that a feature was created.
|
protected |
Report that a feature was destroyed.
|
protectedvirtual |
Called when a display engine is added.
This saves the scene and reloads it so the slaves are synced up with the terrain and environment.
Reimplemented from makVrv::DtDriver.
|
protectedvirtual |
|
protected |
|
friend |
Allow the creator to create instances of the scene driver.
|
protected |
|
protected |
|
protected |
|
protected |