averbraeck / opentrafficsim

Open Source Multi-Level Traffic Simulator
BSD 3-Clause "New" or "Revised" License
28 stars 8 forks source link

Animation from simulation or editing #63

Closed WJSchakel closed 11 months ago

WJSchakel commented 1 year ago

In order to allow animation of objects both during simulation and during editing, DSOL has already been prepared (animator separate from simulator). The animation objects in OTS now need to become able to deal both with simulation and with editing objects. The basic idea is to have for each animator, using Link as an example:

WJSchakel commented 11 months ago
WJSchakel commented 11 months ago

LaneStructureAnimation and LaneStructureLocatable are left as is. They will be removed in the future when LaneStructure is no longer used.

WJSchakel commented 11 months ago

Nested and anonymous classes in DefaultAnimationFactory have been made separate types in org.opentrafficsim.animation.data.

org.opentrafficsim.draw.DrawLevel is an enum that contains several z-coordinate adjustments for drawing order. They are used throughout the data objects. Underlying objects (Lane, LaneBasedGtu, etc.) are not Locatable without strange fixes for animation.