VR-Forces 4.7 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.

Protected Member Functions

 DtIgSettingsController (DtDe &de, DtCigiConnection &connection)
 Constructor.
virtual void slot_onPerformanceOverlayChanged (bool onOff)
 Slot called when the DtComponentSignaler::signal_performanceOverlaySet signal is received.
virtual void performSetPerformanceOverlay (bool onOff)
 Turns the performance overlay on or off.
virtual void slot_onPrecipitationChanged (bool enabled, int precipType, float intensity)
 Slot called when the DtComponentSignaler::signal_precipitationSet signal is received.
virtual void slot_onWindDirectionChanged (float direction)
 Slot called when signal_windDirectionChanged is raised.
virtual void performSetWindDirection (float direction)
 Called by slot_onWindDirectionChanged if single threaded, or queued to be run in the main thread Always called from the main thread.
virtual void slot_onWindSpeedChanged (float speed)
 Slot called when signal_windSpeedChanged is raised - meters per second.
virtual void performSetWindSpeed (float speed)
 Called by slot_onWindSpeedChanged if single threaded, or queued to be run in the main thread Always called from the main thread.
virtual void slot_onVisibilityChanged (float visibility)
 Slot called when signal_visibilityChanged is raised - meters.
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.
void slot_onLightPointGroupColorSet (std::string groupName, float colorR, float colorG, float colorB, float colorA)
 Slot called when signal_lightPointGroupColorSet is raised.
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.
virtual void slot_processAtmosphericControl (const CigiAtmosCtrlV3 &packet)
 Support the Atmospheric Control packet, which is another way to specify global wind conditions and visibility.
virtual void performSetPrecipitation (bool enabled, int precipType, float intensity)
 Sets the precipitation enabled, type, and intensity.
virtual void slot_onWireframeModeChanged (bool onOff)
 Slot called when the DtComponentSignaler::signal_wireFrameRenderingSet signal is received.
virtual void performSetWireframeMode (bool onOff)
 Turns wireframe mode on or off.
virtual void slot_onTimeSet (int year, int month, int day, int hour, int minute)
 Slot called when the DtCigiConnection::signal_timeSet signal is received.
virtual void slot_onEphemerisEnableSet (bool continuous)
 Slot called when the DtCigiConnection::signal_ephemerisEnableSet signal is received.
virtual void performSetTime (int year, int month, int day, int hour, int minute)
 Sets the time.
virtual void performSetEphemerisEnable (bool continuous)
 Sets the ephemeris model state.
virtual void slot_onShadowsSet (bool enabled, int quality)
 Slot called when the DtComponentSignaler::signal_shadowsSet signal is received.
virtual void performShadowsSet (bool enabled, int quality)
 Turns the shadows on/off and sets the quality.
virtual void slot_onWaterCurrentSpeedAndDirectionSet (float speed, float direction)
 Slot called when the DtComponentSignaler::signal_waterCurrentSpeedAndDirectionSet is received.
virtual void performWaterCurrentSpeedAndDirectionSet (float speed, float direction)
 Sets the water current speed and direction in the environment object.

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  onOff)
protectedvirtual

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

Calls performSetPerformanceOverlay in a thread-safe manner.

virtual void makVrv::DtIgSettingsController::performSetPerformanceOverlay ( bool  onOff)
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_onWindDirectionChanged ( float  direction)
protectedvirtual

Slot called when signal_windDirectionChanged is raised.

Degrees, 0 north, clockwise. This is the direction the wind is coming from

virtual void makVrv::DtIgSettingsController::performSetWindDirection ( float  direction)
protectedvirtual

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

virtual void makVrv::DtIgSettingsController::slot_onWindSpeedChanged ( float  speed)
protectedvirtual

Slot called when signal_windSpeedChanged is raised - meters per second.

virtual void makVrv::DtIgSettingsController::performSetWindSpeed ( float  speed)
protectedvirtual

Called by slot_onWindSpeedChanged 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.

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::slot_processAtmosphericControl ( const CigiAtmosCtrlV3 &  packet)
protectedvirtual

Support the Atmospheric Control packet, which is another way to specify global wind conditions and visibility.

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) or snow (1)
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_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

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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)