NavData: can refresh some in-place.
(Hacking to support faster scenery-path switching)
This commit is contained in:
parent
1d8b080782
commit
c3c0f68f76
4 changed files with 22 additions and 1 deletions
|
@ -204,6 +204,16 @@ FGRunway::getApproaches(flightgear::ProcedureType type) const
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FGRunway::updateThreshold(const SGGeod& newThreshold, double newHeading,
|
||||||
|
double newDisplacedThreshold,
|
||||||
|
double newStopway)
|
||||||
|
{
|
||||||
|
modifyPosition(newThreshold);
|
||||||
|
_heading = newHeading;
|
||||||
|
_stopway = newStopway;
|
||||||
|
_displ_thresh = newDisplacedThreshold;
|
||||||
|
}
|
||||||
|
|
||||||
FGHelipad::FGHelipad(PositionedID aGuid,
|
FGHelipad::FGHelipad(PositionedID aGuid,
|
||||||
PositionedID aAirport, const string& aIdent,
|
PositionedID aAirport, const string& aIdent,
|
||||||
const SGGeod& aGeod,
|
const SGGeod& aGeod,
|
||||||
|
|
|
@ -117,6 +117,10 @@ public:
|
||||||
flightgear::ProcedureType type = flightgear::PROCEDURE_INVALID
|
flightgear::ProcedureType type = flightgear::PROCEDURE_INVALID
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
void updateThreshold(const SGGeod& newThreshold,
|
||||||
|
double newHeading,
|
||||||
|
double newDisplacedThreshold,
|
||||||
|
double newStopway);
|
||||||
};
|
};
|
||||||
|
|
||||||
class FGHelipad : public FGRunwayBase
|
class FGHelipad : public FGRunwayBase
|
||||||
|
|
|
@ -103,6 +103,12 @@ void FGNavRecord::setColocatedDME(PositionedID other)
|
||||||
mColocated = other;
|
mColocated = other;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FGNavRecord::updateFromXML(const SGGeod& geod, double heading)
|
||||||
|
{
|
||||||
|
modifyPosition(geod);
|
||||||
|
multiuse = heading;
|
||||||
|
}
|
||||||
|
|
||||||
FGTACANRecord::FGTACANRecord(void) :
|
FGTACANRecord::FGTACANRecord(void) :
|
||||||
channel(""),
|
channel(""),
|
||||||
freq(0)
|
freq(0)
|
||||||
|
|
|
@ -49,7 +49,6 @@ class FGNavRecord : public FGPositioned
|
||||||
PositionedID mColocated; // Colocated DME at a navaid (ILS, VOR, TACAN, NDB)
|
PositionedID mColocated; // Colocated DME at a navaid (ILS, VOR, TACAN, NDB)
|
||||||
bool serviceable; // for failure modeling
|
bool serviceable; // for failure modeling
|
||||||
|
|
||||||
void processSceneryILS(SGPropertyNode* aILSNode);
|
|
||||||
public:
|
public:
|
||||||
FGNavRecord(PositionedID aGuid, Type type, const std::string& ident,
|
FGNavRecord(PositionedID aGuid, Type type, const std::string& ident,
|
||||||
const std::string& name,
|
const std::string& name,
|
||||||
|
@ -90,6 +89,8 @@ public:
|
||||||
|
|
||||||
void setColocatedDME(PositionedID other);
|
void setColocatedDME(PositionedID other);
|
||||||
bool hasDME();
|
bool hasDME();
|
||||||
|
|
||||||
|
void updateFromXML(const SGGeod& geod, double heading);
|
||||||
};
|
};
|
||||||
|
|
||||||
class FGTACANRecord : public SGReferenced {
|
class FGTACANRecord : public SGReferenced {
|
||||||
|
|
Loading…
Add table
Reference in a new issue