Package org.opentrafficsim.draw.road
Interface CrossSectionElementAnimation.CrossSectionElementData
- All Superinterfaces:
nl.tudelft.simulation.dsol.animation.Locatable,OtsShape
- All Known Subinterfaces:
CrossSectionElementAnimation.ShoulderData,LaneAnimation.LaneData
- Enclosing class:
- CrossSectionElementAnimation<L extends CrossSectionElementAnimation.CrossSectionElementData>
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.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Method Summary
Modifier and TypeMethodDescriptionReturns the center line in world coordinates.Return the id of the link.Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getZMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getDirZ, getLocation, getRelativeBounds, getRelativeContour, signedDistance, signedDistance
-
Method Details
-
getCenterLine
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.
-