FlightGear next
|
Class representing a kind of ground radar. More...
#include <AirportGroundRadar.hxx>
Inherits SGReferenced.
Public Member Functions | |
AirportGroundRadar (SGGeod min, SGGeod max) | |
AirportGroundRadar (FGAirportRef airport) | |
~AirportGroundRadar () | |
bool | add (FGTrafficRef aiObject) |
bool | move (const SGRectd &newPos, FGTrafficRef aiObject) |
bool | remove (FGTrafficRef aiObject) |
size_t | size () const |
bool | isBlocked (FGTrafficRef aiObject) |
Returns if this AI object is blocked by any other "known" aka visible to the Radar. | |
bool | isBlockedForPushback (FGTrafficRef aiObject) |
Check if the aircraft could push back. | |
const FGTrafficRef | getBlockedBy (FGTrafficRef aiObject) |
Returns which AI object is blocking this traffic. | |
Static Public Member Functions | |
static SGRect< double > | getBox (FGTrafficRef aiObject) |
Function implementing calculation of dimension for Quadtree. | |
static bool | equal (FGTrafficRef o, FGTrafficRef o2) |
Function implementing equals for Quadtree. | |
Class representing a kind of ground radar.
It is used to control traffic by FGGroundController and prevent collisions. It supporst all FGAIBase objects.
Definition at line 24 of file AirportGroundRadar.hxx.
AirportGroundRadar::AirportGroundRadar | ( | SGGeod | min, |
SGGeod | max ) |
Definition at line 19 of file AirportGroundRadar.cxx.
AirportGroundRadar::AirportGroundRadar | ( | FGAirportRef | airport | ) |
Definition at line 27 of file AirportGroundRadar.cxx.
AirportGroundRadar::~AirportGroundRadar | ( | ) |
Definition at line 36 of file AirportGroundRadar.cxx.
bool AirportGroundRadar::add | ( | FGTrafficRef | aiObject | ) |
Definition at line 39 of file AirportGroundRadar.cxx.
|
inlinestatic |
Function implementing equals for Quadtree.
Definition at line 38 of file AirportGroundRadar.hxx.
const FGTrafficRef AirportGroundRadar::getBlockedBy | ( | FGTrafficRef | aiObject | ) |
Returns which AI object is blocking this traffic.
Definition at line 204 of file AirportGroundRadar.cxx.
|
inlinestatic |
Function implementing calculation of dimension for Quadtree.
Definition at line 28 of file AirportGroundRadar.hxx.
bool AirportGroundRadar::isBlocked | ( | FGTrafficRef | aiObject | ) |
Returns if this AI object is blocked by any other "known" aka visible to the Radar.
Definition at line 119 of file AirportGroundRadar.cxx.
bool AirportGroundRadar::isBlockedForPushback | ( | FGTrafficRef | aiObject | ) |
Check if the aircraft could push back.
Definition at line 171 of file AirportGroundRadar.cxx.
bool AirportGroundRadar::move | ( | const SGRectd & | newPos, |
FGTrafficRef | aiObject ) |
Definition at line 51 of file AirportGroundRadar.cxx.
bool AirportGroundRadar::remove | ( | FGTrafficRef | aiObject | ) |
Definition at line 60 of file AirportGroundRadar.cxx.
size_t AirportGroundRadar::size | ( | ) | const |
Definition at line 76 of file AirportGroundRadar.cxx.