Package org.opentrafficsim.draw.road
Interface CrossSectionElementAnimation.CrossSectionElementData
- All Superinterfaces:
ClickableLocatable
,nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
,org.opentrafficsim.base.geometry.SpatialObject
- All Known Subinterfaces:
CrossSectionElementAnimation.ShoulderData
,LaneAnimation.LaneData
- Enclosing class:
- CrossSectionElementAnimation<L extends CrossSectionElementAnimation.CrossSectionElementData>
public static interface CrossSectionElementAnimation.CrossSectionElementData
extends ClickableLocatable
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
-
Field Summary
Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable
EXPANSE
-
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.line.PolyLine2d
Returns the center line in world coordinates.Return the id of the link.Methods inherited from interface org.opentrafficsim.draw.ClickableLocatable
getBounds
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ, getZ
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getLocation, getShape
Methods inherited from interface org.opentrafficsim.base.geometry.SpatialObject
getContour
-
Method Details
-
getCenterLine
org.djutils.draw.line.PolyLine2d getCenterLine()Returns the center line in world coordinates.- Returns:
- the center line in world coordinates
-
getLinkId
String getLinkId()Return the id of the link.- Returns:
- link id.
-