FlightGear next
AirportGroundRadar Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AirportGroundRadar() [1/2]

AirportGroundRadar::AirportGroundRadar ( SGGeod min,
SGGeod max )

Definition at line 19 of file AirportGroundRadar.cxx.

◆ AirportGroundRadar() [2/2]

AirportGroundRadar::AirportGroundRadar ( FGAirportRef airport)

Definition at line 27 of file AirportGroundRadar.cxx.

◆ ~AirportGroundRadar()

AirportGroundRadar::~AirportGroundRadar ( )

Definition at line 36 of file AirportGroundRadar.cxx.

Member Function Documentation

◆ add()

bool AirportGroundRadar::add ( FGTrafficRef aiObject)

Definition at line 39 of file AirportGroundRadar.cxx.

◆ equal()

static bool AirportGroundRadar::equal ( FGTrafficRef o,
FGTrafficRef o2 )
inlinestatic

Function implementing equals for Quadtree.

Definition at line 38 of file AirportGroundRadar.hxx.

◆ getBlockedBy()

const FGTrafficRef AirportGroundRadar::getBlockedBy ( FGTrafficRef aiObject)

Returns which AI object is blocking this traffic.

Definition at line 204 of file AirportGroundRadar.cxx.

◆ getBox()

static SGRect< double > AirportGroundRadar::getBox ( FGTrafficRef aiObject)
inlinestatic

Function implementing calculation of dimension for Quadtree.

Definition at line 28 of file AirportGroundRadar.hxx.

◆ isBlocked()

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.

◆ isBlockedForPushback()

bool AirportGroundRadar::isBlockedForPushback ( FGTrafficRef aiObject)

Check if the aircraft could push back.

Definition at line 171 of file AirportGroundRadar.cxx.

◆ move()

bool AirportGroundRadar::move ( const SGRectd & newPos,
FGTrafficRef aiObject )

Definition at line 51 of file AirportGroundRadar.cxx.

◆ remove()

bool AirportGroundRadar::remove ( FGTrafficRef aiObject)

Definition at line 60 of file AirportGroundRadar.cxx.

◆ size()

size_t AirportGroundRadar::size ( ) const

Definition at line 76 of file AirportGroundRadar.cxx.


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