Launcher diagram: faster boundary computation.
No need to completely rebuild in these cases.
This commit is contained in:
parent
a1bc99ec84
commit
6880761f7b
1 changed files with 4 additions and 3 deletions
|
@ -189,7 +189,8 @@ void AirportDiagram::addRunway(FGRunwayRef rwy)
|
|||
r.runway = rwy;
|
||||
m_runways.append(r);
|
||||
|
||||
recomputeBounds(false);
|
||||
extendBounds(r.p1);
|
||||
extendBounds(r.p2);
|
||||
update();
|
||||
}
|
||||
|
||||
|
@ -224,7 +225,7 @@ void AirportDiagram::addParking(FGParkingRef park)
|
|||
{
|
||||
ParkingData pd = { project(park->geod()), park };
|
||||
m_parking.push_back(pd);
|
||||
recomputeBounds(false);
|
||||
extendBounds(pd.pt);
|
||||
update();
|
||||
}
|
||||
|
||||
|
@ -232,7 +233,7 @@ void AirportDiagram::addHelipad(FGHelipadRef pad)
|
|||
{
|
||||
HelipadData pd = { project(pad->geod()), pad };
|
||||
m_helipads.push_back(pd);
|
||||
recomputeBounds(false);
|
||||
extendBounds(pd.pt);
|
||||
update();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue