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

Public Member Functions | |
| virtual | ~DtSceneDriver () |
| DTOR. | |
| virtual bool | onStart () |
| Called then this host is stared. | |
| virtual bool | onStop () |
| Called when this host is stopped. | |
| virtual bool | onTick () |
| Called when this host is ticked. | |
| virtual const std::string & | className () const |
| Ge the class name for the scene driver. | |
| bool | saveScene (const std::string &filePath, bool saveAs=true) |
| Save the scene to a file. | |
| bool | loadScene (const std::string &filePath) |
| Load the scene from a file. | |
| const std::string & | sceneFileName () const |
| Get the file name of the loaded scene. | |
| DtScene * | findScene () |
| Attempt to get the scene. | |
| DtScene & | scene () |
| Get the scene object for the driver. | |
| virtual void | clearScene () |
| Removes all drawable objects from the scene. | |
Protected Member Functions | |
| DtSceneDriver (DtDe &de) | |
| CTOR. | |
| void | reportPropCreated (const DtProp &prop) |
| Report that a prop was created. | |
| void | reportPropDestroyed (const DtProp &prop) |
| Report that a prop was destroyed. | |
| void | reportTerrainPatchCreated (const DtTerrainPatch &patch) |
| Report that a terrain patch was created. | |
| void | reportTerrainPatchDestroyed (const DtTerrainPatch &patch) |
| Report that a terrain patch was destroyed. | |
| void | reportFeatureCreated (const DtFeature &feature) |
| Report that a feature was created. | |
| void | reportFeatureDestroyed (const DtFeature &feature) |
| Report that a feature was destroyed. | |
| virtual void | slot_displayEngineAdded (const DtDeRecord &igRecord) |
| Called when a display engine is added. | |
| virtual void | slot_elementAttributeChangeRequested (DtUniqueID id, DtUniqueID parentId, DtBoost::shared_ptr< const DtElementAttribute > atr) |
| void | handlePropElementChanged (DtProp &prop, const DtElementAttribute *attr) |
Protected Attributes | |
| std::string | myClassName |
| DtDe & | myDe |
| DtScene * | myScene |
| std::string | mySceneFileName |
Friends | |
| class | DtSceneDriverCreator |
| Allow the creator to create instances of the scene driver. | |
The DtSceneDriver owns the scene.
| virtual makVrv::DtSceneDriver::~DtSceneDriver | ( | ) | [virtual] |
DTOR.
| makVrv::DtSceneDriver::DtSceneDriver | ( | DtDe & | de | ) | [protected] |
CTOR.
| virtual bool makVrv::DtSceneDriver::onStart | ( | ) | [virtual] |
Called then this host is stared.
Implements makVrv::DtDriver.
| virtual bool makVrv::DtSceneDriver::onStop | ( | ) | [virtual] |
Called when this host is stopped.
Implements makVrv::DtDriver.
| virtual bool makVrv::DtSceneDriver::onTick | ( | ) | [virtual] |
Called when this host is ticked.
Implements makVrv::DtDriver.
| virtual const std::string& makVrv::DtSceneDriver::className | ( | ) | const [virtual] |
Ge the class name for the scene driver.
Implements makVrv::DtDriver.
| bool makVrv::DtSceneDriver::saveScene | ( | const std::string & | filePath, |
| bool | saveAs = true |
||
| ) |
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. |
| bool makVrv::DtSceneDriver::loadScene | ( | const std::string & | filePath | ) |
Load the scene from a file.
| 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. |
Attempt to get the scene.
| 0 | is the scene driver is not started. |
Get the scene object for the driver.
| DtCorruptedState | if the scene driver has not been started. |
| virtual void makVrv::DtSceneDriver::clearScene | ( | ) | [virtual] |
Removes all drawable objects from the scene.
This includes, Terrains, Props, trees, etc.
| void makVrv::DtSceneDriver::reportPropCreated | ( | const DtProp & | prop | ) | [protected] |
Report that a prop was created.
| void makVrv::DtSceneDriver::reportPropDestroyed | ( | const DtProp & | prop | ) | [protected] |
Report that a prop was destroyed.
| void makVrv::DtSceneDriver::reportTerrainPatchCreated | ( | const DtTerrainPatch & | patch | ) | [protected] |
Report that a terrain patch was created.
| void makVrv::DtSceneDriver::reportTerrainPatchDestroyed | ( | const DtTerrainPatch & | patch | ) | [protected] |
Report that a terrain patch was destroyed.
| void makVrv::DtSceneDriver::reportFeatureCreated | ( | const DtFeature & | feature | ) | [protected] |
Report that a feature was created.
| void makVrv::DtSceneDriver::reportFeatureDestroyed | ( | const DtFeature & | feature | ) | [protected] |
Report that a feature was destroyed.
| virtual void makVrv::DtSceneDriver::slot_displayEngineAdded | ( | const DtDeRecord & | igRecord | ) | [protected, virtual] |
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.
| virtual void makVrv::DtSceneDriver::slot_elementAttributeChangeRequested | ( | DtUniqueID | id, |
| DtUniqueID | parentId, | ||
| DtBoost::shared_ptr< const DtElementAttribute > | atr | ||
| ) | [protected, virtual] |
| void makVrv::DtSceneDriver::handlePropElementChanged | ( | DtProp & | prop, |
| const DtElementAttribute * | attr | ||
| ) | [protected] |
friend class DtSceneDriverCreator [friend] |
Allow the creator to create instances of the scene driver.
std::string makVrv::DtSceneDriver::myClassName [protected] |
DtDe& makVrv::DtSceneDriver::myDe [protected] |
DtScene* makVrv::DtSceneDriver::myScene [protected] |
std::string makVrv::DtSceneDriver::mySceneFileName [protected] |