| 1 | /* |
| 2 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | */ |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include <simgear/compiler.h> |
| 8 | #include <simgear/structure/SGSharedPtr.hxx> |
| 9 | |
| 10 | #include <Navaids/positioned.hxx> |
| 11 | |
| 12 | |
| 13 | class FGTaxiNode : public FGPositioned |
| 14 | { |
| 15 | protected: |
| 16 | const int m_index; |
| 17 | |
| 18 | const bool isOnRunway; |
| 19 | const int holdType; |
| 20 | bool m_isPushback; |
| 21 | |
| 22 | public: |
| 23 | FGTaxiNode(FGPositioned::Type ty, int index, const SGGeod& pos, bool aOnRunway, int aHoldType, const std::string& ident = {}); |
| 24 | virtual ~FGTaxiNode() = default; |
| 25 | |
| 26 | void setElevation(double val); |
| 27 | |
| 28 | double getElevationM(); |
| 29 | double getElevationFt(); |
| 30 | |
| 31 | int getIndex() const; |
| 32 | |
| 33 | int getHoldPointType() const { return holdType; }; |
| 34 | bool getIsOnRunway() const { return isOnRunway; }; |
| 35 | bool isPushback() const { return m_isPushback; } |
| 36 | |
| 37 | void setIsPushback(); |
| 38 | }; |