Class MapLaneData
java.lang.Object
org.opentrafficsim.editor.extensions.map.MapCrossSectionData
org.opentrafficsim.editor.extensions.map.MapLaneData
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable
,org.djutils.base.Identifiable
,org.opentrafficsim.base.geometry.OtsLocatable
,CrossSectionElementAnimation.CrossSectionElementData
,LaneAnimation.LaneData
Lane data for in the editor.
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 class org.opentrafficsim.editor.extensions.map.MapCrossSectionData
centerLine
-
Constructor Summary
ConstructorDescriptionMapLaneData
(String id, XsdTreeNode linkNode, org.djutils.draw.line.PolyLine2d centerLine, org.djutils.draw.line.Polygon2d contour, org.opentrafficsim.road.network.lane.SliceInfo sliceInfo) Constructor. -
Method Summary
Methods inherited from class org.opentrafficsim.editor.extensions.map.MapCrossSectionData
getBounds, getLinkId, getLocation, getWidth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opentrafficsim.draw.road.CrossSectionElementAnimation.CrossSectionElementData
getLinkId
Methods inherited from interface org.opentrafficsim.draw.road.LaneAnimation.LaneData
getZ
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getBounds, getLocation
-
Constructor Details
-
MapLaneData
public MapLaneData(String id, XsdTreeNode linkNode, org.djutils.draw.line.PolyLine2d centerLine, org.djutils.draw.line.Polygon2d contour, org.opentrafficsim.road.network.lane.SliceInfo sliceInfo) Constructor.- Parameters:
id
- String; id.linkNode
- XsdTreeNode; node representing the element.centerLine
- PolyLine2d; center line.contour
- PolyLine2d; contour.sliceInfo
- SliceInfo; slice info.
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
getCenterLine
public org.djutils.draw.line.PolyLine2d getCenterLine()- Specified by:
getCenterLine
in interfaceCrossSectionElementAnimation.CrossSectionElementData
- Overrides:
getCenterLine
in classMapCrossSectionData
-
toString
- Overrides:
toString
in classMapCrossSectionData
-