![]() |
VR-Forces Developer's Guide
|
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)

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 () |
|
inline |
Constructs a weather state component backed by the given state data storage.
| storage | The state data storage instance for this component. |
|
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.
|
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.
|
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.
|
inlinevirtual |
Returns the wind speed (m/s) at the given altitude.
| atAlt | Altitude in meters MSL; 0 returns the base value. |
Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Sets the base wind speed (m/s).
Reimplemented in makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Sets the wind speed (m/s) at the given altitude.
| atAlt | Altitude in meters MSL. |
Reimplemented in makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Returns the wind direction (degrees true) at the given altitude.
| atAlt | Altitude in meters MSL; 0 returns the base value. |
Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Sets the base wind direction (degrees true).
Reimplemented in makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Sets the wind direction (degrees true) at the given altitude.
| atAlt | Altitude in meters MSL. |
Reimplemented in makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Returns the obscurant type at the given altitude.
| atAlt | Altitude in meters MSL; 0 returns the base value. |
Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Sets the obscurant type at the given altitude.
| atAlt | Altitude in meters MSL. |
Reimplemented in makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Adds or replaces a wind level entry at the given altitude.
| altitude | Base altitude of the level in meters MSL. |
| windSpeed | Wind speed at this level in m/s. |
| windDirection | Wind direction at this level in degrees true. |
| visibleDistance | Visibility distance in meters. |
| obscurant | Obscurant type identifier. |
| cloudType | Cloud type identifier. |
| cloudDensity | Cloud density value. |
| skyCoverage | Sky coverage fraction. |
Reimplemented in makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Removes all wind level entries.
Reimplemented in makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Must be exact match.
Reimplemented in makVrf::DtWeatherStateComponentNextFrame.
|
inlinevirtual |
Given the altitude, return the wind speed and direction.
Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.
|
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.
|
inlinevirtual |
Given the altitude, return the visibility and obscurant.
Reimplemented in makVrf::DtWeatherStateComponentCurrentFrame, and makVrf::DtWeatherStateComponentNextFrame.
|
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.
|
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.
|
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.
|
protected |
Wind levels data containing altitude-indexed wind, visibility, and obscurant parameters.