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 Types | Protected Member Functions | Protected Attributes
makVrv::DtEnvironment Class Reference

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

Inheritance diagram for makVrv::DtEnvironment:
Inheritance graph
[legend]

Public Member Functions

 DtEnvironment (DtDe &de, DtAgentManagerInterface &sceneInterface)
 CTOR.
virtual ~DtEnvironment ()
 Virtual DTOR.
virtual void clear ()
 Clear all clouds, precipitation.
virtual void getRecord (makArchives::DtEnvironmentRecord &record)
 Put the current environment conditions into a record.
virtual void setFromRecord (const makArchives::DtEnvironmentRecord &record)
 Set the current environment conditions from a record.
virtual
makArchives::DtEnvironmentRecord 
environmentConditionRecord (const std::string &)
 Returns the environment record for the environment condition name.
virtual void addCloudLayer (const DtCloudLayer &layer)
 Add a cloud layer. (It is enabled by default).
virtual void removeCloudLayer (unsigned int layerId)
 Remove a cloud layer by index.
virtual void removeCloudLayers ()
 Remove all cloud layers for the current environment condition.
virtual void setCloudLayerEnabled (unsigned int layerId, bool enabled)
 Set whether a cloud layer is enabled (visible).
virtual float lightLevel () const
 Get the current prevailing ambient light value Allows thing to be activated/deactivated by light level; values gp from 0.
const DtSettingsBackupsettingsBackup () const
DtSettingsBackupsettingsBackup ()
virtual bool getIsUnderwater () const
 Water visibility when below water.
virtual bool isOverWater (const DtVector &localPosition, bool isVisible=true)
 Returns whether we are currently over water.
virtual float getMaximumWaveHeight ()
 Returns maximum wave height just based on the sea state.
virtual float seaLevel () const
 Returns the current sea level.
virtual void setOceanManager (DtOceanStateInterface *oceanManager)
 Set the current ocean manager which fulfills the DtOceanManagerInterface.
virtual void deleteOceanManager ()
 Use to get rid of the current (usually default) ocean manager.
virtual void saveEnvironment (const std::string &name)
virtual void setEnvironment (const std::string &name)
 Set the current environment to the environment of the given name.
virtual void removeEnvironment (const std::string &name)
 Remove an environment with the given name.
virtual void renameEnvironment (const std::string &oldName, const std::string &newName)
 Rename an environment entry.
virtual void getEnvironmentNames (std::vector< std::string > &names)
 Get the names of all the environment conditions.
virtual void setDefaultEnvironmentName (const std::string &name)
 Set the name of the default environment conditions.
virtual std::string defaultEnvironmentName () const
 Get the name of the default environment conditions.
virtual void setCloudCover (DtVrfWeatherCloudState cloudCover)
 Set / get which cloud cover to use.
virtual DtVrfWeatherCloudState cloudCover () const
virtual int cloudLayerCount () const
 Set / Get cloud additional layers.
virtual const DtCloudLayercloudLayer (unsigned int layerId) const
 Get the specified cloud layer.
virtual void setCloudLayer (unsigned int layerId, const DtCloudLayer &layer)
 Sets the layer specified by layerId to layer, if it exists.
virtual bool useCustomCloudCover () const
 Set / get whether custom clouds are used. Not supported in 1.6.
virtual void setUseCustomCloudCover (bool enabled)
virtual void setAirTurbidity (float turbidity)
 Set / get the air turbidity (haziness)
virtual float airTurbidity () const
virtual void setVisibleDistance (float distance)
 Set / get the visible distance in meters.
virtual float visibleDistance () const
virtual void setPrecipitationType (PrecipitationType type)
 Set / get the precipitation type.
virtual PrecipitationType precipitationType () const
virtual void setPrecipitationIntensity (float intensity)
 Set / get the precipitation intensity.
virtual float precipitationIntensity () const
virtual void setWindSpeed (float speed)
 Set / get the wind speed in meters per second.
virtual float windSpeed () const
virtual void setWindDirection (float direction)
 Set / get the wind direction in radians from north (clockwise).
virtual float windDirection () const
virtual void setAmbientAirTemperature (float temperature)
 Set / get the ambient air temperature in Celsius.
virtual float ambientAirTemperature () const
virtual void setFogHeight (float height)
 Set / get the fog ceiling height in meters.
