![]() |
VR-Forces 4.10 Class Documentation
|
Used by the weather system to define an area of blowing sand. More...

Public Member Functions | |
| virtual | ~DtWeatherAreaBlowingSand () |
| DTOR. More... | |
| DtWeatherAreaBlowingSand ()=delete | |
| Default Constructor not implemented. More... | |
| DtWeatherAreaBlowingSand (const DtWeatherAreaBlowingSand &other)=delete | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtWeatherAreaBlowingSand & | operator= (const DtWeatherAreaBlowingSand &other)=delete |
| Assignment Operator not implemented - Assignment not allowed. More... | |
| virtual void | setEnabled (bool enabled) |
| Enables or disables the weather area. More... | |
| virtual void | setBounds (const DtVector &bounds, float cornerRadius) |
| Sets the bounds of the area. More... | |
| virtual void | setTransform (const DtVector &position, float orientation, bool relativeToCamera=false) |
| Sets the area transform. More... | |
| virtual const float * | heights (int &sizeX, int &sizeY) const |
| Returns the height grid used for terrain clamping. More... | |
| virtual const unsigned int * | packedData (int &sizeX, int &sizeY) const |
| Returns the grid heights/blend packedData array used for terrain clamping. More... | |
| virtual void | cullUpdate (const osg::Vec3d &camPos, const osg::Matrixd &viewMatrixI, const std::vector< osg::Vec4d > &cullingPlanes, DtJobSplitter *jobSplitter) |
| Culls the area based on the current camera. More... | |
| bool | usesWeatherLayerType (DtWeatherLayer::LayerType layerType) const |
| Returns true if this area uses the give weather layer type. More... | |
Public Member Functions inherited from makVrv::DtWeatherArea | |
| virtual | ~DtWeatherArea () |
| DTOR. More... | |
| DtWeatherArea ()=delete | |
| Default Constructor not implemented. More... | |
| DtWeatherArea (const DtWeatherArea &other)=delete | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtWeatherArea & | operator= (const DtWeatherArea &other)=delete |
| Assignment Operator not implemented - Assignment not allowed. More... | |
| virtual bool | enabled () const |
| Returns the enabled state. More... | |
| virtual bool | culled () const |
| Returns the culled state. More... | |
| virtual const osg::Vec3d & | position () const |
| Returns the area origin position in world space. More... | |
| virtual const osg::Matrixd & | rotation () const |
| Returns the area origin rotation in world space. More... | |
| virtual float | boundsX () const |
| Returns the bounds X size. More... | |
| virtual float | boundsY () const |
| Returns the bounds Y size. More... | |
| virtual float | boundsZ () const |
| Returns the bounds Z size. More... | |
| virtual float | boundsCornerRadius () const |
| Returns the bounds curner radius. More... | |
| virtual float | computeBoundsDistance2D (const osg::Vec3d &position) |
| Computes the xy distance from the given world position to the edge of the bounds. More... | |
| virtual float | computeBoundsDistance3D (const osg::Vec3d &position) |
| Computes the distance from the given world position to the edge of the bounds The bounds is a rounded rect. More... | |
| virtual void | setPrecipitationIntensity (const float intensity) |
| Sets a precipitation intensity for the area. More... | |
| virtual const float | precipitationIntensity () const |
| Returns the precipitation intensity for the area. More... | |
| virtual void | setPrecipitationType (const DtSkyObject::PrecipitationType type) |
| Sets a precipitation type for the area. More... | |
| virtual const DtSkyObject::PrecipitationType | precipitationType () const |
| Returns the precipitation type for the area. More... | |
| virtual void | setGroundRainAccumulation (const float depth) |
| Set the ground rain accumulation depth. More... | |
| virtual const float | groundRainAccumulation () const |
| Returns the ground rain accumulation depth. More... | |
| virtual void | setFogColor (const DtVector &color) |
| Sets a fog color for the area. More... | |
| virtual const DtVector & | fogColor () const |
| Returns the fog color for the area. More... | |
| virtual void | setVisibilityDistance (const float distance) |
| Sets a visibility distance for the area. More... | |
| virtual const float | visibilityDistance () const |
| Returns the visibility distance for the area. More... | |
| virtual void | setOvercast (const float overcast) |
| Sets a overcast percentage (lighting) for the area. More... | |
| virtual const float | overcast () const |
| Returns the overcast percentage for the area. More... | |
| virtual void | setWind (const float windDirectionRad, const float windSpeedMps) |
| Sets the current wind. More... | |
| virtual void | setLightningEnabled (const bool enabled) |
| Enables or disables lightning. More... | |
| virtual const bool | lightningEnabled () const |
| Returns true if lightning is enabled for the area. More... | |
| virtual bool | computeLocalPrecipitation (const osg::Vec3d &location, int &type, float &intensity) |
| Computes the precipitation at the given location. More... | |
| virtual bool | computeLocalGroundRainAccumulation (const osg::Vec3d &location, float &depth, float &blend) |
| Computes the ground rain accumulation at the given location. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Protected Member Functions | |
| DtWeatherAreaBlowingSand (makVrv::DtDe &de) | |
| CTOR. More... | |
| virtual void | slot_terrainDataChanged (DtTerrainPatchObject &tpo) |
| Signal handler for terrain changes. More... | |
| virtual void | slot_simulationUpdate () |
| Signal handler to run a simulation update. More... | |
| virtual void | onAreaChanged () |
| Called when the area bounds or transform has changed. More... | |
Protected Member Functions inherited from makVrv::DtWeatherArea | |
| DtWeatherArea (makVrv::DtDe &de) | |
| CTOR. More... | |
| virtual void | updateTransform () |
| Updates the current transform based on current settings. More... | |
| virtual void | computeBasis (const osg::Vec3d &inGeocentricPos, osg::Matrixd &rotOut) const |
| Computes a basis rotation matrix for the given geocentric position. More... | |
| virtual bool | clampPositionToTerrain (osg::Vec3d &position, float clampDistance) const |
| Clamps the given position to the terrain surface. More... | |
| virtual bool | isSphereVisible (const std::vector< osg::Vec4d > &planes, const osg::Vec3d ¢er, double radius) const |
| Tests to see if a sphere is visible using the given frustum planes. More... | |
Protected Attributes | |
| DtDe & | myDe |
| bool | mySimulationUpdate |
| bool | myTransformDirty |
| float | myTerrainDirtyTimer |
| double | myLastTime |
| DtWeatherSurfaceGrid * | myWeatherSurfaceGrid |
| bool | myHeightMapRegistered |
Protected Attributes inherited from makVrv::DtWeatherArea | |
| DtDe & | myDe |
| bool | myEnabled |
| bool | myCulled |
| DtVector | mySetPosition |
| float | mySetOrientation |
| bool | mySetRelativeToCamera |
| osg::Vec3d | myPosition |
| osg::Matrixd | myRotation |
| float | myBoundsX |
| float | myBoundsY |
| float | myBoundsZ |
| float | myBoundsCornerRadius |
| float | myPrecipitationBoundsScale |
| float | myPrecipitationIntensity |
| DtSkyObject::PrecipitationType | myPrecipitationType |
| float | myGroundRainAccumulation |
| bool | myLightningEnabled |
| DtVector | myFogColor |
| float | myVisibilityDistance |
| float | myOvercast |
| float | myWindDirectionRad |
| float | myWindSpeedMps |
Friends | |
| class | DtWeatherAreaFactory |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtWeatherArea | |
| static float | computeBoundsDistance2D (const osg::Vec3d &position, const osg::Vec4d &bounds, const osg::Vec3d &boundsPosition, const osg::Matrixd &boundsRotation) |
| Computes the xy distance from the given world position to the edge of the bounds. More... | |
| static float | computeBoundsDistance3D (const osg::Vec3d &position, const osg::Vec4d &bounds, const osg::Vec3d &boundsPosition, const osg::Matrixd &boundsRotation) |
| Computes the distance from the given world position to the edge of the bounds The bounds is a rounded rect with transform at bottom. More... | |
Used by the weather system to define an area of blowing sand.
A blowing sand weather area is created using the following: DtWeatherAreaFactory::instance(myDe).create(DtWeatherAreaFactory::AreaTypeBlowingSand)
|
virtual |
DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
protected |
CTOR.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Enables or disables the weather area.
| enabled | Set to true to enable the area. |
Reimplemented from makVrv::DtWeatherArea.
|
virtual |
Sets the bounds of the area.
| bounds | The (x,y,z) of the bounds. |
| cornerRadius | The radius at each corner of the bounds. |
Reimplemented from makVrv::DtWeatherArea.
|
virtual |
Sets the area transform.
| position | The transform position in world space. |
| oritantation | The yaw orientation in degrees (0 = north). |
| relativeToCamera | Set to true if the position is relative to the current camera. |
Reimplemented from makVrv::DtWeatherArea.
|
virtual |
Returns the height grid used for terrain clamping.
| sizeX | Filled in output for the grid size in the x direction. |
| sizeY | Filled in output for the grid size in the y direction. |
|
virtual |
Returns the grid heights/blend packedData array used for terrain clamping.
| sizeX | Filled in output for the grid size in the x direction. |
| sizeY | Filled in output for the grid size in the y direction. |
Reimplemented from makVrv::DtWeatherArea.
|
virtual |
Culls the area based on the current camera.
| cam | The current camera being drawn. |
| jobSplitter | A job splitter to add predraw jobs to. |
Reimplemented from makVrv::DtWeatherArea.
|
virtual |
Returns true if this area uses the give weather layer type.
| layerType | The layer type to check. |
Reimplemented from makVrv::DtWeatherArea.
|
protectedvirtual |
Signal handler for terrain changes.
|
protectedvirtual |
Signal handler to run a simulation update.
|
protectedvirtual |
Called when the area bounds or transform has changed.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |