VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtIgSettingsController Class Reference

This class acts on various CIGI messages that change settings in the IG. More...

Public Member Functions

virtual ~DtIgSettingsController ()
 Destructor. More...
 

Protected Member Functions

 DtIgSettingsController (DtDe &de, DtCigiConnection &connection)
 Constructor. More...
 
virtual void slot_onPerformanceOverlayChanged (bool enable)
 Slot called when the DtComponentSignaler::signal_performanceOverlaySet signal is received. More...
 
virtual void performSetPerformanceOverlay (bool enable)
 Turns the performance overlay on or off. More...
 
virtual void slot_onPrecipitationChanged (bool enabled, int precipType, float intensity)
 Slot called when the DtComponentSignaler::signal_precipitationSet signal is received. More...
 
virtual void slot_onAtmosphericLayerSet (float baseMSLAltitude, float speed, float direction, float visibilityDistance, unsigned int obscurant)
 Slot called when signal_atmosphericLayerSet is raised. More...
 
virtual void performSetAtmosphericLayer (float baseMSLAltitude, float speed, float direction, float visibilityDistance, unsigned int obscurant)
 Called by slot_onAtmosphericLayerSet if single threaded, or queued to be run in the main thread Always called from the main thread. More...
 
virtual void slot_onVisibilityChanged (float visibility)
 Slot called when signal_visibilityChanged is raised - meters. More...
 
virtual void performSetVisibility (float visibility)
 Called by slot_onVisibilityChanged if single threaded, or queued to be run in the main thread Always called from the main thread. More...
 
virtual void slot_onWindSpeedAndDirectionSet (float windSpeed, float windDirection)
 Slot called when signal_windSpeedAndDirectionSet is raised - m/s and radians. More...
 
virtual void performSetWindSpeedAndDirection (float windSpeed, float windDirection)
 Called by slot_onWindSpeedAndDirectionSet if single threaded, or queued to be run in the main thread Always called from the main thread. More...
 
void slot_onLightPointGroupColorSet (std::string groupName, float colorR, float colorG, float colorB, float colorA)
 Slot called when signal_lightPointGroupColorSet is raised. More...
 
void performLightPointGroupColor (std::string groupName, float colorR, float colorG, float colorB, float colorA)
 Called by slot_onLightPointGroupColorSet if single threaded, or queued to be run in the main thread Always called from the main thread. More...
 
virtual void performSetPrecipitation (bool enabled, int precipType, float intensity)
 Sets the precipitation enabled, type, and intensity. More...
 
virtual void slot_onWireframeModeChanged (bool onOff)
 Slot called when the DtComponentSignaler::signal_wireFrameRenderingSet signal is received. More...
 
virtual void performSetWireframeMode (bool onOff)
 Turns wireframe mode on or off. More...
 
virtual void slot_onPagerLodControlChanged (float pagerLodScale, float pagerHighLodAngle)
 
virtual void performSetPagerLodControl (float pagerLodScale, float pagerHighLodAngle)
 
virtual void slot_onTimeSet (int year, int month, int day, int hour, int minute)
 Slot called when the DtCigiConnection::signal_timeSet signal is received. More...
 
virtual void slot_onEphemerisEnableSet (bool continuous)
 Slot called when the DtCigiConnection::signal_ephemerisEnableSet signal is received. More...
 
virtual void performSetTime (int year, int month, int day, int hour, int minute)
 Sets the time. More...
 
virtual void performSetEphemerisEnable (bool continuous)
 Sets the ephemeris model state. More...
 
virtual void slot_onShadowsSet (bool enabled, int quality)
 Slot called when the DtComponentSignaler::signal_shadowsSet signal is received. More...
 
virtual void performShadowsSet (bool enabled, int quality)
 Turns the shadows on/off and sets the quality. More...
 
virtual void slot_onWaterCurrentSpeedAndDirectionSet (float speed, float direction)
 Slot called when the DtComponentSignaler::signal_waterCurrentSpeedAndDirectionSet is received. More...
 
virtual void performWaterCurrentSpeedAndDirectionSet (float speed, float direction)
 Sets the water current speed and direction in the environment object. More...
 
virtual void slot_windDrivenSeaStateSet (bool windDriven)
 Slot called when the DtComponentSignaler::signal_windDrivenSeaStateSet is received. More...
 
virtual void performWindDrivenSeaStateSet (bool windDriven)
 Sets if the sea state is driven by the wind. More...
 
virtual void slot_waterSurfaceTransparencySet (float transparency)
 Slot called when the DtComponentSignaler::signal_waterSurfaceTransparencySet is received. More...
 
virtual void performWaterSurfaceTransparencySet (float transparency)
 Sets the transparency of the water surface. More...
 
virtual void slot_seaLevelSet (float seaLevel)
 Slot called when the DtComponentSignaler::signal_seaLevelSet is received. More...
 
virtual void performSeaLevelSet (float transparency)
 Sets the water level/height. More...
 
virtual void slot_waterChoppinessSet (bool choppiness)
 Slot for the choppiness signal calls performChoppinessSet in a thread safe manner. More...
 
virtual void performWaterChoppinessSet (bool choppiness)
 Sets the choppiness, note this is 0-1 from a CIGI bool in the maritime packet. More...
 
virtual void slot_seaStateSet (int seaState)
 Slot called when sea state signal is called call perform sea state set in a thread safe manner. More...
 
virtual void performSeaStateSet (int seaState)
 Sets the sea states Always called from the main thread. More...
 
virtual void slot_seaStateDirectionSet (float seaStateDirection)
 slots called when the sea state direction signal is called calls perfrom set sea state direction in a thread safe manner More...
 
virtual void performSeaStateDirectionSet (float seaStateDirection)
 set the sea state direction Always called form the main thread More...
 
virtual void slot_seaSwellStateSet (int seaSwellState)
 Slot called when sea Swell signal is called call perform sea Swell set in a thread safe manner. More...
 
virtual void performSeaSwellStateSet (int seaSwellState)
 Sets the sea Swells Always called from the main thread. More...
 
virtual void slot_seaSwellStateDirectionSet (float seaSwellStateDirection)
 slots called when the sea Swell direction signal is called calls perfrom set sea Swell direction in a thread safe manner More...
 
virtual void performSeaSwellStateDirectionSet (float seaSwellStateDirection)
 set the sea Swell direction Always called form the main thread More...
 
virtual void slot_environmentalConditionChanged (std::string)
 slot called when signal_environmentalConditionChanged is raised More...
 
virtual void performEnvironmentalConditionChanged (std::string)
 Change environmental condition This method should only be called from the main (render) thread. More...
 
virtual void slot_fogColorChanged (float r, float g, float b)
 slot called when signal_fogColorChanged is raised; rgb are normalized color values This is silver linig fog not ground fog More...
 
virtual void performFogColorChanged (float r, float g, float b)
 Set the fog color. More...
 
virtual void slot_snowAccumulationSettingsChanged (float depth, float roadDepth, float minElevation, float elevationRange)
 Called when signal_snowAccumulationSettingsChanged is raised. More...
 
virtual void performSnowAccumulationSettingsChanged (float depth, float roadCoverage, float minElevation, float elevationRange)
 Method to effect the snow settings changes. This method must be called from the main (render) thread. More...
 
virtual void slot_rainAccumulationSettingsChanged (float depth)
 Method called when signal_rainAccumulationSettingsChanged is raised Parameters are Depth(coverage) . More...
 
virtual void performRainAccumulationSettingsChanged (float depth)
 Method to effect the rain settings changes. This method must be called from the main (render) thread. More...
 

Protected Attributes

DtDemyDe
 
DtCigiConnectionmyCigiConnection
 
DtSignalConnectionManager myConnections
 

Friends

class DtIgSettingsControllerCreator
 

Detailed Description

This class acts on various CIGI messages that change settings in the IG.

All of the "perform" methods are added as driver functions if the CIGI processing is done in a separate thread, or performed immediately if in a single-thread.

Constructor & Destructor Documentation

virtual makVrv::DtIgSettingsController::~DtIgSettingsController ( )
virtual

Destructor.

makVrv::DtIgSettingsController::DtIgSettingsController ( DtDe de,
DtCigiConnection connection 
)
protected

Constructor.

Member Function Documentation

virtual void makVrv::DtIgSettingsController::slot_onPerformanceOverlayChanged ( bool  enable)
protectedvirtual

Slot called when the DtComponentSignaler::signal_performanceOverlaySet signal is received.

Calls performSetPerformanceOverlay in a thread-safe manner.

virtual void makVrv::DtIgSettingsController::performSetPerformanceOverlay ( bool  enable)
protectedvirtual

Turns the performance overlay on or off.

Always called from the main thread

virtual void makVrv::DtIgSettingsController::slot_onPrecipitationChanged ( bool  enabled,
int  precipType,
float  intensity 
)
protectedvirtual

Slot called when the DtComponentSignaler::signal_precipitationSet signal is received.

Calls performSetPrecipitation in a thread-safe manner.

virtual void makVrv::DtIgSettingsController::slot_onAtmosphericLayerSet ( float  baseMSLAltitude,
float  speed,
float  direction,
float  visibilityDistance,
unsigned int  obscurant 
)
protectedvirtual

Slot called when signal_atmosphericLayerSet is raised.

Base MSL Altitude is in meters. Wind speed is in meters per second. Wind direction is in radians from true north, clockwise. Visibility distance is in meters. Obscurant is an enumerated value that corresponds to those in the makArchives::VisibilityObscurant enumeration

virtual void makVrv::DtIgSettingsController::performSetAtmosphericLayer ( float  baseMSLAltitude,
float  speed,
float  direction,
float  visibilityDistance,
unsigned int  obscurant 
)
protectedvirtual

Called by slot_onAtmosphericLayerSet if single threaded, or queued to be run in the main thread Always called from the main thread.

virtual void makVrv::DtIgSettingsController::slot_onVisibilityChanged ( float  visibility)
protectedvirtual

Slot called when signal_visibilityChanged is raised - meters.

virtual void makVrv::DtIgSettingsController::performSetVisibility ( float  visibility)
protectedvirtual

Called by slot_onVisibilityChanged if single threaded, or queued to be run in the main thread Always called from the main thread.

virtual void makVrv::DtIgSettingsController::slot_onWindSpeedAndDirectionSet ( float  windSpeed,
float  windDirection 
)
protectedvirtual

Slot called when signal_windSpeedAndDirectionSet is raised - m/s and radians.

virtual void makVrv::DtIgSettingsController::performSetWindSpeedAndDirection ( float  windSpeed,
float  windDirection 
)
protectedvirtual

Called by slot_onWindSpeedAndDirectionSet if single threaded, or queued to be run in the main thread Always called from the main thread.

void makVrv::DtIgSettingsController::slot_onLightPointGroupColorSet ( std::string  groupName,
float  colorR,
float  colorG,
float  colorB,
float  colorA 
)
protected

Slot called when signal_lightPointGroupColorSet is raised.

void makVrv::DtIgSettingsController::performLightPointGroupColor ( std::string  groupName,
float  colorR,
float  colorG,
float  colorB,
float  colorA 
)
protected

Called by slot_onLightPointGroupColorSet if single threaded, or queued to be run in the main thread Always called from the main thread.

virtual void makVrv::DtIgSettingsController::performSetPrecipitation ( bool  enabled,
int  precipType,
float  intensity 
)
protectedvirtual

Sets the precipitation enabled, type, and intensity.

Parameters
enabledturns precipitation on and off
precipTypespecifies either rain (0) snow (1) or hail (2)
intensityspecifies the intensity (0 - 1.0) Always called from the main thread
virtual void makVrv::DtIgSettingsController::slot_onWireframeModeChanged ( bool  onOff)
protectedvirtual

Slot called when the DtComponentSignaler::signal_wireFrameRenderingSet signal is received.

Calls performSetWireframeMode in a thread-safe manner.

virtual void makVrv::DtIgSettingsController::performSetWireframeMode ( bool  onOff)
protectedvirtual

Turns wireframe mode on or off.

Always called from the main thread

virtual void makVrv::DtIgSettingsController::slot_onPagerLodControlChanged ( float  pagerLodScale,
float  pagerHighLodAngle 
)
protectedvirtual
virtual void makVrv::DtIgSettingsController::performSetPagerLodControl ( float  pagerLodScale,
float  pagerHighLodAngle 
)
protectedvirtual
virtual void makVrv::DtIgSettingsController::slot_onTimeSet ( int  year,
int  month,
int  day,
int  hour,
int  minute 
)
protectedvirtual

Slot called when the DtCigiConnection::signal_timeSet signal is received.

Calls performSetTime in a thread-safe manner.

virtual void makVrv::DtIgSettingsController::slot_onEphemerisEnableSet ( bool  continuous)
protectedvirtual

Slot called when the DtCigiConnection::signal_ephemerisEnableSet signal is received.

Calls performSetEphemerisEnable in a thread-safe manner.

virtual void makVrv::DtIgSettingsController::performSetTime ( int  year,
int  month,
int  day,
int  hour,
int  minute 
)
protectedvirtual

Sets the time.

Always called from the main thread

virtual void makVrv::DtIgSettingsController::performSetEphemerisEnable ( bool  continuous)
protectedvirtual

Sets the ephemeris model state.

Parameters
continuousSets the timescale to 1.0 if true, and 0.0 if false. Always called from the main thread
virtual void makVrv::DtIgSettingsController::slot_onShadowsSet ( bool  enabled,
int  quality 
)
protectedvirtual

Slot called when the DtComponentSignaler::signal_shadowsSet signal is received.

Calls performShadowSet in a thread-safe manner.

virtual void makVrv::DtIgSettingsController::performShadowsSet ( bool  enabled,
int  quality 
)
protectedvirtual

Turns the shadows on/off and sets the quality.

Always called from the main thread

virtual void makVrv::DtIgSettingsController::slot_onWaterCurrentSpeedAndDirectionSet ( float  speed,
float  direction 
)
protectedvirtual

Slot called when the DtComponentSignaler::signal_waterCurrentSpeedAndDirectionSet is received.

Calls performWaterCurrentSpeedAndDirectionSet in a thread- safe manner

virtual void makVrv::DtIgSettingsController::performWaterCurrentSpeedAndDirectionSet ( float  speed,
float  direction 
)
protectedvirtual

Sets the water current speed and direction in the environment object.

Always called from the main thread

virtual void makVrv::DtIgSettingsController::slot_windDrivenSeaStateSet ( bool  windDriven)
protectedvirtual

Slot called when the DtComponentSignaler::signal_windDrivenSeaStateSet is received.

Calls performWindDrivenSeaState in a thread- safe manner

virtual void makVrv::DtIgSettingsController::performWindDrivenSeaStateSet ( bool  windDriven)
protectedvirtual

Sets if the sea state is driven by the wind.

Always called from the main thread

virtual void makVrv::DtIgSettingsController::slot_waterSurfaceTransparencySet ( float  transparency)
protectedvirtual

Slot called when the DtComponentSignaler::signal_waterSurfaceTransparencySet is received.

Calls performWaterSurfaceTransparencySet in a thread- safe manner

virtual void makVrv::DtIgSettingsController::performWaterSurfaceTransparencySet ( float  transparency)
protectedvirtual

Sets the transparency of the water surface.

Always called from the main thread

virtual void makVrv::DtIgSettingsController::slot_seaLevelSet ( float  seaLevel)
protectedvirtual

Slot called when the DtComponentSignaler::signal_seaLevelSet is received.

Calls performSeaLevelSet in a thread- safe manner

virtual void makVrv::DtIgSettingsController::performSeaLevelSet ( float  transparency)
protectedvirtual

Sets the water level/height.

Always called from the main thread

virtual void makVrv::DtIgSettingsController::slot_waterChoppinessSet ( bool  choppiness)
protectedvirtual

Slot for the choppiness signal calls performChoppinessSet in a thread safe manner.

virtual void makVrv::DtIgSettingsController::performWaterChoppinessSet ( bool  choppiness)
protectedvirtual

Sets the choppiness, note this is 0-1 from a CIGI bool in the maritime packet.

Always called from the main thread.

