VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtWeatherAreaObject Class Reference

The weather area object represents a set localized environmental conditions such as local rain and fog. The area is defined by a transformed bounds.

It is a distributed object.

These objects are created by using DtWeatherAreaObjectManager::addWeatherArea().

Changes to this object will produce signals in the DtWeatherAreaObjectManager.

Public Member Functions

 DtWeatherAreaObject (DtDe &de, DtUniqueID id)
 
virtual ~DtWeatherAreaObject ()
 
 DtWeatherAreaObject ()=delete
 
 DtWeatherAreaObject (const DtWeatherAreaObject &)=delete
 
DtWeatherAreaObjectoperator= (const DtWeatherAreaObject &)=delete
 
virtual void setBounds (const DtVector &bounds, const float cornerRadius)
 
virtual void setTransform (const DtVector &position, const float orientation)
 
virtual const DtVectorposition () const
 
virtual const float orientation () const
 
virtual const DtVectorbounds () const
 
virtual const float boundsCornerRadius () const
 
virtual void setPrecipitationIntensity (const float intensity)
 
virtual const float precipitationIntensity () const
 
virtual void setPrecipitationType (const unsigned int type)
 
virtual const unsigned int precipitationType () const
 
virtual void setGroundRainAccumulation (const float depth)
 
virtual const float groundRainAccumulation () const
 
virtual void setFogColor (const DtVector &color)
 
virtual const DtVectorfogColor () const
 
virtual void setVisibilityDistance (const float distance)
 
virtual const float visibilityDistance () const
 
virtual void setOvercast (const float overcast)
 
virtual const float overcast () const
 
virtual void setLightningEnabled (const bool enabled)
 
virtual const bool lightningEnabled () const
 
virtual void setWind (const float direction, const float speed)
 
virtual const float windDirection () const
 
virtual const float windSpeed () const
 
virtual void cloudLayerAdded (DtCloudLayerId layerId, int cloudType)
 
virtual void cloudLayerRemoved (DtCloudLayerId layerId)
 

Protected Attributes

DtDemyDe
 
DtUniqueID myUniqueId
 
DtVector myPosition
 
float myOrientation
 
DtVector myBounds
 
float myBoundsCornerRadius
 
float myPrecipitationIntensity
 
unsigned int myPrecipitationType
 
float myGroundRainAccumulation
 
DtVector myFogColor
 
float myVisibilityDistance
 
float myOvercast
 
bool myLightningEnabled
 
float myWindDirection
 
float myWindSpeed
 

Constructor & Destructor Documentation

makVrv::DtWeatherAreaObject::DtWeatherAreaObject ( DtDe de,
DtUniqueID  id 
)

CTOR.

virtual makVrv::DtWeatherAreaObject::~DtWeatherAreaObject ( )
virtual

DTOR.

makVrv::DtWeatherAreaObject::DtWeatherAreaObject ( )
delete

Default Constructor not implemented – default constructor not allowed.

makVrv::DtWeatherAreaObject::DtWeatherAreaObject ( const DtWeatherAreaObject )
delete

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

DtWeatherAreaObject& makVrv::DtWeatherAreaObject::operator= ( const DtWeatherAreaObject )
delete

Assignment Operator not implemented – Copy not allowed.

virtual void makVrv::DtWeatherAreaObject::setBounds ( const DtVector bounds,
const float  cornerRadius 
)
virtual

Sets the bounds of the area.

Parameters
boundsThe (x,y,z) of the bounds.
cornerRadiusThe radius at each corner of the bounds.
virtual void makVrv::DtWeatherAreaObject::setTransform ( const DtVector position,
const float  orientation 
)
virtual

Sets the area transform. Coordinates are in the database coordinate system.

Parameters
positionThe transform position.
orientationThe yaw orientation in degrees (0 = north).
virtual const DtVector& makVrv::DtWeatherAreaObject::position ( ) const
virtual

Returns the area origin position. Coordinates are in the database coordinate system.

virtual const float makVrv::DtWeatherAreaObject::orientation ( ) const
virtual

Returns yaw orientation in degrees (0 = north). Coordinates are in the database coordinate system.

virtual const DtVector& makVrv::DtWeatherAreaObject::bounds ( ) const
virtual

Returns the bounds (x,y,z) of the area.

virtual const float makVrv::DtWeatherAreaObject::boundsCornerRadius ( ) const
virtual

Returns the bounds corner radius.

