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 | Protected Attributes
makVrf::DtWeatherStateComponent Class Reference

1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)

Inheritance diagram for makVrf::DtWeatherStateComponent:
Inheritance graph
[legend]

Public Member Functions

 DtWeatherStateComponent (DtStateData *storage)
 
virtual const double visibility (double atAlt=0.) const
 
virtual void setVisibility (const double &)
 
virtual void setVisibility (const double &atAlt, const double &)
 
virtual const double windSpeed (double atAlt=0.) const
 
virtual void setWindSpeed (const double &)
 
virtual void setWindSpeed (const double &atAlt, const double &)
 
virtual const double windDirection (double atAlt=0.) const
 
virtual void setWindDirection (const double &)
 
virtual void setWindDirection (const double &atAlt, const double &)
 
virtual const int obscurant (double atAlt=0.) const
 
virtual void setObscurant (double atAlt, const int &)
 
virtual void addWindLevel (double altitude, double windSpeed, double windDirection, double visibleDistance, int obscurant, int cloudType, double cloudDensity, double skyCoverage)
 
virtual void clearWindLevels ()
 
virtual void removeWindLevel (double baseAltitude)
 
virtual bool windSpeedAndDirectionAtAltitude (double altMSL, double &windSpeed, double &windDirection) const
 
virtual void setWindSpeedAndDirectionAtAltitude (const double &altMSL, const double &windSpeed, const double &windDirection)
 
virtual bool visibilityAndObscurantAtAltitude (double altMSL, double &distance, int &obs) const
 
virtual void setVisibilityAndObscurantAtAltitude (const double &altMSL, const double &distance, const int &obs)
 
virtual void setWindLevels (const DtRwWindLevels &)
 
virtual const DtRwWindLevels & windLevels () const
 
- Public Member Functions inherited from makVrf::DtFrameStateInterface
 DtFrameStateInterface (DtStateData *)
 
virtual ~DtFrameStateInterface ()
 
void setIsWritable (bool b)
 
bool isWritable () const
 
UInt64 stateId () const
 
UInt64 legionGlobalId () const
 
void setLegionGlobalId (UInt64 d)
 
virtual bool isModified () const
 
virtual void clearModified ()
 
virtual void markModified ()
 
virtual
DtStateComponent::StateComponentType 
type () const
 
virtual
DtStateComponent::StateComponentType 
componentType () const =0
 
virtual const char * stringType () const =0
 
void setId (UInt64 id)
 
virtual UInt64 id () const
 
virtual void updateStateData (DtStateData *sd)
 
virtual Legion::ReadStateInstance readStateInstance () const
 
virtual Legion::WriteStateInstance writeStateInstance ()
 
void emitComponentUpdated ()
 
void setMarkedForRemoval (bool b)
 
bool markedForRemoval () const
 
bool cleared () const
 
bool advancedFrame () const
 
virtual void frameAdvanced ()
 
virtual void convertToRemote ()
 
virtual void convertToLocal ()
 
virtual void aboutToBeDeleted ()
 

Protected Attributes

DtRwWindLevels myWindLevels
 
- Protected Attributes inherited from makVrf::DtFrameStateInterface
bool myIsModified
 
UInt64 myId
 
UInt64 myStateId
 
UInt64 myLegionId
 
bool myIsWritable
 
bool myCleared
 
bool myAdvancedFrame
 
bool myMarkedForRemoval = false
 
DtStateData * myStateData
 

Additional Inherited Members

- Public Attributes inherited from makVrf::DtFrameStateInterface
boost::signals2::signal< void(DtFrameStateInterface *)> signal_stateComponentAboutToBeDeleted
 
boost::signals2::signal< void(const
DtFrameStateInterface *)> 
signal_componentModified
 
- Protected Member Functions inherited from makVrf::DtFrameStateInterface
virtual void makeWritable ()
 
virtual void makeReadOnly ()
 

Constructor & Destructor Documentation

makVrf::DtWeatherStateComponent::DtWeatherStateComponent ( DtStateData *  storage)
inline

Constructs a weather state component backed by the given state data storage.

Parameters
storageThe state data storage instance for this component.

Member Function Documentation

virtual const double makVrf::DtWeatherStateComponent::visibility ( double  atAlt = 0.) const
inlinevirtual

Weather state property accessors and mutators. Derived classes provide concrete implementations.

Accessors/mutators for wind level If altitude is same as a wind level will replace that wind level. altitude of 0 will set default wind speed and direction

Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setVisibility ( const double &  )
inlinevirtual

Weather state property accessors and mutators. Derived classes provide concrete implementations.

Accessors/mutators for wind level If altitude is same as a wind level will replace that wind level. altitude of 0 will set default wind speed and direction

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setVisibility ( const double &  atAlt,
const double &   
)
inlinevirtual

