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,Renderable2DInterface<LaneStructureLocatable>
public class LaneStructureAnimation extends Renderable2D<LaneStructureLocatable>
LaneStructureAnimation.java.Copyright (c) 2003-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
Renderable2DInterface.Util
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaint(Graphics2D graphics, ImageObserver observer)static voidvisualize(RollingLaneStructure rollingLaneStructure, GTU gtu)Enables visualization of this lane structure.-
Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
bind2Context, contains, destroy, equals, getSource, hashCode, isFlip, isRotate, isScale, isTranslate, paint, setFlip, setRotate, setScale, setTranslate, toString
-
-
-
-
Method Detail
-
paint
public void paint(Graphics2D graphics, ImageObserver observer) throws RemoteException
- Specified by:
paintin classRenderable2D<LaneStructureLocatable>- Throws:
RemoteException
-
visualize
public static final void visualize(RollingLaneStructure rollingLaneStructure, 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
-
-