You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// On Airport Lines and Taxiways, we want to preserve the line/light properties of each segment, effectivly ONLY reversing the node sequence.
414
416
// Very usefull when reversing airport lines with differently tagged segments. It effectively brings the blue taxiway edge lights to the other side ONLY.
415
-
417
+
416
418
if (dynamic_cast <WED_AirportNode *> (GetNthChild(0)))
417
419
{
418
420
for(n = 0; n < np/2; ++n) // directly swap the attributes of the nodes. No need to first build a local copy and then write it back in reverse order.
WED_AirportNode * a_n = dynamic_cast <WED_AirportNode *> (GetNthChild(n)); // note to self: mCache would yield no speedup here, as we dynamic_cast every point only once
422
424
WED_AirportNode * a_t = dynamic_cast <WED_AirportNode *> (GetNthChild(t)); // thus we get away with NOT expanding RebuildCache to work for 'gis_Apt" layers :)
WED_FacadeNode * a_n = dynamic_cast <WED_FacadeNode *> (GetNthChild(n)); // note to self: mCache would yield no speedup here, as we dynamic_cast every point only once
437
439
WED_FacadeNode * a_t = dynamic_cast <WED_FacadeNode *> (GetNthChild(t)); // thus we get away with NOT expanding RebuildCache to work for 'gis_Apt" layers :)
if (has_hi[n]) mCachePtsBezier[t]->SetControlHandleHi(l, p_h[n]);
493
495
elsemCachePtsBezier[t]->DeleteHandleHi();
494
-
}
496
+
}
495
497
}
496
-
}
498
+
// For facades, it makes more sense to keep the wall type in its position and only move the segments so that the very first segment is in the right place.
499
+
// Users use this mainly to relocate the “ground contact point” of the facade. w.r.t cache same as for Reverse function above
if(sub_class != WED_AirportBoundary::sClass && sub_class != WED_ExclusionPoly::sClass) // not down-clickable in interior, but still highlighted interior
0 commit comments