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

The DtEnvironment configures the environmental effects for a scene. More...

List of all members.

Public Types

enum  PrecipitationType { Rain = 0, Snow = 1 }

Public Member Functions

 DtEnvironment (DtDe &de, DtAgentManagerInterface &sceneInterface)
 CTOR.
 ~DtEnvironment ()
 DTOR.
void clear ()
 Clear all clouds, precipitation.
void getRecord (makArchives::DtEnvironmentRecord &record)
 Get the environment by a record.
void setFromRecord (const makArchives::DtEnvironmentRecord &record)
 Set the environment by a record.
void addCloudLayer (const makArchives::DtCloudLayerRecord &record)
 Add a cloud layer. (It is enabled by default).
void setCloudLayerEnabled (unsigned int index, bool enabled)
 Set whether a cloud layer is enabled (visible).
void setCloudLayerPosition (unsigned int index, double xCoord, double yCoord)
 Sets the position of a cloud layer (not auto-saved)
void removeCloudLayer (unsigned int index)
 Remove a cloud layer by index;.
void setAirTurbidity (float turbidity)
 Set the air turbidity (haziness)
void setVisibleDistance (float distance)
 Set the visible distance in meters.
void setPrecipitationEnabled (bool enabled)
 Set whether precipitation is enabled.
void setPrecipitationType (PrecipitationType type)
 Set the precipitation type.
void setPrecipitationIntensity (float intensity)
 Set the precipitation intensity.
const
makArchives::DtEnvironmentRecord
settings () const
 Get the current settings.
void loadDefaults (bool loadOnlyFactorySettings=false)
void restore ()
void saveAsDefaults ()
void exportSettings (const std::string &fileName)
void importSettings (const std::string &fileName)
const DtSettingsBackupsettingsBackup () const
DtSettingsBackupsettingsBackup ()

Static Public Member Functions

static int translateCloudTypeStringToEnum (const std::string &str)
static std::string translateCloudTypeEnumToString (int id)

Protected Member Functions

virtual void slot_coordinateSystemChanged (const std::string &, const std::string &)
 Called when the current coordinate system changes.

Protected Attributes

DtDemyDe
DtAgentManagerInterfacemySceneInterface
makArchives::DtEnvironmentRecordmySettings
DtSkyObjectAgent * mySkyObject
DtRecordSettingsBackupInterfacemySettingsBackup
DtSignalConnectionManager myConnections

Detailed Description

The DtEnvironment configures the environmental effects for a scene.

Environmental effects include clouds, precipitation, air turbidity, and visibility


Member Enumeration Documentation

Enumerator:
Rain 
Snow 

Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Clear all clouds, precipitation.

Get the environment by a record.

Set the environment by a record.

Add a cloud layer. (It is enabled by default).

void makVrv::DtEnvironment::setCloudLayerEnabled ( unsigned int  index,
bool  enabled 
)

Set whether a cloud layer is enabled (visible).

void makVrv::DtEnvironment::setCloudLayerPosition ( unsigned int  index,
double  xCoord,
double  yCoord 
)

Sets the position of a cloud layer (not auto-saved)

void makVrv::DtEnvironment::removeCloudLayer ( unsigned int  index)

Remove a cloud layer by index;.

void makVrv::DtEnvironment::setAirTurbidity ( float  turbidity)

Set the air turbidity (haziness)

Set the visible distance in meters.

Set whether precipitation is enabled.

Set the precipitation type.

Set the precipitation intensity.

Get the current settings.

static int makVrv::DtEnvironment::translateCloudTypeStringToEnum ( const std::string &  str) [static]
static std::string makVrv::DtEnvironment::translateCloudTypeEnumToString ( int  id) [static]
void makVrv::DtEnvironment::loadDefaults ( bool  loadOnlyFactorySettings = false)
void makVrv::DtEnvironment::exportSettings ( const std::string &  fileName)
void makVrv::DtEnvironment::importSettings ( const std::string &  fileName)
virtual void makVrv::DtEnvironment::slot_coordinateSystemChanged ( const std::string &  ,
const std::string &   
) [protected, virtual]

Called when the current coordinate system changes.


Member Data Documentation

DtSkyObjectAgent* makVrv::DtEnvironment::mySkyObject [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)