Class LaneStructureAnimation

java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.base.geometry.OtsRenderable<LaneStructureLocatable>
org.opentrafficsim.animation.lane.LaneStructureAnimation
All Implemented Interfaces:
Serializable, nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface<LaneStructureLocatable>

public class LaneStructureAnimation extends org.opentrafficsim.base.geometry.OtsRenderable<LaneStructureLocatable>
LaneStructureAnimation.java.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck
See Also:
  • Field Summary

    Fields inherited from class org.opentrafficsim.base.geometry.OtsRenderable

    RENDERING_KEYS, RENDERING_VALUES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    paint(Graphics2D graphics, ImageObserver observer)
    static final void
    visualize(RollingLaneStructure rollingLaneStructure, org.opentrafficsim.core.gtu.Gtu gtu)
    Enables visualization of this lane structure.

    Methods inherited from class org.opentrafficsim.base.geometry.OtsRenderable

    contains, resetRendering, setRendering, toBoundsTransform

    Methods inherited from class nl.tudelft.simulation.dsol.animation.d2.Renderable2d

    bind2Context, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • paint

      public void paint(Graphics2D graphics, ImageObserver observer)
      Specified by:
      paint in class nl.tudelft.simulation.dsol.animation.d2.Renderable2d<LaneStructureLocatable>
    • visualize

      public static final void visualize(RollingLaneStructure rollingLaneStructure, org.opentrafficsim.core.gtu.Gtu gtu)
      Enables visualization of this lane structure. This is purely for debugging purposes.
      Parameters:
      rollingLaneStructure - RollingLaneStructure; the lane structure to visualize
      gtu - Gtu; GTU to animate the LaneStructure of