Weather state property accessors and mutators. Derived classes provide concrete implementations.

Accessors/mutators for wind level If altitude is same as a wind level will replace that wind level. altitude of 0 will set default wind speed and direction

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual const double makVrf::DtWeatherStateComponent::windSpeed ( double  atAlt = 0.) const
inlinevirtual

Returns the wind speed (m/s) at the given altitude.

Parameters
atAltAltitude in meters MSL; 0 returns the base value.
Returns
Wind speed in meters per second.

Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setWindSpeed ( const double &  )
inlinevirtual

Sets the base wind speed (m/s).

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setWindSpeed ( const double &  atAlt,
const double &   
)
inlinevirtual

Sets the wind speed (m/s) at the given altitude.

Parameters
atAltAltitude in meters MSL.

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual const double makVrf::DtWeatherStateComponent::windDirection ( double  atAlt = 0.) const
inlinevirtual

Returns the wind direction (degrees true) at the given altitude.

Parameters
atAltAltitude in meters MSL; 0 returns the base value.
Returns
Wind direction in degrees true.

Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setWindDirection ( const double &  )
inlinevirtual

Sets the base wind direction (degrees true).

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setWindDirection ( const double &  atAlt,
const double &   
)
inlinevirtual

Sets the wind direction (degrees true) at the given altitude.

Parameters
atAltAltitude in meters MSL.

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual const int makVrf::DtWeatherStateComponent::obscurant ( double  atAlt = 0.) const
inlinevirtual

Returns the obscurant type at the given altitude.

Parameters
atAltAltitude in meters MSL; 0 returns the base value.
Returns
Obscurant type identifier.

Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setObscurant ( double  atAlt,
const int &   
)
inlinevirtual

Sets the obscurant type at the given altitude.

Parameters
atAltAltitude in meters MSL.

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::addWindLevel ( double  altitude,
double  windSpeed,
double  windDirection,
double  visibleDistance,
int  obscurant,
int  cloudType,
double  cloudDensity,
double  skyCoverage 
)
inlinevirtual

Adds or replaces a wind level entry at the given altitude.

Parameters
altitudeBase altitude of the level in meters MSL.
windSpeedWind speed at this level in m/s.
windDirectionWind direction at this level in degrees true.
visibleDistanceVisibility distance in meters.
obscurantObscurant type identifier.
cloudTypeCloud type identifier.
cloudDensityCloud density value.
skyCoverageSky coverage fraction.

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::clearWindLevels ( )
inlinevirtual

Removes all wind level entries.

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::removeWindLevel ( double  baseAltitude)
inlinevirtual

Must be exact match.

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual bool makVrf::DtWeatherStateComponent::windSpeedAndDirectionAtAltitude ( double  altMSL,
double &  windSpeed,
double &  windDirection 
) const
inlinevirtual

Given the altitude, return the wind speed and direction.

Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setWindSpeedAndDirectionAtAltitude ( const double &  altMSL,
const double &  windSpeed,
const double &  windDirection 
)
inlinevirtual

Weather state property accessors and mutators. Derived classes provide concrete implementations.

Accessors/mutators for wind level If altitude is same as a wind level will replace that wind level. altitude of 0 will set default wind speed and direction

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual bool makVrf::DtWeatherStateComponent::visibilityAndObscurantAtAltitude ( double  altMSL,
double &  distance,
int &  obs 
) const
inlinevirtual

Given the altitude, return the visibility and obscurant.

Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setVisibilityAndObscurantAtAltitude ( const double &  altMSL,
const double &  distance,
const int &  obs 
)
inlinevirtual

Weather state property accessors and mutators. Derived classes provide concrete implementations.

Accessors/mutators for wind level If altitude is same as a wind level will replace that wind level. altitude of 0 will set default wind speed and direction

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual void makVrf::DtWeatherStateComponent::setWindLevels ( const DtRwWindLevels &  )
inlinevirtual

Weather state property accessors and mutators. Derived classes provide concrete implementations.

Accessors/mutators for wind level If altitude is same as a wind level will replace that wind level. altitude of 0 will set default wind speed and direction

Reimplemented in makVrf::DtWeatherStateComponentNextFrame.

virtual const DtRwWindLevels& makVrf::DtWeatherStateComponent::windLevels ( ) const
inlinevirtual

Weather state property accessors and mutators. Derived classes provide concrete implementations.

Accessors/mutators for wind level If altitude is same as a wind level will replace that wind level. altitude of 0 will set default wind speed and direction

Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.

Member Data Documentation

DtRwWindLevels makVrf::DtWeatherStateComponent::myWindLevels
protected

Wind levels data containing altitude-indexed wind, visibility, and obscurant parameters.


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)