SilverLining::WindVolume Class Reference

Defines an area of a given wind velocity and direction bounded by two altitudes. More...

#include <WindVolume.h>

List of all members.

Public Member Functions

 WindVolume ()
 Default constructor.
virtual ~WindVolume ()
 Destructor.
void SetMinAltitude (double metersMSL)
 Set the minimum altitude affected by this object's wind settings.
double GetMinAltitude () const
 Retrieves the minimum altitude, in meters above mean sea level, affected by this object.
void SetMaxAltitude (double metersMSL)
 Set the maximum altitude affected by this object's wind settings.
double GetMaxAltitude () const
 Retrieves the maximum altitude, in meters above mean sea level, affected by this object.
void SetWindSpeed (double metersPerSecond)
 Set the wind velocity within this WindVolume, in meters per second.
double GetWindSpeed () const
 Retrieves the wind velocity within this WindVolume, in meters per second.
void SetDirection (double degreesFromNorth)
 Sets the wind direction, in degrees East from North.
double GetDirection () const
 Retrieves the wind direction, in degrees East from North.
bool Inside (double metersMSL) const
 Evaluates if a given altitude is affected by this WindVolume.
bool Serialize (std::ostream &stream)
 Flattens this object and everything in it to a stream buffer.
bool Unserialize (std::istream &stream)
 Restores this object from the stream created using Serialize().

Detailed Description

Defines an area of a given wind velocity and direction bounded by two altitudes.

Passed into AtmosphericConditions::SetWind() to define wind that will affect cloud motion.


Constructor & Destructor Documentation

SilverLining::WindVolume::WindVolume (  )  [inline]

Default constructor.

Creates a WindVolume with default settings of no wind from zero to 100,000 meters above mean sea level.

virtual SilverLining::WindVolume::~WindVolume (  )  [inline, virtual]

Destructor.


Member Function Documentation

double SilverLining::WindVolume::GetDirection (  )  const [inline]

Retrieves the wind direction, in degrees East from North.

This is the direction the wind is blowing toward, not the direction it is coming from.

See also:
SetDirection()
double SilverLining::WindVolume::GetMaxAltitude (  )  const [inline]

Retrieves the maximum altitude, in meters above mean sea level, affected by this object.

See also:
SetMaxAltitude()
double SilverLining::WindVolume::GetMinAltitude (  )  const [inline]

Retrieves the minimum altitude, in meters above mean sea level, affected by this object.

See also:
SetMinAltitude()
double SilverLining::WindVolume::GetWindSpeed (  )  const [inline]

Retrieves the wind velocity within this WindVolume, in meters per second.

See also:
SetWindSpeed()
bool SilverLining::WindVolume::Inside ( double  metersMSL  )  const [inline]

Evaluates if a given altitude is affected by this WindVolume.

Parameters:
metersMSL The altitude to query on, in meters above mean sea level.
Returns:
True if the given altitude is affected by this WindVolume object.
bool SilverLining::WindVolume::Serialize ( std::ostream &  stream  )  [inline]

Flattens this object and everything in it to a stream buffer.

void SilverLining::WindVolume::SetDirection ( double  degreesFromNorth  )  [inline]

Sets the wind direction, in degrees East from North.

This is the direction the wind is blowing toward, not the direction it is coming from.

See also:
GetDirection()
void SilverLining::WindVolume::SetMaxAltitude ( double  metersMSL  )  [inline]

Set the maximum altitude affected by this object's wind settings.

Parameters:
metersMSL The maximum altitude of this WindVolume in meters above mean sea level.
See also:
GetMaxAltitude()
void SilverLining::WindVolume::SetMinAltitude ( double  metersMSL  )  [inline]

Set the minimum altitude affected by this object's wind settings.

Parameters:
metersMSL The minimum altitude of this WindVolume in meters above mean sea level.
See also:
GetMinAltitude()
void SilverLining::WindVolume::SetWindSpeed ( double  metersPerSecond  )  [inline]

Set the wind velocity within this WindVolume, in meters per second.

See also:
GetWindSpeed()

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

Generated by  doxygen 1.6.2