virtual void makVrv::DtIgSettingsController::slot_seaStateSet ( int  seaState)
protectedvirtual

Slot called when sea state signal is called call perform sea state set in a thread safe manner.

virtual void makVrv::DtIgSettingsController::performSeaStateSet ( int  seaState)
protectedvirtual

Sets the sea states Always called from the main thread.

virtual void makVrv::DtIgSettingsController::slot_seaStateDirectionSet ( float  seaStateDirection)
protectedvirtual

slots called when the sea state direction signal is called calls perfrom set sea state direction in a thread safe manner

virtual void makVrv::DtIgSettingsController::performSeaStateDirectionSet ( float  seaStateDirection)
protectedvirtual

set the sea state direction Always called form the main thread

virtual void makVrv::DtIgSettingsController::slot_seaSwellStateSet ( int  seaSwellState)
protectedvirtual

Slot called when sea Swell signal is called call perform sea Swell set in a thread safe manner.

virtual void makVrv::DtIgSettingsController::performSeaSwellStateSet ( int  seaSwellState)
protectedvirtual

Sets the sea Swells Always called from the main thread.

virtual void makVrv::DtIgSettingsController::slot_seaSwellStateDirectionSet ( float  seaSwellStateDirection)
protectedvirtual

slots called when the sea Swell direction signal is called calls perfrom set sea Swell direction in a thread safe manner

virtual void makVrv::DtIgSettingsController::performSeaSwellStateDirectionSet ( float  seaSwellStateDirection)
protectedvirtual

set the sea Swell direction Always called form the main thread

virtual void makVrv::DtIgSettingsController::slot_environmentalConditionChanged ( std::string  )
protectedvirtual

slot called when signal_environmentalConditionChanged is raised

virtual void makVrv::DtIgSettingsController::performEnvironmentalConditionChanged ( std::string  )
protectedvirtual

Change environmental condition This method should only be called from the main (render) thread.

virtual void makVrv::DtIgSettingsController::slot_fogColorChanged ( float  r,
float  g,
float  b 
)
protectedvirtual

slot called when signal_fogColorChanged is raised; rgb are normalized color values This is silver linig fog not ground fog

virtual void makVrv::DtIgSettingsController::performFogColorChanged ( float  r,
float  g,
float  b 
)
protectedvirtual

Set the fog color.

This method should only be called from the main (render) thread This is silver linig fog not ground fog

virtual void makVrv::DtIgSettingsController::slot_snowAccumulationSettingsChanged ( float  depth,
float  roadDepth,
float  minElevation,
float  elevationRange 
)
protectedvirtual

Called when signal_snowAccumulationSettingsChanged is raised.

Parameters are Depth(coverage) . 0.- – m. (for now, 0. to 0.1 mm treated as a 0-100 percentage coverage) Road Depth(coverage) 0.- – m. (for now, 0. to 0.1 mm treated as a 0-100 percentage coverage) Min Elevation Elevation (meters) at which snow will happen Elevation Range Range (meters) from the min elevation point to the full amount of coverage indicated

virtual void makVrv::DtIgSettingsController::performSnowAccumulationSettingsChanged ( float  depth,
float  roadCoverage,
float  minElevation,
float  elevationRange 
)
protectedvirtual

Method to effect the snow settings changes. This method must be called from the main (render) thread.

virtual void makVrv::DtIgSettingsController::slot_rainAccumulationSettingsChanged ( float  depth)
protectedvirtual

Method called when signal_rainAccumulationSettingsChanged is raised Parameters are Depth(coverage) .

0.- – m. (for now, 0. to 0.01 mm treated as a 0-100 percentage coverage)

virtual void makVrv::DtIgSettingsController::performRainAccumulationSettingsChanged ( float  depth)
protectedvirtual

Method to effect the rain settings changes. This method must be called from the main (render) thread.

Friends And Related Function Documentation

friend class DtIgSettingsControllerCreator
friend

Member Data Documentation

DtDe& makVrv::DtIgSettingsController::myDe
protected
DtCigiConnection& makVrv::DtIgSettingsController::myCigiConnection
protected
DtSignalConnectionManager makVrv::DtIgSettingsController::myConnections
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)