Package org.opentrafficsim.draw.lane
Class LaneStructureAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D<LaneStructureLocatable>
org.opentrafficsim.draw.lane.LaneStructureAnimation
- All Implemented Interfaces:
Serializable
,nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface<LaneStructureLocatable>
public class LaneStructureAnimation
extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<LaneStructureLocatable>
LaneStructureAnimation.java.
Copyright (c) 2013-2023 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 nl.tudelft.simulation.dsol.animation.D2.Renderable2D
bind2Context, contains, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate, toString
-
Constructor Details
-
LaneStructureAnimation
LaneStructureAnimation(LaneStructureLocatable source) throws NamingException, RemoteException - Parameters:
source
- LaneStructureLocatable; dummy locatable- Throws:
NamingException
- on naming exceptionRemoteException
- on remote exception
-
-
Method Details
-
paint
- Specified by:
paint
in classnl.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 visualizegtu
- Gtu; GTU to animate the LaneStructure of
-