VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtScene Class Reference

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 std::string &filePath)
 Load the terrain from a file.
bool loadTerrain (const makArchives::DtTerrainRecord &terrainRecord)
 load the terrain from a 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 DtFeaturefindFeature (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
DtStreamedFeatureManagerstreamedFeatureManager ()
virtual const std::string & description ()
 Get the scene's description.
virtual void setDescription (const std::string &description)
 Set the scene's description.
DtTerrainterrain ()
 accessor for the DtTerrain object
const DtTerrainterrain () const
DtEnvironmentenvironment ()
 accessor for the DtEnvironment object
const DtEnvironmentenvironment () const

Protected Member Functions

void copyPropReferences (DtTerrainLayer *patch, DtScene::ScenePropReferences &spRefs)

Protected Attributes

DtDemyDe
DtTerrainmyTerrain
DtEnvironmentmyEnvironment
DtSceneSignalermySignaler
DtStreamedFeatureManagermyStreamedFeatureManager
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 DtPropfindProp (DtElementID id)
 Gets a pointer to the scene prop matching the passed in prop object.
virtual bool destroyProp (DtElementID id)
 Destroys the prop.

Detailed Description

An object that represents everything that is visible in the scene.

Member Typedef Documentation

Prop functions.

A list of references to scene props

Constructor & Destructor Documentation

makVrv::DtScene::DtScene ( DtDe de,
DtAgentManagerInterface agentManager 
)

CTOR.

virtual makVrv::DtScene::~DtScene ( )
virtual

DTOR.

Member Function Documentation

DtTerrain& makVrv::DtScene::terrain ( )
inline

accessor for the DtTerrain object

const DtTerrain& makVrv::DtScene::terrain ( ) const
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.

bool makVrv::DtScene::saveTerrain ( const std::string &  filePath,
bool  saveAs = true 
)

Save the terrain to a file.

Parameters
Input
filePaththe location of the file to save.
saveAswhether 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.

DtEnvironment& makVrv::DtScene::environment ( )
inline
const DtEnvironment& makVrv::DtScene::environment ( ) const
inline
bool makVrv::DtScene::saveEnvironment ( const std::string &  filePath,
bool  saveAs = true 
)

Save the environment to a file.

Parameters
Input
filePaththe location of the file to save.
saveAswhether 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 void makVrv::DtScene::resetScene ( )
virtual

Reset both the terrain and the environment.

virtual void makVrv::DtScene::resetTerrain ( )
virtual

Reset just the terrain.

virtual void makVrv::DtScene::getScenePropReferences ( ScenePropReferences props)
virtual

Gets the list of references to scene props.

virtual DtProp* makVrv::DtScene::findProp ( DtElementID  id)
virtual

Gets a pointer to the scene prop matching the passed in prop object.

Warning
Do not delete this pointer. Use destroyProp instead.
virtual bool makVrv::DtScene::destroyProp ( DtElementID  id)
virtual

Destroys the prop.

Returns true if the prop was destroyed, false otherwise.

virtual DtFeature* makVrv::DtScene::findFeature ( DtElementID  id)
virtual

Gets a pointer to the feature matching with the given element id.

virtual bool makVrv::DtScene::destroyFeature ( DtElementID  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 const std::string& makVrv::DtScene::description ( )
virtual

Get the scene's description.

virtual void makVrv::DtScene::setDescription ( const std::string &  description)
virtual

Set the scene's description.

void makVrv::DtScene::copyPropReferences ( DtTerrainLayer patch,
DtScene::ScenePropReferences spRefs 
)
protected

Member Data Documentation

DtDe& makVrv::DtScene::myDe
protected
DtTerrain* makVrv::DtScene::myTerrain
protected
DtEnvironment* makVrv::DtScene::myEnvironment
protected
DtSceneSignaler& makVrv::DtScene::mySignaler
protected
DtStreamedFeatureManager* makVrv::DtScene::myStreamedFeatureManager
protected
std::string makVrv::DtScene::myTerrainFileName
protected
std::string makVrv::DtScene::myEnviromentFileName
protected
std::string makVrv::DtScene::myDescription
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)