FlightGear next
FGParking Class Reference

#include <parking.hxx>

Inherits FGTaxiNode.

Public Member Functions

 FGParking (int index, const SGGeod &pos, double heading, double radius, const std::string &name, const std::string &type, const std::string &codes)
 
virtual ~FGParking ()=default
 
double getHeading () const
 
double getRadius () const
 
std::string getType () const
 
std::string getCodes () const
 
std::string getName () const
 
void setPushBackPoint (const FGTaxiNodeRef &node)
 
FGTaxiNodeRef getPushBackPoint ()
 
bool operator< (const FGParking &other) const
 
- Public Member Functions inherited from FGTaxiNode
 FGTaxiNode (FGPositioned::Type ty, int index, const SGGeod &pos, bool aOnRunway, int aHoldType, const std::string &ident={})
 
virtual ~FGTaxiNode ()=default
 
void setElevation (double val)
 
double getElevationM ()
 
double getElevationFt ()
 
int getIndex () const
 
int getHoldPointType () const
 
bool getIsOnRunway () const
 
bool isPushback () const
 
void setIsPushback ()
 
- Public Member Functions inherited from FGPositioned
virtual ~FGPositioned ()
 
Type type () const
 
const char * typeString () const
 
const std::string & ident () const
 
virtual const std::string & name () const
 Return the name of this positioned.
 
virtual const SGGeod & geod () const
 
PositionedID guid () const
 
virtual const SGVec3d & cart () const
 The cartesian position associated with this object.
 
double latitude () const
 
double longitude () const
 
double elevation () const
 
double elevationM () const
 

Static Public Member Functions

static bool isType (FGPositioned::Type ty)
 
- Static Public Member Functions inherited from FGPositioned
static bool isAirportType (FGPositioned *pos)
 
static bool isRunwayType (FGPositioned *pos)
 
static bool isNavaidType (FGPositioned *pos)
 
static FGPositionedList findWithinRange (const SGGeod &aPos, double aRangeNm, Filter *aFilter)
 
static FGPositionedList findWithinRangePartial (const SGGeod &aPos, double aRangeNm, Filter *aFilter, bool &aPartial)
 
static FGPositionedRef findClosestWithIdent (const std::string &aIdent, const SGGeod &aPos, Filter *aFilter=NULL)
 
static FGPositionedRef findFirstWithIdent (const std::string &aIdent, Filter *aFilter)
 
static FGPositionedList findAllWithIdent (const std::string &aIdent, Filter *aFilter=NULL, bool aExact=true)
 Find all items with the specified ident.
 
static FGPositionedList findAllWithName (const std::string &aName, Filter *aFilter=NULL, bool aExact=true)
 As above, but searches names instead of idents.
 
static void sortByRange (FGPositionedList &, const SGGeod &aPos)
 Sort an FGPositionedList by distance from a position.
 
static FGPositionedRef findClosest (const SGGeod &aPos, double aCutoffNm, Filter *aFilter=NULL)
 Find the closest item to a position, which pass the specified filter A cutoff range in NM must be specified, to constrain the search acceptably.
 
static FGPositionedList findClosestN (const SGGeod &aPos, unsigned int aN, double aCutoffNm, Filter *aFilter=NULL)
 Find the closest N items to a position, which pass the specified filter A cutoff range in NM must be specified, to constrain the search acceptably.
 
static FGPositionedList findClosestNPartial (const SGGeod &aPos, unsigned int aN, double aCutoffNm, Filter *aFilter, bool &aPartial)
 Same as above, but with a time-bound in msec too.
 
template<class T>
static SGSharedPtr< T > loadById (PositionedID id)
 
template<class T>
static SGSharedPtr< T > loadById (const PositionedIDVec &id_vec, size_t index)
 
template<class T>
static std::vector< SGSharedPtr< T > > loadAllById (const PositionedIDVec &id_vec)
 
static Type typeFromName (const std::string &aName)
 Map a candidate type string to a real type.
 
static const char * nameForType (Type aTy)
 Map a type to a human-readable string.
 
static FGPositionedRef createWaypoint (FGPositioned::Type aType, const std::string &aIdent, const SGGeod &aPos, bool isTemporary=false, const std::string &aName={})
 
static bool deleteWaypoint (FGPositionedRef aWpt)
 

Additional Inherited Members

- Public Types inherited from FGPositioned
enum  Type {
  INVALID = 0 , AIRPORT , HELIPORT , SEAPORT ,
  RUNWAY , HELIPAD , TAXIWAY , PAVEMENT ,
  WAYPOINT , FIX , NDB , VOR ,
  ILS , LOC , GS , OM ,
  MM , IM , DME , TACAN ,
  MOBILE_TACAN , OBSTACLE , TOWER , FREQ_GROUND ,
  FREQ_TOWER , FREQ_ATIS , FREQ_AWOS , FREQ_APP_DEP ,
  FREQ_ENROUTE , FREQ_CLEARANCE , FREQ_UNICOM , PARKING ,
  TAXI_NODE , COUNTRY , CITY , TOWN ,
  VILLAGE , VISUAL_REPORTING_POINT , LAST_POI_TYPE , LAST_TYPE
}
 
- Protected Member Functions inherited from FGPositioned
 FGPositioned (PositionedID aGuid, Type ty, const std::string &aIdent, const SGGeod &aPos)
 
void modifyPosition (const SGGeod &newPos)
 
void invalidatePosition ()
 
- Static Protected Member Functions inherited from FGPositioned
static FGPositionedRef loadByIdImpl (PositionedID id)
 
- Protected Attributes inherited from FGTaxiNode
const int m_index
 
const bool isOnRunway
 
const int holdType
 
bool m_isPushback
 
- Protected Attributes inherited from FGPositioned
const PositionedID mGuid
 
const Type mType
 
const std::string mIdent
 

Detailed Description

Definition at line 36 of file parking.hxx.

Constructor & Destructor Documentation

◆ FGParking()

FGParking::FGParking ( int index,
const SGGeod & pos,
double heading,
double radius,
const std::string & name,
const std::string & type,
const std::string & codes )

Definition at line 37 of file parking.cxx.

◆ ~FGParking()

virtual FGParking::~FGParking ( )
virtualdefault

Member Function Documentation

◆ getCodes()

std::string FGParking::getCodes ( ) const
inline

Definition at line 61 of file parking.hxx.

◆ getHeading()

double FGParking::getHeading ( ) const
inline

Definition at line 57 of file parking.hxx.

◆ getName()

std::string FGParking::getName ( ) const
inline

Definition at line 62 of file parking.hxx.

◆ getPushBackPoint()

FGTaxiNodeRef FGParking::getPushBackPoint ( )
inline

Definition at line 65 of file parking.hxx.

◆ getRadius()

double FGParking::getRadius ( ) const
inline

Definition at line 58 of file parking.hxx.

◆ getType()

std::string FGParking::getType ( ) const
inline

Definition at line 60 of file parking.hxx.

◆ isType()

static bool FGParking::isType ( FGPositioned::Type ty)
inlinestatic

Definition at line 47 of file parking.hxx.

◆ operator<()

bool FGParking::operator< ( const FGParking & other) const
inline

Definition at line 67 of file parking.hxx.

◆ setPushBackPoint()

void FGParking::setPushBackPoint ( const FGTaxiNodeRef & node)

Definition at line 51 of file parking.cxx.


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