Package org.opentrafficsim.draw.road
Interface CrossSectionElementAnimation.CrossSectionElementData
- All Superinterfaces:
nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
- All Known Subinterfaces:
CrossSectionElementAnimation.ShoulderData
,LaneAnimation.LaneData
- Enclosing class:
- CrossSectionElementAnimation<L extends CrossSectionElementAnimation.CrossSectionElementData>
public static interface CrossSectionElementAnimation.CrossSectionElementData
extends org.opentrafficsim.base.geometry.OtsLocatable
CrossSectionElementData provides the information required to draw a cross section element.
Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.line.PolyLine2d
Returns the center line.Return the id of the link.Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ, getZ
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getBounds, getLocation
-
Method Details
-
getCenterLine
org.djutils.draw.line.PolyLine2d getCenterLine()Returns the center line.- Returns:
- PolyLine2d; center line.
-
getLinkId
String getLinkId()Return the id of the link.- Returns:
- String; link id.
-