Class MapCrossSectionData
java.lang.Object
org.opentrafficsim.editor.extensions.map.MapCrossSectionData
- All Implemented Interfaces:
- nl.tudelft.simulation.dsol.animation.Locatable,- org.opentrafficsim.base.geometry.OtsLocatable,- org.opentrafficsim.base.geometry.SpatialObject,- org.opentrafficsim.draw.ClickableLocatable,- org.opentrafficsim.draw.road.CrossSectionElementAnimation.CrossSectionElementData
- Direct Known Subclasses:
- MapLaneData,- MapShoulderData,- MapStripeData
public class MapCrossSectionData
extends Object
implements org.opentrafficsim.draw.road.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 SummaryFields inherited from interface org.opentrafficsim.draw.ClickableLocatableEXPANSE
- 
Constructor SummaryConstructorsConstructorDescriptionMapCrossSectionData(XsdTreeNode linkNode, org.opentrafficsim.road.network.lane.CrossSectionGeometry geometry) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionorg.djutils.draw.line.PolyLine2dorg.djutils.draw.line.Polygon2dReturns the link id.org.djutils.draw.point.OrientedPoint2dorg.opentrafficsim.base.geometry.OtsShapegetShape()org.djunits.value.vdouble.scalar.LengthgetWidth(org.djunits.value.vdouble.scalar.Length position) Returns the lane width at the give position.toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.ClickableLocatablegetBoundsMethods inherited from interface nl.tudelft.simulation.dsol.animation.LocatablegetDirZ, getZ
- 
Constructor Details- 
MapCrossSectionDatapublic MapCrossSectionData(XsdTreeNode linkNode, org.opentrafficsim.road.network.lane.CrossSectionGeometry geometry) Constructor.- Parameters:
- linkNode- node representing the element
- geometry- geometry
 
 
- 
- 
Method Details- 
getLocationpublic org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
- getLocationin interface- nl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
- getLocationin interface- org.opentrafficsim.base.geometry.OtsLocatable
 
- 
getContourpublic org.djutils.draw.line.Polygon2d getContour()- Specified by:
- getContourin interface- org.opentrafficsim.base.geometry.SpatialObject
 
- 
getShapepublic org.opentrafficsim.base.geometry.OtsShape getShape()- Specified by:
- getShapein interface- org.opentrafficsim.base.geometry.OtsLocatable
 
- 
getCenterLinepublic org.djutils.draw.line.PolyLine2d getCenterLine()- Specified by:
- getCenterLinein interface- org.opentrafficsim.draw.road.CrossSectionElementAnimation.CrossSectionElementData
 
- 
getLinkIdReturns the link id.- Specified by:
- getLinkIdin interface- org.opentrafficsim.draw.road.CrossSectionElementAnimation.CrossSectionElementData
- Returns:
- link id.
 
- 
getWidthpublic org.djunits.value.vdouble.scalar.Length getWidth(org.djunits.value.vdouble.scalar.Length position) Returns the lane width at the give position.- Parameters:
- position- position along the lane.
- Returns:
- lane width at the position.
 
- 
toString
 
-