FlightGear next
gnnode.hxx
Go to the documentation of this file.
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
11
12
14{
15protected:
16 const int m_index;
17
18 const bool isOnRunway;
19 const int holdType;
21
22public:
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};
FGPositioned(PositionedID aGuid, Type ty, const std::string &aIdent, const SGGeod &aPos)
const std::string & ident() const
const int holdType
Definition gnnode.hxx:19
double getElevationFt()
Definition gnnode.cxx:32
FGTaxiNode(FGPositioned::Type ty, int index, const SGGeod &pos, bool aOnRunway, int aHoldType, const std::string &ident={})
Definition gnnode.cxx:17
void setIsPushback()
Definition gnnode.cxx:60
void setElevation(double val)
Definition gnnode.cxx:27
bool m_isPushback
Definition gnnode.hxx:20
double getElevationM()
Definition gnnode.cxx:65
virtual ~FGTaxiNode()=default
const bool isOnRunway
Definition gnnode.hxx:18
int getHoldPointType() const
Definition gnnode.hxx:33
int getIndex() const
Definition gnnode.cxx:55
const int m_index
Definition gnnode.hxx:16
bool isPushback() const
Definition gnnode.hxx:35
bool getIsOnRunway() const
Definition gnnode.hxx:34