virtual float fogHeight () const
virtual void setFogColor (const DtVector &color)
 Set / get the fog color in normalized color components.
virtual DtVector fogColor () const
virtual void setSeaState (int state)
 Set / get the sea state according to the Beaufort Scale.
virtual int seaState () const
virtual void setSeaStateDirection (float dir)
 Set / get the sea state direction in radians from north.
virtual float seaStateDirection () const
virtual void setWindDrivenSeaState (bool enabled)
 Set / get if sea state is wind driven or manually driven.
virtual bool windDrivenSeaState () const
virtual void setSwellState (int state)
 Set / get the sea-swell state according to the Douglas Scale.
virtual int swellState () const
virtual void setSwellStateDirection (float dir)
 Set / get the sea-swell state direction in radians from north.
virtual float swellStateDirection () const
virtual void setWindFetch (float distance)
 Set / get the ocean fetch.
virtual float windFetch () const
virtual void setSeaChoppiness (float chop)
 Set / get the amount of chop on the sea.
virtual float seaChoppiness () const
void setUnderwaterVisibilityEnabled (bool enabled)
bool underwaterVisibilityEnabled () const
virtual void setUnderwaterVisibility (float distance)
 Set / get the maximum visibility under water in meters.
virtual float underwaterVisibility () const
virtual void setWaterSurfaceTransparency (float normalizedValue)
 Set / get the transparency value of water surface.
virtual float waterSurfaceTransparency () const
virtual void setSurgeDepth (float meters)
 Set / Get the surge depth in distance.
virtual float surgeDepth () const
virtual void setDepthOffset (float meters)
 Set / Get the depth offset in distance.
virtual float depthOffset () const
virtual void setAmbientWaterTemperature (float temperature)
 Set / get the ambient water temperature in celsius.
virtual float ambientWaterTemperature () const
virtual void setWaterCurrentSpeed (float speed)
 Set / get the speed of water currents in meters per second.
virtual float waterCurrentSpeed () const
virtual void setWaterCurrentDirection (float direction)
 Set / get the direction of water currents in radians from north (clockwise).
virtual float waterCurrentDirection () const
virtual void setTidalOffset (float meters)
 Set / get the current tidal offset from mean-sea-level in meters.
virtual float tidalOffset () const
virtual void setTidalDirection (bool inOut)
 Set / get the current direction of tidal flow (0=out, 1=in).
virtual bool tidalDirection () const
virtual void setThermoclineDepth (unsigned int layer, float depth)
 Set / get the thermocline depths.
virtual float thermoclineDepth (unsigned int layer) const
virtual void setThermoclinePermeability (unsigned int layer, float permeability)
 Set / get the thermocline permeability.
virtual float thermoclinePermeability (unsigned int layer) const
void loadDefaults (bool loadOnlyFactorySettings=false)
void restore ()
 Restores to backup settings from startup default.
void saveAsDefaults ()
 Save the current settings as the default settings.
virtual void exportSettings (const std::string &filename)
 Import / export the list of named conditions (.enlx file)
virtual void importSettings (const std::string &filename)
- Public Member Functions inherited from makVrv::DtEnvironmentInterface
 DtEnvironmentInterface ()
 CTOR.
virtual ~DtEnvironmentInterface ()
 Virtual DTOR.

Protected Types

typedef std::vector< DtCloudLayerCloudLayersVector

Protected Member Functions

virtual void slot_coordinateSystemChanged ()
 Called when the current coordinate system changes.
virtual void slot_oceanLayerAdded (const DtOceanLayer &layer)
 Called by signal when an ocean layer is added.
virtual void slot_oceanLayerToBeDeleted (const DtOceanLayer &layer)
 Called by signal when an ocean layer is about to be removed.
virtual void slot_oceanLayerSeaLevelChanged (const DtOceanLayer &layer, double seaLevel)
 Called by signal when an ocean layer's sea level changes.
virtual void slot_oceanLayerLodRangeChanged (const DtOceanLayer &layer, int range)
 Called by signal when an ocean layer's lod range (the altitude at which we LOD out dynamic ocean) changes.
virtual void slot_surgeDepthChanged (double depth)
 Called by signal when the surge depth changes.
virtual void slot_depthOffsetChanged (double offset)
 Called by signal when the depth offset changes.
virtual void updateEnvironment ()
 Update the environment settings for the current environment.
