VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSharedRadioCommunicationsSettings.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
15 
17 
19 
20 #include <boost/unordered_map.hpp>
21 
22 #include <vrvUtil/event_signal.h>
23 
24 #include <vector>
25 
26 namespace makVrv
27 {
28 
30 
33 
37  {
38  protected:
39 
43 
47 
48  public:
49 
52 
55 
58 
61  virtual float commLineLifetime() const;
62  virtual void setCommLineLifetime( float lifetime );
64 
67  virtual float squawkIndicatorLifetime() const;
68  virtual void setSquawkIndicatorLifetime( float lifetime );
70 
73  virtual float commLineAnimationRate() const;
74  virtual void setCommLineAnimationRate( float rate );
76 
79  virtual float squawkIndicatorAnimationRate() const;
80  virtual void setSquawkIndicatorAnimationRate( float rate );
82 
85  virtual bool displayCommLines() const;
86  virtual void setDisplayCommLines( bool show );
88 
91  virtual bool displaySquawkIndicators() const;
92  virtual void setDisplaySquawkIndicators( bool show );
94 
97  virtual bool displayRadioCommunications() const;
98  virtual void setDisplayRadioCommunications( bool show );
100 
103  virtual CommLineMode commLineRenderMode() const;
104  virtual void setCommLineRenderMode( CommLineMode mode );
106 
109  virtual double greatCircleExaggerationAmount() const;
110  virtual void setGreatCircleExaggerationAmount( double amount );
112 
115  virtual DefaultColoringMode defaultColoringMode() const;
116  virtual void setDefaultColoringMode( DefaultColoringMode mode );
118 
120 
123 
125  virtual bool showDefaultFrequency() const;
126  virtual void setShowDefaultFrequency( bool show );
127 
129  virtual void getDefaultFrequencyColor( float& r, float& g, float& b ) const;
130  virtual void setDefaultFrequencyColor( float r, float g, float b );
131 
133 
136 
138  virtual void getFrequencyRange( int rangeIndex, float& lowFreq, float& highFreq ) const;
139  virtual int addFrequencyRange( float lowFreq, float highFreq );
140 
142  virtual void getFrequencyRangeColor( int rangeIndex, float& r, float& g, float& b ) const;
143  virtual void setFrequencyRangeColor( int rangeIndex, float r, float g, float b );
144 
146  virtual bool showFrequencyRangeFrequency( int rangeIndex ) const;
147  virtual void setShowFrequencyRangeFrequency( int rangeIndex, bool show );
148 
150  virtual int numFrequencyRanges() const;
151 
153  virtual void clearFrequencyRanges();
154 
156 
158 
161 
163  void setFromRecord( const makArchives::DtRadioCommunicationsSettingsRecord& rec );
164 
166  void getRecord( makArchives::DtRadioCommunicationsSettingsRecord& rec ) const;
167 
169  virtual const DtRadioCommunicationsSettingsBackup* settingsBackup() const;
170 
172  virtual DtRadioCommunicationsSettingsBackup* settingsBackup();
173 
175  virtual void backup();
176 
178 
180  static std::string className();
181 
182  protected:
183 
188 
191 
192  protected:
193 
198  {
199 
201  : myHighFrequency( -1 )
202  , myLowFrequency( -1 )
203  , myShowFrequencyFlag( true )
204  {
205  // Default myColor: magenta
206  myColor[0] = myColor[2] = 1.0;
207  myColor[1] = 0.0;
208  }
209 
213  float myColor[3];
214 
215  };
216 
217  protected:
218 
220  typedef std::vector<FrequencyRangeAttributes> FrequencyRangeAttributesList;
221 
223 
224  float myDefaultFrequencyRangeColor[3];
226 
229 
232 
239 
241 
242  };
243 
244 }

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)