Class MapCrossSectionData
java.lang.Object
org.opentrafficsim.editor.extensions.map.MapCrossSectionData
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable,OtsShape,CrossSectionElementAnimation.CrossSectionElementData
- Direct Known Subclasses:
MapLaneData,MapShoulderData,MapStripeData
public class MapCrossSectionData
extends Object
implements CrossSectionElementAnimation.CrossSectionElementData
Cross section element 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 interface org.opentrafficsim.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Constructor Summary
ConstructorsConstructorDescriptionMapCrossSectionData(XsdTreeNode linkNode, CrossSectionGeometry geometry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the link id.Returns the lane width at the give position.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getZMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, contains, getAbsoluteBounds, getAbsoluteContour, getDirZ, getRelativeBounds, signedDistance, signedDistance
-
Constructor Details
-
MapCrossSectionData
Constructor.- Parameters:
linkNode- node representing the elementgeometry- geometry
-
-
Method Details
-
getLocation
- Specified by:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceOtsShape
-
getAbsoluteContour
- Specified by:
getAbsoluteContourin interfaceOtsShape
-
getRelativeContour
- Specified by:
getRelativeContourin interfaceOtsShape
-
getCenterLine
- Specified by:
getCenterLinein interfaceCrossSectionElementAnimation.CrossSectionElementData
-
getLinkId
Returns the link id.- Specified by:
getLinkIdin interfaceCrossSectionElementAnimation.CrossSectionElementData- Returns:
- link id.
-
getWidth
Returns the lane width at the give position.- Parameters:
position- position along the lane.- Returns:
- lane width at the position.
-
toString
-