]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/simple.hxx
Prepare and implement reinit methods for instruments
[flightgear.git] / src / Airports / simple.hxx
index 03d66a190a6093b4c2cdef862576c74081519301..dfa83657057a8d0bc1da7cb7c07f8c44e7f6b4a8 100644 (file)
@@ -82,6 +82,8 @@ public:
     bool   isSeaport()    const;
     bool   isHeliport()   const;
 
+    static bool isAirportType(FGPositioned* pos);
+    
     virtual const std::string& name() const
     { return _name; }
 
@@ -159,7 +161,7 @@ public:
      class HardSurfaceFilter : public AirportFilter
      {
      public:
-       HardSurfaceFilter(double minLengthFt);
+       HardSurfaceFilter(double minLengthFt = -1);
        
        virtual bool passAirport(FGAirport* aApt) const;
        
@@ -186,9 +188,8 @@ public:
       
       unsigned int numApproaches() const;
       flightgear::Approach* getApproachByIndex(unsigned int aIndex) const;
-
-      static void installPropertyListener();
-      
+      flightgear::Approach* findApproachWithIdent(const std::string& aIdent) const;
+  
      /**
       * Syntactic wrapper around FGPositioned::findClosest - find the closest
       * match for filter, and return it cast to FGAirport. The default filter
@@ -216,24 +217,6 @@ public:
       */
      static char** searchNamesAndIdents(const std::string& aFilter);
      
-     bool buildApproach(flightgear::Waypt* aEnroute, flightgear::STAR* aSTAR, 
-      FGRunway* aRwy, flightgear::WayptVec& aRoute);
-    
-    /**
-     * Given a destiation point, select the best SID and transition waypt from 
-     * this airport. Returns (NULL,NULL) is no SIDs are defined, otherwise the
-     * best SID/transition is that which is closest to the destination point.
-     */
-    std::pair<flightgear::SID*, flightgear::WayptRef> selectSID(const SGGeod& aDest, FGRunway* aRwy);
-    
-    /**
-     * Select a STAR and enroute transition waypt, given an origin (departure) position.
-     * returns (NULL, NULL) is no suitable STAR is exists
-     */
-    std::pair<flightgear::STAR*, flightgear::WayptRef> selectSTAR(const SGGeod& aOrigin, FGRunway* aRwy);
-    
-    virtual flightgear::PositionedBinding* createBinding(SGPropertyNode* nd) const;
-    
     void setCommStations(flightgear::CommStationList& comms);
     
     flightgear::CommStationList commStationsOfType(FGPositioned::Type aTy) const;