virtual void initializeOcean ()
 Initialize the (distributed) dynamic ocean object with the current environmental values.
virtual void createCloudLayers ()
virtual void processAddedCloudLayer (const DtCloudLayer &layer, int cloudIndex)
virtual void autoSave ()
virtual void sendMarineEnvironmentToOceanObject ()
 Helper function to set the appropriate marine environment on a dynamic ocean object.
virtual void sendWeatherEnvironmentToSkyObject ()
 Helper function to set the appropriate weather environment on a sky object.
virtual void sendCloudCoverToSkyObject ()
 Helper function to set the appropriate cloud conditions on a sky object.

Protected Attributes

DtDemyDe
DtAgentManagerInterfacemySceneInterface
DtSkyObjectAgent * mySkyObject
DtDynamicOceanObjectAgent * myDynamicOceanObject
DtRecordSettingsBackupInterfacemySettingsBackup
DtSignalConnectionManager myConnections
makArchives::DtEnvironmentRecord myCurrentSettings
DtEnvironmentList myEnvironmentList
CloudLayersVector myCurrentCloudLayers
DtOceanStateInterfacemyOceanManager

Additional Inherited Members

- Public Types inherited from makVrv::DtEnvironmentInterface
enum  PrecipitationType { None = DtSkyObject::None, Rain = DtSkyObject::Rain, Snow = DtSkyObject::SnowWet }

Detailed Description

The DtEnvironment configures the environmental effects for a scene.

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

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtEnvironment::DtEnvironment ( DtDe de,
DtAgentManagerInterface sceneInterface 
)

CTOR.

virtual makVrv::DtEnvironment::~DtEnvironment ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrv::DtEnvironment::clear ( )
virtual

Clear all clouds, precipitation.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::getRecord ( makArchives::DtEnvironmentRecord record)
virtual

Put the current environment conditions into a record.

Parameters
[out]recordis the record to be populated with data.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::setFromRecord ( const makArchives::DtEnvironmentRecord record)
virtual

Set the current environment conditions from a record.

Parameters
[in]recordis the record to read the data from.

Implements makVrv::DtEnvironmentInterface.

virtual makArchives::DtEnvironmentRecord makVrv::DtEnvironment::environmentConditionRecord ( const std::string &  )
virtual

Returns the environment record for the environment condition name.

virtual void makVrv::DtEnvironment::saveEnvironment ( const std::string &  name)
virtual

Save the current environment with the given name.

Parameters
[in]nameis the name of the environment to save.
Note
If an environment with the given name does not exist, the current environment will be saved as a new environment. If an environment with the given name does exist, the environment will be over written with current environment settings.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::setEnvironment ( const std::string &  name)
virtual

Set the current environment to the environment of the given name.

Parameters
[in]nameis the name of the environment to set.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::removeEnvironment ( const std::string &  name)
virtual

Remove an environment with the given name.

Parameters
[in]nameis the name of the environment to remove.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::renameEnvironment ( const std::string &  oldName,
const std::string &  newName 
)
virtual

Rename an environment entry.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::getEnvironmentNames ( std::vector< std::string > &  names)
virtual

Get the names of all the environment conditions.

Implements makVrv::DtEnvironmentInterface.

Referenced by makVrf::DtDisabledEnvironment::getEnvironmentNames().

virtual void makVrv::DtEnvironment::setDefaultEnvironmentName ( const std::string &  name)
virtual

Set the name of the default environment conditions.

Parameters
[in]nameis the name of the default environment.

Implements makVrv::DtEnvironmentInterface.

virtual std::string makVrv::DtEnvironment::defaultEnvironmentName ( ) const
virtual

Get the name of the default environment conditions.

Returns
The name of the default environment.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::setCloudCover ( DtVrfWeatherCloudState  cloudCover)
virtual

Set / get which cloud cover to use.

This chooses one of the NOAA-defined cloud conditions. cloudCover is one of: DtVrfWeatherCloudStateClear DtVrfWeatherCloudStateMostlyClear DtVrfWeatherCloudStateCloudy DtVrfWeatherCloudStatePartlyCloudy DtVrfWeatherCloudStateMostlyCloudy DtVrfWeatherCloudStateOvercast DtVrfWeatherCloudStateThunderstorm

Implements makVrv::DtEnvironmentInterface.

virtual DtVrfWeatherCloudState makVrv::DtEnvironment::cloudCover ( ) const
virtual
virtual int makVrv::DtEnvironment::cloudLayerCount ( ) const
virtual

