![]() |
VR-Forces Developer's Guide
|
Used by the weather system to define an area of blowing dust.
A blowing dust weather area is created using the following: DtWeatherAreaFactory::instance(myDe).create(DtWeatherAreaFactory::AreaTypeBlowingDust)

Public Member Functions | |
| virtual | ~DtWeatherAreaSurfaceBounds () |
| DtWeatherAreaSurfaceBounds ()=delete | |
| DtWeatherAreaSurfaceBounds (const DtWeatherAreaSurfaceBounds &other)=delete | |
| DtWeatherAreaSurfaceBounds & | operator= (const DtWeatherAreaSurfaceBounds &other)=delete |
| virtual void | setEnabled (bool enabled) |
| virtual void | setBounds (const DtVector &bounds, float cornerRadius) |
| virtual void | setTransform (const DtVector &position, float orientation, bool relativeToCamera=false) |
| virtual const float * | heights (int &sizeX, int &sizeY) const |
| virtual const unsigned int * | packedData (int &sizeX, int &sizeY) const |
| virtual void | cullUpdate (const osg::Vec3d &camPos, const Frustum_64 &frustum, DtJobSplitter *jobSplitter, const osg::Camera *camera) override |
Public Member Functions inherited from makVrv::DtWeatherArea | |
| virtual | ~DtWeatherArea () |
| DtWeatherArea ()=delete | |
| DtWeatherArea (const DtWeatherArea &other)=delete | |
| DtWeatherArea & | operator= (const DtWeatherArea &other)=delete |
| virtual bool | enabled () const |
| virtual bool | culled () const |
| virtual const osg::Vec3d & | position () const |
| virtual const osg::Matrixd & | rotation () const |
| virtual float | boundsX () const |
| virtual float | boundsY () const |
| virtual float | boundsZ () const |
| virtual float | boundsCornerRadius () const |
| virtual void | drawWeatherLayerEffects (DtWeatherEffect::DrawData &drawData) |
| virtual float | computeBoundsDistance2d (const osg::Vec3d &position) |
| virtual float | computeBoundsDistance3d (const osg::Vec3d &position) |
| virtual float | computeBoundsDistance2dAndTop (const osg::Vec3d &position) |
| virtual void | setPrecipitationIntensity (const float intensity) |
| virtual const float | precipitationIntensity () const |
| virtual void | setPrecipitationType (const DtSkyObject::PrecipitationType type) |
| virtual const DtSkyObject::PrecipitationType | precipitationType () const |
| virtual void | setGroundRainAccumulation (const float depth) |
| virtual const float | groundRainAccumulation () const |
| virtual void | setFogColor (const DtVector &color) |
| virtual const DtVector & | fogColor () 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 | setGlobalWind (const float windDirectionRad, const float windSpeedMps) |
| virtual void | setWind (const float windDirectionRad, const float windSpeedMps) |
| virtual void | setLightningEnabled (const bool enabled) |
| virtual const bool | lightningEnabled () const |
| virtual void | cloudLayerAdded (DtCloudLayerId layerId, int cloudType) |
| virtual void | cloudLayerRemoved (DtCloudLayerId layerId) |
| virtual bool | computeLocalPrecipitation (const osg::Vec3d &location, int &type, float &intensity) |
| virtual bool | computeLocalGroundRainAccumulation (const osg::Vec3d &location, float &depth, float &blend) |
| virtual void | addWeatherLayer (DtWeatherLayer::LayerType layerType) |
| virtual void | removeWeatherLayer (DtWeatherLayer::LayerType layerType) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Protected Member Functions | |
| DtWeatherAreaSurfaceBounds (makVrv::DtDe &de) | |
| virtual void | slot_terrainDataChanged (DtTerrainPatchObject &tpo) |
| virtual void | slot_simulationUpdate () |
| virtual void | onAreaChanged () |
Protected Member Functions inherited from makVrv::DtWeatherArea | |
| DtWeatherArea (makVrv::DtDe &de) | |
| virtual void | updateTransform () |
| virtual void | computeBasis (const osg::Vec3d &inGeocentricPos, osg::Matrixd &rotOut) const |
| virtual bool | clampPositionToTerrain (osg::Vec3d &position, float clampDistance) const |
| virtual bool | isPositionBelowSealevel (const DtVector &position) const |
Protected Attributes | |
| bool | mySimulationUpdate |
| bool | myTransformDirty |
| float | myTerrainDirtyTimer |
| double | myLastTime |
| DtWeatherSurfaceGrid * | myWeatherSurfaceGrid |
| DtUniqueID | myHeightMapRegisteredId |
| DtSignalConnectionManager | myConnections |
| boost::signalslib::connection | myPostUpdateConnection |
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 |
| std::vector< DtWeatherLayer * > | myWeatherLayers |
| DtIntersector * | myIntersector = nullptr |
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) |
| static float | computeBoundsDistance3d (const osg::Vec3d &position, const osg::Vec4d &bounds, const osg::Vec3d &boundsPosition, const osg::Matrixd &boundsRotation) |
| static float | computeBoundsDistance2dAndTop (const osg::Vec3d &position, const osg::Vec4d &bounds, const osg::Vec3d &boundsPosition, const osg::Matrixd &boundsRotation) |
|
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. |
| orientation | 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.
|
overridevirtual |
Culls the area based on the current camera. Sets the culled state of any weather layers associated with this area.
| camPos | The current position of the camera being drawn. |
| frustum | The frustum used for culling. |
| jobSplitter | A job splitter to add predraw jobs to. |
| camera | The current camera being drawn. |
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 |
|
protected |