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 | Static Public Member Functions | Protected Attributes
makVrv::DtOsgLocalWeatherQuery Class Reference

Default vrvOsg implementation of DtLocalWeatherQuery.

Delegates to DtWeatherAreaGroup::computeLocalPrecipitation() and computeLocalWind(), which are the same functions used by the visual renderer. This guarantees that audio onset boundaries match the visual rain and wind boundaries exactly, including the 0.95 bounds scale applied inside DtWeatherArea::computeLocalPrecipitation().

An instance is registered per-De automatically during DtOsgSkyObject construction via registerInstance(). Toolkit users can replace it by calling DtLocalWeatherQuery::registerInstance() with a subclass after DtOsgSkyObject has been constructed.

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

Public Member Functions

 DtOsgLocalWeatherQuery (DtDe &de)
 
virtual ~DtOsgLocalWeatherQuery ()
 
virtual bool getLocalPrecipitation (const DtVector &observerPos, bool &raining, float &normalizedIntensity) const override
 
virtual bool getLocalWind (const DtVector &observerPos, bool &audible, float &speedMs, float &directionRad) const override
 
virtual bool getLocalVisibility (const DtVector &observerPos, float &visibilityMeters) const override
 
- Public Member Functions inherited from makVrv::DtLocalWeatherQuery
virtual ~DtLocalWeatherQuery ()
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static void registerInstance (DtDe &de)
 
- Static Public Member Functions inherited from makVrv::DtLocalWeatherQuery
static DtLocalWeatherQuery * findInstance (DtDe &de)
 
static void registerInstance (DtDe &de, DtLocalWeatherQuery *query)
 
static const std::string & theClassName ()
 

Protected Attributes

DtDe & myDe
 

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtLocalWeatherQuery
 DtLocalWeatherQuery ()
 

Constructor & Destructor Documentation

makVrv::DtOsgLocalWeatherQuery::DtOsgLocalWeatherQuery ( DtDe &  de)
explicit

CTOR.

virtual makVrv::DtOsgLocalWeatherQuery::~DtOsgLocalWeatherQuery ( )
virtual

DTOR.

Member Function Documentation

virtual bool makVrv::DtOsgLocalWeatherQuery::getLocalPrecipitation ( const DtVector &  observerPos,
bool &  raining,
float &  normalizedIntensity 
) const
overridevirtual

Query local precipitation at observerPos via DtWeatherAreaGroup.

Returns true if any active local rain area covers the position. The normalizedIntensity value is blended using the same 30 m edge-fade and 0.95 bounds scale as the visual rain boundary.

Implements makVrv::DtLocalWeatherQuery.

virtual bool makVrv::DtOsgLocalWeatherQuery::getLocalWind ( const DtVector &  observerPos,
bool &  audible,
float &  speedMs,
float &  directionRad 
) const
overridevirtual

Query local wind speed and direction at observerPos via DtWeatherAreaGroup.

Returns true if any active local weather area covers the position.

Implements makVrv::DtLocalWeatherQuery.

virtual bool makVrv::DtOsgLocalWeatherQuery::getLocalVisibility ( const DtVector &  observerPos,
float &  visibilityMeters 
) const
overridevirtual

Query local visibility at observerPos via DtWeatherAreaGroup.

Returns true if any active local weather area covers the position. visibilityMeters is the lowest (densest fog) value among all covering areas, matching the same edge-fade boundary used by the visual renderer.

Implements makVrv::DtLocalWeatherQuery.

static void makVrv::DtOsgLocalWeatherQuery::registerInstance ( DtDe &  de)
static

Register a DtOsgLocalWeatherQuery for the given De.

Called automatically from DtOsgSkyObject's constructor. Only registers once; subsequent calls on the same De are a no-op so that user-supplied subclasses installed before sky-object creation are not overwritten.

Member Data Documentation

DtDe& makVrv::DtOsgLocalWeatherQuery::myDe
protected

De this adapter is bound to.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)