Set / Get cloud additional layers.

Get a count of the current cloud layers in the environment

Implements makVrv::DtEnvironmentInterface.

virtual const DtCloudLayer& makVrv::DtEnvironment::cloudLayer ( unsigned int  layerId) const
virtual

Get the specified cloud layer.

Throws DtException if the layerId >= cloudLayerCount()

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::setCloudLayer ( unsigned int  layerId,
const DtCloudLayer layer 
)
virtual

Sets the layer specified by layerId to layer, if it exists.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::addCloudLayer ( const DtCloudLayer layer)
virtual

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

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::removeCloudLayer ( unsigned int  layerId)
virtual

Remove a cloud layer by index.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::removeCloudLayers ( )
virtual

Remove all cloud layers for the current environment condition.

Implements makVrv::DtEnvironmentInterface.

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

Set whether a cloud layer is enabled (visible).

This is a wrapper for getting a layer, setting its enabled flag, and then calling setCloudLayer with the modified layer

Implements makVrv::DtEnvironmentInterface.

virtual bool makVrv::DtEnvironment::useCustomCloudCover ( ) const
virtual

Set / get whether custom clouds are used. Not supported in 1.6.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::setUseCustomCloudCover ( bool  enabled)
virtual
virtual void makVrv::DtEnvironment::setAirTurbidity ( float  turbidity)
virtual

Set / get the air turbidity (haziness)

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::airTurbidity ( ) const
virtual
virtual void makVrv::DtEnvironment::setVisibleDistance ( float  distance)
virtual

Set / get the visible distance in meters.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::visibleDistance ( ) const
virtual
virtual void makVrv::DtEnvironment::setPrecipitationType ( PrecipitationType  type)
virtual

Set / get the precipitation type.

Implements makVrv::DtEnvironmentInterface.

virtual PrecipitationType makVrv::DtEnvironment::precipitationType ( ) const
virtual
virtual void makVrv::DtEnvironment::setPrecipitationIntensity ( float  intensity)
virtual

Set / get the precipitation intensity.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::precipitationIntensity ( ) const
virtual
virtual void makVrv::DtEnvironment::setWindSpeed ( float  speed)
virtual

Set / get the wind speed in meters per second.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::windSpeed ( ) const
virtual
virtual void makVrv::DtEnvironment::setWindDirection ( float  direction)
virtual

Set / get the wind direction in radians from north (clockwise).

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::windDirection ( ) const
virtual
virtual void makVrv::DtEnvironment::setAmbientAirTemperature ( float  temperature)
virtual

Set / get the ambient air temperature in Celsius.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::ambientAirTemperature ( ) const
virtual
virtual void makVrv::DtEnvironment::setFogHeight ( float  height)
virtual

Set / get the fog ceiling height in meters.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::fogHeight ( ) const
virtual
virtual void makVrv::DtEnvironment::setFogColor ( const DtVector color)
virtual

Set / get the fog color in normalized color components.

Implements makVrv::DtEnvironmentInterface.

virtual DtVector makVrv::DtEnvironment::fogColor ( ) const
virtual
virtual void makVrv::DtEnvironment::setSeaState ( int  state)
virtual

Set / get the sea state according to the Beaufort Scale.

Implements makVrv::DtEnvironmentInterface.

virtual int makVrv::DtEnvironment::seaState ( ) const
virtual
virtual void makVrv::DtEnvironment::setSeaStateDirection ( float  dir)
virtual

Set / get the sea state direction in radians from north.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::seaStateDirection ( ) const
virtual
virtual void makVrv::DtEnvironment::setWindDrivenSeaState ( bool  enabled)
virtual

Set / get if sea state is wind driven or manually driven.

Implements makVrv::DtEnvironmentInterface.

virtual bool makVrv::DtEnvironment::windDrivenSeaState ( ) const
virtual
virtual void makVrv::DtEnvironment::setSwellState ( int  state)
virtual

Set / get the sea-swell state according to the Douglas Scale.

Implements makVrv::DtEnvironmentInterface.

virtual int makVrv::DtEnvironment::swellState ( ) const
virtual
virtual void makVrv::DtEnvironment::setSwellStateDirection ( float  dir)
virtual

