VR-Forces 5.0.1 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 | Private Member Functions
makVrv::DtOsgEarthLocalWindObject Class Reference

The osgEarth specific local wind object. It can represent a point (ex. rotorwash) or directional (ex. blowing) wind. For a DtOsgEarthLocalWindObject to be processed (aka enabled) by osgEarth you have to add

<Wind name = "RotorWash">
  <winds>
  </winds>
</Wind>

to your .earth file. This allows the DtLocalWindObjectManager (or DtEnvironment) to add/remove winds and have it reflected in the osgEarth terrain.

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

Public Member Functions

 DtOsgEarthLocalWindObject (DtDe &de, DtUniqueID id)
 
virtual ~DtOsgEarthLocalWindObject ()
 
virtual void setType (WindType type)
 
virtual void setLocation (const DtVector &location)
 
virtual void setWindSpeed (float metersPerSecond)
 
virtual void setWindDirection (float radians)
 
virtual void slot_osgEarthMapNodeFound (DtTerrainPatchObject &tpo)
 
virtual void slot_onCoordinateSystemChanged (const std::string &name, const std::string &params)
 
- Public Member Functions inherited from makVrv::DtLocalWindObject
 DtLocalWindObject (DtDe &de, DtUniqueID id)
 
virtual ~DtLocalWindObject ()
 
virtual WindType type () const
 
virtual const DtVectorlocation () const
 
virtual const float & windSpeed () const
 
virtual const float & windDirection () const
 

Protected Attributes

osgEarth::MapNode * myMapNode
 
osgEarth::Wind * myWind
 
osgEarth::WindLayer * myWindLayer
 
DtSignalConnectionManager myConnections
 
- Protected Attributes inherited from makVrv::DtLocalWindObject
WindType myType
 
float mySpeed
 
DtVector myPosition
 
float myDirection
 
DtDemyDe
 
DtUniqueID myUniqueId
 

Private Member Functions

 DtOsgEarthLocalWindObject ()
 
 DtOsgEarthLocalWindObject (const DtOsgEarthLocalWindObject &)
 
DtOsgEarthLocalWindObjectoperator= (const DtOsgEarthLocalWindObject &)
 

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtOsgEarthLocalWindObject::~DtOsgEarthLocalWindObject ( )
virtual

DTOR.

makVrv::DtOsgEarthLocalWindObject::DtOsgEarthLocalWindObject ( )
private

Default Constructor not implemented – default constructor not allowed.

makVrv::DtOsgEarthLocalWindObject::DtOsgEarthLocalWindObject ( const DtOsgEarthLocalWindObject )
private

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

virtual void makVrv::DtOsgEarthLocalWindObject::setType ( WindType  type)
virtual

Sets the wind type.

Reimplemented from makVrv::DtLocalWindObject.

virtual void makVrv::DtOsgEarthLocalWindObject::setLocation ( const DtVector location)
virtual

Set the local wind location for a TYPE_POINT wind.

Reimplemented from makVrv::DtLocalWindObject.

virtual void makVrv::DtOsgEarthLocalWindObject::setWindSpeed ( float  metersPerSecond)
virtual

Set the local wind speed in meters per second.

Reimplemented from makVrv::DtLocalWindObject.

virtual void makVrv::DtOsgEarthLocalWindObject::setWindDirection ( float  radians)
virtual

Set the local wind direction for a TYPE_DIRECTIONAL wind blowing from in radians from north.

Reimplemented from makVrv::DtLocalWindObject.

virtual void makVrv::DtOsgEarthLocalWindObject::slot_osgEarthMapNodeFound ( DtTerrainPatchObject tpo)
virtual

Slot triggered when the osgEarth map node is found in a terrain patch object. If a terrain is added or reloaded, the wind objects have to be set up again.

virtual void makVrv::DtOsgEarthLocalWindObject::slot_onCoordinateSystemChanged ( const std::string &  name,
const std::string &  params 
)
virtual

Receive signals from the shared state about coordinate system changes if the terrain is reloaded or a different terrain is loaded The wind layer has to be found again.

DtOsgEarthLocalWindObject& makVrv::DtOsgEarthLocalWindObject::operator= ( const DtOsgEarthLocalWindObject )
private

Assignment Operator not implemented – Copy not allowed.

Member Data Documentation

osgEarth::MapNode* makVrv::DtOsgEarthLocalWindObject::myMapNode
protected
osgEarth::Wind* makVrv::DtOsgEarthLocalWindObject::myWind
protected
osgEarth::WindLayer* makVrv::DtOsgEarthLocalWindObject::myWindLayer
protected
DtSignalConnectionManager makVrv::DtOsgEarthLocalWindObject::myConnections
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)