]> git.mxchange.org Git - flightgear.git/blob - src/Instrumentation/commradio.hxx
Canvas: update for new bounding box getters.
[flightgear.git] / src / Instrumentation / commradio.hxx
1 // commradio.hxx -- class to manage a nav radio instance
2 //
3 // Written by Torsten Dreyer, started February 2014
4 //
5 // Copyright (C) Curtis L. Olson - http://www.flightgear.org/~curt
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20 //
21
22
23 #ifndef _FG_INSTRUMENTATION_COMMRADIO_HXX
24 #define _FG_INSTRUMENTATION_COMMRADIO_HXX
25
26 #include <simgear/props/props.hxx>
27 #include <simgear/structure/subsystem_mgr.hxx>
28
29 namespace Instrumentation {
30
31 class SignalQualityComputer : public SGReferenced {
32 public:
33   virtual ~SignalQualityComputer();
34   virtual double computeSignalQuality( const SGGeod & sender, const SGGeod & receiver ) const = 0;
35   virtual double computeSignalQuality( const SGVec3d & sender, const SGVec3d & receiver ) const = 0;
36   virtual double computeSignalQuality( double slantDistanceM ) const = 0;
37 };
38
39 typedef SGSharedPtr<SignalQualityComputer> SignalQualityComputerRef;
40
41 class CommRadio : public SGSubsystem
42 {
43 public:
44   static SGSubsystem * createInstance( SGPropertyNode_ptr rootNode );
45 };
46
47 }
48
49 #endif // _FG_INSTRUMENTATION_COMMRADIO_HXX