VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
makVrv::DtSharedRadioCommunicationsSettings Class Reference

This class will maintain settings regarding radio communications. More...

Inheritance diagram for makVrv::DtSharedRadioCommunicationsSettings:
Inheritance graph
[legend]

List of all members.

Classes

struct  FrequencyRangeAttributes
 Stores parameters for a single frequency range. More...

Public Member Functions

virtual ~DtSharedRadioCommunicationsSettings ()
 DTOR.
General
virtual float commLineLifetime () const
 Getter/Setter for the default lifetime for comm lines.
virtual void setCommLineLifetime (float lifetime)
 Getter/Setter for the default lifetime for comm lines.
virtual float squawkIndicatorLifetime () const
 Getter/Setter for the default lifetime for squawk indicators.
virtual void setSquawkIndicatorLifetime (float lifetime)
 Getter/Setter for the default lifetime for squawk indicators.
virtual float commLineAnimationRate () const
 Getter/Setter for the default animation rate for comm lines.
virtual void setCommLineAnimationRate (float rate)
 Getter/Setter for the default animation rate for comm lines.
virtual float squawkIndicatorAnimationRate () const
 Getter/Setter for the default animation rate for squawk indicators.
virtual void setSquawkIndicatorAnimationRate (float rate)
 Getter/Setter for the default animation rate for squawk indicators.
virtual bool displayCommLines () const
 Getter/Setter for enabling the display of comm lines.
virtual void setDisplayCommLines (bool show)
 Getter/Setter for enabling the display of comm lines.
virtual bool displaySquawkIndicators () const
 Getter/Setter for enabling the display of squawk indicators.
virtual void setDisplaySquawkIndicators (bool show)
 Getter/Setter for enabling the display of squawk indicators.
virtual bool displayRadioCommunications () const
 Getter/Setter for enabling radio communications processing.
virtual void setDisplayRadioCommunications (bool show)
 Getter/Setter for enabling radio communications processing.
virtual CommLineMode commLineRenderMode () const
 Getter/Setter for the mode used to draw comm lines.
virtual void setCommLineRenderMode (CommLineMode mode)
 Getter/Setter for the mode used to draw comm lines.
virtual double greatCircleExaggerationAmount () const
 Getter/Setter for the great circle arc exaggeration amount.
virtual void setGreatCircleExaggerationAmount (double amount)
 Getter/Setter for the great circle arc exaggeration amount.
virtual DefaultColoringMode defaultColoringMode () const
 Getter/Setter for the mode used to color lines / indicators.
virtual void setDefaultColoringMode (DefaultColoringMode mode)
 Getter/Setter for the mode used to color lines / indicators.
Default Frequency Range (All)
virtual bool showDefaultFrequency () const
 Getter/Setter for whether to show communications in the default frequencies.
virtual void setShowDefaultFrequency (bool show)
 Getter/Setter for whether to show communications in the default frequencies.
virtual void getDefaultFrequencyColor (float &r, float &g, float &b) const
 Getter/Setter for the default color to use for communications.
virtual void setDefaultFrequencyColor (float r, float g, float b)
 Getter/Setter for whether to show communications in the default frequencies.
Custom Frequency Ranges
virtual void getFrequencyRange (int rangeIndex, float &lowFreq, float &highFreq) const
 Getter/Setter for custom frequency ranges.
virtual int addFrequencyRange (float lowFreq, float highFreq)
 Getter/Setter for custom frequency ranges.
virtual void getFrequencyRangeColor (int rangeIndex, float &r, float &g, float &b) const
 Getter/Setter for the color for a given frequency range.
virtual void setFrequencyRangeColor (int rangeIndex, float r, float g, float b)
 Getter/Setter for custom frequency ranges.
virtual bool showFrequencyRangeFrequency (int rangeIndex) const
 Getter/Setter for modifying the visibility of a given frequency range.
virtual void setShowFrequencyRangeFrequency (int rangeIndex, bool show)
 Getter/Setter for custom frequency ranges.
virtual int numFrequencyRanges () const
 Accessor for the number of custon frequency ranges.
virtual void clearFrequencyRanges ()
 Removes all custom frequency ranges.
Settings record / backup methods
void setFromRecord (const makArchives::DtRadioCommunicationsSettingsRecord &rec)
 Restore the settings from a record.
void getRecord (makArchives::DtRadioCommunicationsSettingsRecord &rec) const
 Get the settings as a record.
virtual const
DtRadioCommunicationsSettingsBackup
settingsBackup () const
 Accessor for the settings backup (const).
virtual
DtRadioCommunicationsSettingsBackup
settingsBackup ()
 Accessor for the settings backup.
virtual void backup ()
 Called to back up the settings.

Static Public Member Functions

static std::string className ()
 The class name for this settings object.

Protected Types

typedef
makArchives::DtRadioCommunicationsSettingsRecord::CommLineMode 
CommLineMode
 Enum typedef to allow usage of the record's mode enum locally.
typedef
makArchives::DtRadioCommunicationsSettingsRecord::DefaultColoringMode 
DefaultColoringMode
 Enum typedef to allow usage of the record's coloring enum locally.
typedef std::vector
< FrequencyRangeAttributes
FrequencyRangeAttributesList
 Vector type for storing frequency range attributes.

Protected Member Functions

 DtSharedRadioCommunicationsSettings (DtSharedSettingsManager &manager)
 Protected CTOR (Use DtReadSettingsLock and DtWriteSettingsLock).

Protected Attributes

FrequencyRangeAttributesList myFrequencyRangeAttributes
float myDefaultFrequencyRangeColor [3]
bool myShowDefaultFrequencyFlag
float myCommLineLifetime
float mySquawkIndicatorLifetime
float myCommLineAnimationRate
float mySquawkIndicatorAnimationRate
bool myDisplayCommLinesFlag
bool myDisplaySquawkIndicatorsFlag
bool myDisplayRadioCommunicationsFlag
CommLineMode myCommunicationLineRenderMode
float myGreatCircleExaggerationAmount
DefaultColoringMode myDefaultColoringMode
DtRadioCommunicationsSettingsBackupmySettingsBackup

Friends

class DtReadSettingsLock< DtSharedRadioCommunicationsSettings >
 Use the DtReadSettingsLock to read the object.
class DtWriteSettingsLock< DtSharedRadioCommunicationsSettings >
 Use the DtWriteSettingsLock to write to the object.

Detailed Description

This class will maintain settings regarding radio communications.


Member Typedef Documentation

Enum typedef to allow usage of the record's mode enum locally.

Enum typedef to allow usage of the record's coloring enum locally.

Vector type for storing frequency range attributes.


Constructor & Destructor Documentation

DTOR.

Protected CTOR (Use DtReadSettingsLock and DtWriteSettingsLock).


Member Function Documentation

Getter/Setter for the default lifetime for comm lines.

virtual void makVrv::DtSharedRadioCommunicationsSettings::setCommLineLifetime ( float  lifetime) [virtual]

Getter/Setter for the default lifetime for comm lines.

Getter/Setter for the default lifetime for squawk indicators.

Getter/Setter for the default lifetime for squawk indicators.

Getter/Setter for the default animation rate for comm lines.

Getter/Setter for the default animation rate for comm lines.

Getter/Setter for the default animation rate for squawk indicators.

Getter/Setter for the default animation rate for squawk indicators.

Getter/Setter for enabling the display of comm lines.

Getter/Setter for enabling the display of comm lines.

Getter/Setter for enabling the display of squawk indicators.

Getter/Setter for enabling the display of squawk indicators.

Getter/Setter for enabling radio communications processing.

Getter/Setter for enabling radio communications processing.

Getter/Setter for the mode used to draw comm lines.

Getter/Setter for the mode used to draw comm lines.

Getter/Setter for the great circle arc exaggeration amount.

Getter/Setter for the great circle arc exaggeration amount.

Getter/Setter for the mode used to color lines / indicators.

Getter/Setter for the mode used to color lines / indicators.

Getter/Setter for whether to show communications in the default frequencies.

Getter/Setter for whether to show communications in the default frequencies.

virtual void makVrv::DtSharedRadioCommunicationsSettings::getDefaultFrequencyColor ( float &  r,
float &  g,
float &  b 
) const [virtual]

Getter/Setter for the default color to use for communications.

virtual void makVrv::DtSharedRadioCommunicationsSettings::setDefaultFrequencyColor ( float  r,
float  g,
float  b 
) [virtual]

Getter/Setter for whether to show communications in the default frequencies.

virtual void makVrv::DtSharedRadioCommunicationsSettings::getFrequencyRange ( int  rangeIndex,
float &  lowFreq,
float &  highFreq 
) const [virtual]

Getter/Setter for custom frequency ranges.

virtual int makVrv::DtSharedRadioCommunicationsSettings::addFrequencyRange ( float  lowFreq,
float  highFreq 
) [virtual]

Getter/Setter for custom frequency ranges.

virtual void makVrv::DtSharedRadioCommunicationsSettings::getFrequencyRangeColor ( int  rangeIndex,
float &  r,
float &  g,
float &  b 
) const [virtual]

Getter/Setter for the color for a given frequency range.

virtual void makVrv::DtSharedRadioCommunicationsSettings::setFrequencyRangeColor ( int  rangeIndex,
float  r,
float  g,
float  b 
) [virtual]

Getter/Setter for custom frequency ranges.

Getter/Setter for modifying the visibility of a given frequency range.

virtual void makVrv::DtSharedRadioCommunicationsSettings::setShowFrequencyRangeFrequency ( int  rangeIndex,
bool  show 
) [virtual]

Getter/Setter for custom frequency ranges.

Accessor for the number of custon frequency ranges.

Removes all custom frequency ranges.

Restore the settings from a record.

Get the settings as a record.

Accessor for the settings backup (const).

Reimplemented from makVrv::DtSharedSettings.

Accessor for the settings backup.

Reimplemented from makVrv::DtSharedSettings.

Called to back up the settings.

Reimplemented from makVrv::DtSharedSettings.

The class name for this settings object.


Friends And Related Function Documentation

Use the DtReadSettingsLock to read the object.

Use the DtWriteSettingsLock to write to the object.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)