2007-07-05 19:00:59 +00:00
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful, but
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef _GN_NODE_HXX_
|
|
|
|
#define _GN_NODE_HXX_
|
|
|
|
|
|
|
|
#include <simgear/compiler.h>
|
2012-09-24 23:31:17 +00:00
|
|
|
#include <simgear/structure/SGSharedPtr.hxx>
|
|
|
|
|
|
|
|
#include <Navaids/positioned.hxx>
|
2007-07-05 19:00:59 +00:00
|
|
|
|
2012-09-24 23:31:17 +00:00
|
|
|
class FGTaxiNode : public FGPositioned
|
2007-07-05 19:00:59 +00:00
|
|
|
{
|
2012-09-23 20:42:40 +00:00
|
|
|
protected:
|
2015-12-01 00:01:27 +00:00
|
|
|
const int m_index;
|
|
|
|
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
bool isOnRunway;
|
|
|
|
int holdType;
|
2015-12-01 00:01:27 +00:00
|
|
|
bool m_isPushback;
|
2011-09-03 09:26:17 +00:00
|
|
|
|
2012-09-24 23:31:17 +00:00
|
|
|
public:
|
2018-05-07 15:41:10 +00:00
|
|
|
FGTaxiNode(int index, const SGGeod& pos, bool aOnRunway, int aHoldType,
|
|
|
|
const std::string& ident = {});
|
2012-09-24 23:31:17 +00:00
|
|
|
virtual ~FGTaxiNode();
|
|
|
|
|
2011-04-17 08:19:58 +00:00
|
|
|
void setElevation(double val);
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
|
2012-10-01 16:18:36 +00:00
|
|
|
double getElevationM ();
|
|
|
|
double getElevationFt();
|
2012-09-24 23:31:17 +00:00
|
|
|
|
2015-12-01 00:01:27 +00:00
|
|
|
int getIndex() const;
|
|
|
|
|
2012-09-23 20:42:40 +00:00
|
|
|
int getHoldPointType() const { return holdType; };
|
|
|
|
bool getIsOnRunway() const { return isOnRunway; };
|
2015-12-01 00:01:27 +00:00
|
|
|
bool isPushback() const { return m_isPushback; }
|
|
|
|
|
|
|
|
void setIsPushback();
|
2007-07-05 19:00:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|