Set / get the sea-swell state direction in radians from north.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::swellStateDirection ( ) const
virtual
virtual void makVrv::DtEnvironment::setWindFetch ( float  distance)
virtual

Set / get the ocean fetch.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::windFetch ( ) const
virtual
virtual void makVrv::DtEnvironment::setSeaChoppiness ( float  chop)
virtual

Set / get the amount of chop on the sea.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::seaChoppiness ( ) const
virtual
void makVrv::DtEnvironment::setUnderwaterVisibilityEnabled ( bool  enabled)
virtual

Set / Get underwater visibility enabled.

Implements makVrv::DtEnvironmentInterface.

bool makVrv::DtEnvironment::underwaterVisibilityEnabled ( ) const
virtual
virtual void makVrv::DtEnvironment::setUnderwaterVisibility ( float  distance)
virtual

Set / get the maximum visibility under water in meters.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::underwaterVisibility ( ) const
virtual
virtual void makVrv::DtEnvironment::setWaterSurfaceTransparency ( float  normalizedValue)
virtual

Set / get the transparency value of water surface.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::waterSurfaceTransparency ( ) const
virtual
virtual void makVrv::DtEnvironment::setSurgeDepth ( float  meters)
virtual

Set / Get the surge depth in distance.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::surgeDepth ( ) const
virtual
virtual void makVrv::DtEnvironment::setDepthOffset ( float  meters)
virtual

Set / Get the depth offset in distance.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::depthOffset ( ) const
virtual
virtual void makVrv::DtEnvironment::setAmbientWaterTemperature ( float  temperature)
virtual

Set / get the ambient water temperature in celsius.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::ambientWaterTemperature ( ) const
virtual
virtual void makVrv::DtEnvironment::setWaterCurrentSpeed ( float  speed)
virtual

Set / get the speed of water currents in meters per second.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::waterCurrentSpeed ( ) const
virtual
virtual void makVrv::DtEnvironment::setWaterCurrentDirection ( float  direction)
virtual

Set / get the direction of water currents in radians from north (clockwise).

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::waterCurrentDirection ( ) const
virtual
virtual void makVrv::DtEnvironment::setTidalOffset ( float  meters)
virtual

Set / get the current tidal offset from mean-sea-level in meters.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::tidalOffset ( ) const
virtual
virtual void makVrv::DtEnvironment::setTidalDirection ( bool  inOut)
virtual

Set / get the current direction of tidal flow (0=out, 1=in).

Implements makVrv::DtEnvironmentInterface.

virtual bool makVrv::DtEnvironment::tidalDirection ( ) const
virtual
virtual void makVrv::DtEnvironment::setThermoclineDepth ( unsigned int  layer,
float  depth 
)
virtual

Set / get the thermocline depths.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::thermoclineDepth ( unsigned int  layer) const
virtual
virtual void makVrv::DtEnvironment::setThermoclinePermeability ( unsigned int  layer,
float  permeability 
)
virtual

Set / get the thermocline permeability.

Implements makVrv::DtEnvironmentInterface.

virtual float makVrv::DtEnvironment::thermoclinePermeability ( unsigned int  layer) const
virtual
virtual float makVrv::DtEnvironment::lightLevel ( ) const
virtual

Get the current prevailing ambient light value Allows thing to be activated/deactivated by light level; values gp from 0.

(total darkness) to 1. (noon-day sun )

void makVrv::DtEnvironment::loadDefaults ( bool  loadOnlyFactorySettings = false)
virtual

Load default settings.

Parameters
[in]loadOnlyFactorySettingsflag to load factory settings.

Implements makVrv::DtEnvironmentInterface.

void makVrv::DtEnvironment::restore ( )
virtual

Restores to backup settings from startup default.

Implements makVrv::DtEnvironmentInterface.

void makVrv::DtEnvironment::saveAsDefaults ( )
virtual

Save the current settings as the default settings.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::exportSettings ( const std::string &  filename)
virtual

Import / export the list of named conditions (.enlx file)

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::importSettings ( const std::string &  filename)
virtual
const DtSettingsBackup* makVrv::DtEnvironment::settingsBackup ( ) const
inline
DtSettingsBackup* makVrv::DtEnvironment::settingsBackup ( )
inline
virtual bool makVrv::DtEnvironment::getIsUnderwater ( ) const
virtual

Water visibility when below water.

virtual bool makVrv::DtEnvironment::isOverWater ( const DtVector localPosition,
bool  isVisible = true 
)
virtual

