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::DtLocalWindObject Class Reference

The base local wind object represents a point (ex. rotorwash) or directional (ex. blowing) wind. This is the base and DtOsgEarthLocalWindObject derives from this to apply these values to osgEarth terrains. It is a distributed object. For a local wind object 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 to add/remove winds and have it reflected in the osgEarth terrain.

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

Public Member Functions

 DtLocalWindObject (DtDe &de, DtUniqueID id)
 
virtual ~DtLocalWindObject ()
 
virtual void setType (WindType type)
 
virtual WindType type () const
 
virtual void setLocation (const DtVector &location)
 
virtual const DtVectorlocation () const
 
virtual void setWindSpeed (float metersPerSecond)
 
virtual const float & windSpeed () const
 
virtual void setWindDirection (float radians)
 
virtual const float & windDirection () const
 

Protected Attributes

WindType myType
 
float mySpeed
 
DtVector myPosition
 
float myDirection
 
DtDemyDe
 
DtUniqueID myUniqueId
 

Private Member Functions

 DtLocalWindObject ()
 
 DtLocalWindObject (const DtLocalWindObject &)
 
DtLocalWindObjectoperator= (const DtLocalWindObject &)
 

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtLocalWindObject::~DtLocalWindObject ( )
virtual

DTOR.

makVrv::DtLocalWindObject::DtLocalWindObject ( )
private

Default Constructor not implemented – default constructor not allowed.

makVrv::DtLocalWindObject::DtLocalWindObject ( const DtLocalWindObject )
private

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

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

Sets/gets the wind type.

Reimplemented in makVrv::DtOsgEarthLocalWindObject.

virtual WindType makVrv::DtLocalWindObject::type ( ) const
virtual

Sets/gets the wind type.

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

Sets/gets the local wind location for a TYPE_POINT wind.

Reimplemented in makVrv::DtOsgEarthLocalWindObject.

virtual const DtVector& makVrv::DtLocalWindObject::location ( ) const
virtual

Sets/gets the local wind location for a TYPE_POINT wind.

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

Set/gets the local wind speed in meters per second.

Reimplemented in makVrv::DtOsgEarthLocalWindObject.

virtual const float& makVrv::DtLocalWindObject::windSpeed ( ) const
virtual

Set/gets the local wind speed in meters per second.

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

Sets/gets the local wind direction for a TYPE_DIRECTIONAL wind blowing from in radians from north.

Reimplemented in makVrv::DtOsgEarthLocalWindObject.

virtual const float& makVrv::DtLocalWindObject::windDirection ( ) const
virtual

Sets/gets the local wind direction for a TYPE_DIRECTIONAL wind blowing from in radians from north.

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

Assignment Operator not implemented – Copy not allowed.

Member Data Documentation

WindType makVrv::DtLocalWindObject::myType
protected
float makVrv::DtLocalWindObject::mySpeed
protected
DtVector makVrv::DtLocalWindObject::myPosition
protected
float makVrv::DtLocalWindObject::myDirection
protected
DtDe& makVrv::DtLocalWindObject::myDe
protected
DtUniqueID makVrv::DtLocalWindObject::myUniqueId
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)