![]() |
VR-Forces 4.7 Class Documentation
|
An object that represents everything that is visible in the scene. More...
Public Member Functions | |
| DtScene (DtDe &de, DtAgentManagerInterface &agentManager) | |
| CTOR. | |
| virtual | ~DtScene () |
| DTOR. | |
| void | getRecord (makArchives::DtSceneRecord &record) const |
| Get the record for the scene. | |
| void | setFromRecord (const makArchives::DtSceneRecord &record) |
| Set the scene via the record. | |
| bool | saveTerrain (const std::string &filePath, bool saveAs=true) |
| Save the terrain to a file. | |
| bool | loadTerrain (const DtUnicode &filePath) |
| Load the terrain from a file. | |
| bool | loadTerrain (const std::string &filePath) |
| Load the terrain from a file. | |
| bool | loadTerrain (const makArchives::DtTerrainRecord &terrainRecord) |
| load the terrain from a terrain record. | |
| void | reloadTerrain () |
| reload the terrain from the current terrain record. | |
| bool | saveEnvironment (const std::string &filePath, bool saveAs=true) |
| Save the environment to a file. | |
| bool | loadEnvironment (const std::string &filePath) |
| Load the environment from a file. | |
| bool | loadEnvironment (const makArchives::DtEnvironmentRecord &envRecord) |
| Load the environment from an environment record. | |
| bool | loadDateAndTime (const makArchives::DtDateTimeRecord &dateTimeRecord) |
| Load the date and time from a date/time record. | |
| virtual void | resetScene () |
| Reset both the terrain and the environment. | |
| virtual void | resetTerrain () |
| Reset just the terrain. | |
| virtual DtFeature * | findFeature (DtElementID id) |
| Gets a pointer to the feature matching with the given element id. | |
| virtual bool | destroyFeature (DtElementID id) |
| Destroys the feature. | |
| const std::string & | terrainFileName () const |
| Get the loaded terrain filename. | |
| const std::string & | enviromentFileName () const |
| Get the loaded environment filename. | |
| DtStreamedFeatureManager *const | streamedFeatureManager () const |
| DtStreamedFeatureManager * | streamedFeatureManager () |
| virtual const std::string & | description () |
| Get the scene's description. | |
| virtual void | setDescription (const std::string &description) |
| Set the scene's description. | |
| DtTerrain & | terrain () |
| accessor for the DtTerrain object | |
| const DtTerrain & | terrain () const |
| DtEnvironment & | environment () |
| accessor for the DtEnvironment object | |
| const DtEnvironment & | environment () const |
Protected Member Functions | |
| void | copyPropReferences (DtTerrainLayer *patch, DtScene::ScenePropReferences &spRefs) |
Protected Attributes | |
| DtDe & | myDe |
| DtTerrain * | myTerrain |
| DtEnvironment * | myEnvironment |
| DtSceneSignaler & | mySignaler |
| DtStreamedFeatureManager * | myStreamedFeatureManager |
| std::string | myTerrainFileName |
| std::string | myEnviromentFileName |
| std::string | myDescription |
| typedef std::vector< DtProp * > | ScenePropReferences |
| Prop functions. | |
| virtual void | getScenePropReferences (ScenePropReferences &props) |
| Gets the list of references to scene props. | |
| virtual DtProp * | findProp (DtElementID id) |
| Gets a pointer to the scene prop matching the passed in prop object. | |
| virtual bool | destroyProp (DtElementID id) |
| Destroys the prop. | |
An object that represents everything that is visible in the scene.
| typedef std::vector<DtProp*> makVrv::DtScene::ScenePropReferences |
Prop functions.
A list of references to scene props
| makVrv::DtScene::DtScene | ( | DtDe & | de, |
| DtAgentManagerInterface & | agentManager | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
inline |
| void makVrv::DtScene::getRecord | ( | makArchives::DtSceneRecord & | record | ) | const |
Get the record for the scene.
| void makVrv::DtScene::setFromRecord | ( | const makArchives::DtSceneRecord & | record | ) |
Set the scene via the record.
Save the terrain to a file.
| Input | |
| filePath | the location of the file to save. |
| saveAs | whether the Scene should save the filePath as the filename of the current terrain. |
| bool makVrv::DtScene::loadTerrain | ( | const std::string & | filePath | ) |
Load the terrain from a file.
| bool makVrv::DtScene::loadTerrain | ( | const makArchives::DtTerrainRecord & | terrainRecord | ) |
load the terrain from a terrain record.
| void makVrv::DtScene::reloadTerrain | ( | ) |
reload the terrain from the current terrain record.
|
inline |
accessor for the DtEnvironment object
Referenced by makVrf::DtDisabledEnvironment::getEnvironmentNames().
|
inline |
Save the environment to a file.
| Input | |
| filePath | the location of the file to save. |
| saveAs | whether the Scene should save the filePath as the filename of the current environment. |
| bool makVrv::DtScene::loadEnvironment | ( | const std::string & | filePath | ) |
Load the environment from a file.
| bool makVrv::DtScene::loadEnvironment | ( | const makArchives::DtEnvironmentRecord & | envRecord | ) |
Load the environment from an environment record.
| bool makVrv::DtScene::loadDateAndTime | ( | const makArchives::DtDateTimeRecord & | dateTimeRecord | ) |
Load the date and time from a date/time record.
|
virtual |
Reset both the terrain and the environment.
|
virtual |
Reset just the terrain.
|
virtual |
Gets the list of references to scene props.
|
virtual |
Gets a pointer to the scene prop matching the passed in prop object.
|
virtual |
Destroys the prop.
Returns true if the prop was destroyed, false otherwise.
|
virtual |
Gets a pointer to the feature matching with the given element id.
|
virtual |
Destroys the feature.
Returns true if the prop was destroyed, false otherwise.
| const std::string& makVrv::DtScene::terrainFileName | ( | ) | const |
Get the loaded terrain filename.
| const std::string& makVrv::DtScene::enviromentFileName | ( | ) | const |
Get the loaded environment filename.
| DtStreamedFeatureManager* const makVrv::DtScene::streamedFeatureManager | ( | ) | const |
| DtStreamedFeatureManager* makVrv::DtScene::streamedFeatureManager | ( | ) |
|
virtual |
Get the scene's description.
|
virtual |
Set the scene's description.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |