FlightGear next
ApproachController.hxx
Go to the documentation of this file.
1// Extracted from trafficcontrol.hxx - classes to manage AIModels based air traffic control
2// Written by Durk Talsma, started September 2006.
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU General Public License as
6// published by the Free Software Foundation; either version 2 of the
7// License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program; if not, write to the Free Software
16// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17//
18// $Id$
19
20#ifndef APPROACH_CONTROLLER_HXX
21#define APPROACH_CONTROLLER_HXX
22
24
25#include <osg/Geode>
26#include <osg/Geometry>
27#include <osg/MatrixTransform>
28#include <osg/Shape>
29
30#include <simgear/compiler.h>
31#include <simgear/constants.h>
32#include <simgear/debug/logstream.hxx>
33#include <simgear/structure/SGReferenced.hxx>
34#include <simgear/structure/SGSharedPtr.hxx>
35
36#include <ATC/ATCController.hxx>
38
39/******************************************************************************
40 * class FGApproachController
41 *****************************************************************************/
43{
44private:
46 int getFrequency();
47public:
49 virtual ~FGApproachController();
50
51 virtual void announcePosition(int id, FGAIFlightPlan *intendedRoute, int currentRoute,
52 double lat, double lon,
53 double hdg, double spd, double alt, double radius, int leg,
54 FGAIAircraft *aircraft);
55 virtual void updateAircraftInformation(int id, SGGeod geod,
56 double heading, double speed, double alt, double dt);
57
58 virtual void render(bool);
59 virtual std::string getName() const;
60 virtual void update(double dt);
61};
62
63#endif
FGAirportDynamics * parent
FGApproachController(FGAirportDynamics *parent)
virtual void render(bool)
virtual std::string getName() const
virtual void update(double dt)
Periodically check for and remove dead traffic records.
virtual void announcePosition(int id, FGAIFlightPlan *intendedRoute, int currentRoute, double lat, double lon, double hdg, double spd, double alt, double radius, int leg, FGAIAircraft *aircraft)
virtual void updateAircraftInformation(int id, SGGeod geod, double heading, double speed, double alt, double dt)