virtual void makVrv::DtWeatherAreaObject::setPrecipitationIntensity ( const float  intensity)
virtual

Sets the precipitation intensity.

Parameters
intensityThe precipitation intensity.
virtual const float makVrv::DtWeatherAreaObject::precipitationIntensity ( ) const
virtual

Returns the precipitation intensity.

virtual void makVrv::DtWeatherAreaObject::setPrecipitationType ( const unsigned int  type)
virtual

Sets the precipitation type.

Parameters
typeThe precipitation type.
virtual const unsigned int makVrv::DtWeatherAreaObject::precipitationType ( ) const
virtual

Returns the precipitation type.

virtual void makVrv::DtWeatherAreaObject::setGroundRainAccumulation ( const float  depth)
virtual

Set the ground rain accumulation depth.

Parameters
depthThe ground rain accumulation depth.
virtual const float makVrv::DtWeatherAreaObject::groundRainAccumulation ( ) const
virtual

Returns the ground rain accumulation depth.

virtual void makVrv::DtWeatherAreaObject::setFogColor ( const DtVector color)
virtual

Sets a fog color for the area.

Parameters
colorThe fog color.
virtual const DtVector& makVrv::DtWeatherAreaObject::fogColor ( ) const
virtual

Returns the fog color for the area.

virtual void makVrv::DtWeatherAreaObject::setVisibilityDistance ( const float  distance)
virtual

Sets a visibility distance for the area.

Parameters
distanceThe distance.
virtual const float makVrv::DtWeatherAreaObject::visibilityDistance ( ) const
virtual

Returns the visibility distance for the area.

virtual void makVrv::DtWeatherAreaObject::setOvercast ( const float  overcast)
virtual

Sets an overcast lighting value for the area.

Parameters
overcastThe overcast value (0.0 [clear] - 1.0 [full overcast]).
virtual const float makVrv::DtWeatherAreaObject::overcast ( ) const
virtual

Returns the overcast for the area.

virtual void makVrv::DtWeatherAreaObject::setLightningEnabled ( const bool  enabled)
virtual

Sets the lightning enabled flag for the area.

Parameters
enabledSet to true to enable lightning for the area.
virtual const bool makVrv::DtWeatherAreaObject::lightningEnabled ( ) const
virtual

Returns the lightning enabled flag for the area.

virtual void makVrv::DtWeatherAreaObject::setWind ( const float  direction,
const float  speed 
)
virtual

Sets wind for the area.

Parameters
directionThe wind direction in radians from true north (clockwise).
speedThe wind speed in meters per second.
virtual const float makVrv::DtWeatherAreaObject::windDirection ( ) const
virtual

Returns the wind direction for the area.

virtual const float makVrv::DtWeatherAreaObject::windSpeed ( ) const
virtual

Returns the wind speed for the area.

virtual void makVrv::DtWeatherAreaObject::cloudLayerAdded ( DtCloudLayerId  layerId,
int  cloudType 
)
virtual

Called when a cloud layer is added to this weather area.

Parameters
layerIdThe cloud layer id.
cloudTypeThe cloud type (see DtCloudTypeMapper).
virtual void makVrv::DtWeatherAreaObject::cloudLayerRemoved ( DtCloudLayerId  layerId)
virtual

Called when a cloud layer is removed from this weather area.

Parameters
layerIdThe cloud layer id.

Member Data Documentation

DtDe& makVrv::DtWeatherAreaObject::myDe
protected
DtUniqueID makVrv::DtWeatherAreaObject::myUniqueId
protected
DtVector makVrv::DtWeatherAreaObject::myPosition
protected
float makVrv::DtWeatherAreaObject::myOrientation
protected
DtVector makVrv::DtWeatherAreaObject::myBounds
protected
float makVrv::DtWeatherAreaObject::myBoundsCornerRadius
protected
float makVrv::DtWeatherAreaObject::myPrecipitationIntensity
protected
unsigned int makVrv::DtWeatherAreaObject::myPrecipitationType
protected
float makVrv::DtWeatherAreaObject::myGroundRainAccumulation
protected
DtVector makVrv::DtWeatherAreaObject::myFogColor
protected
float makVrv::DtWeatherAreaObject::myVisibilityDistance
protected
float makVrv::DtWeatherAreaObject::myOvercast
protected
bool makVrv::DtWeatherAreaObject::myLightningEnabled
protected
float makVrv::DtWeatherAreaObject::myWindDirection
protected
float makVrv::DtWeatherAreaObject::myWindSpeed
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)