Returns whether we are currently over water.

This can't be implemented correctly until we have coastal boundaries. For now, we use the returned height of an terrain intersect call - sea level is water, anything higher is not. The isVisible flag allows for an optimization when Triton ocean is used. The optimization is used by default; the isVisible flag says that the query position is close enought to an observer so that a height map should be available for use. This is often the case when doing intersections involving objects/effects that are LOD's in/out; if the object is close enough to an observer to be of interest (a rotor wash or wake, say) then it can use the height map optimization. If you do not know if the query position is close to an observer, than set isVisible to false, in which case the terrain intersection method will be used.

virtual float makVrv::DtEnvironment::getMaximumWaveHeight ( )
virtual

Returns maximum wave height just based on the sea state.

virtual float makVrv::DtEnvironment::seaLevel ( ) const
virtual

Returns the current sea level.

virtual void makVrv::DtEnvironment::setOceanManager ( DtOceanStateInterface oceanManager)
virtual

Set the current ocean manager which fulfills the DtOceanManagerInterface.

virtual void makVrv::DtEnvironment::deleteOceanManager ( )
virtual

Use to get rid of the current (usually default) ocean manager.

virtual void makVrv::DtEnvironment::slot_coordinateSystemChanged ( )
protectedvirtual

Called when the current coordinate system changes.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::slot_oceanLayerAdded ( const DtOceanLayer layer)
protectedvirtual

Called by signal when an ocean layer is added.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::slot_oceanLayerToBeDeleted ( const DtOceanLayer layer)
protectedvirtual

Called by signal when an ocean layer is about to be removed.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::slot_oceanLayerSeaLevelChanged ( const DtOceanLayer layer,
double  seaLevel 
)
protectedvirtual

Called by signal when an ocean layer's sea level changes.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::slot_oceanLayerLodRangeChanged ( const DtOceanLayer layer,
int  range 
)
protectedvirtual

Called by signal when an ocean layer's lod range (the altitude at which we LOD out dynamic ocean) changes.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::slot_surgeDepthChanged ( double  depth)
protectedvirtual

Called by signal when the surge depth changes.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::slot_depthOffsetChanged ( double  offset)
protectedvirtual

Called by signal when the depth offset changes.

Implements makVrv::DtEnvironmentInterface.

virtual void makVrv::DtEnvironment::updateEnvironment ( )
protectedvirtual

Update the environment settings for the current environment.

virtual void makVrv::DtEnvironment::initializeOcean ( )
protectedvirtual

Initialize the (distributed) dynamic ocean object with the current environmental values.

virtual void makVrv::DtEnvironment::createCloudLayers ( )
protectedvirtual
virtual void makVrv::DtEnvironment::processAddedCloudLayer ( const DtCloudLayer layer,
int  cloudIndex 
)
protectedvirtual
virtual void makVrv::DtEnvironment::autoSave ( )
protectedvirtual
virtual void makVrv::DtEnvironment::sendMarineEnvironmentToOceanObject ( )
protectedvirtual

Helper function to set the appropriate marine environment on a dynamic ocean object.

virtual void makVrv::DtEnvironment::sendWeatherEnvironmentToSkyObject ( )
protectedvirtual

Helper function to set the appropriate weather environment on a sky object.

virtual void makVrv::DtEnvironment::sendCloudCoverToSkyObject ( )
protectedvirtual

Helper function to set the appropriate cloud conditions on a sky object.

Member Data Documentation

DtDe& makVrv::DtEnvironment::myDe
protected
DtAgentManagerInterface& makVrv::DtEnvironment::mySceneInterface
protected
DtSkyObjectAgent* makVrv::DtEnvironment::mySkyObject
protected
DtDynamicOceanObjectAgent* makVrv::DtEnvironment::myDynamicOceanObject
protected
DtRecordSettingsBackupInterface* makVrv::DtEnvironment::mySettingsBackup
protected
DtSignalConnectionManager makVrv::DtEnvironment::myConnections
protected
makArchives::DtEnvironmentRecord makVrv::DtEnvironment::myCurrentSettings
protected
DtEnvironmentList makVrv::DtEnvironment::myEnvironmentList
protected
CloudLayersVector makVrv::DtEnvironment::myCurrentCloudLayers
protected
DtOceanStateInterface* makVrv::DtEnvironment::myOceanManager
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)