Class MapStripeData
java.lang.Object
org.opentrafficsim.editor.extensions.map.MapCrossSectionData
org.opentrafficsim.editor.extensions.map.MapStripeData
- All Implemented Interfaces:
- nl.tudelft.simulation.dsol.animation.Locatable,- org.opentrafficsim.base.geometry.OtsLocatable,- org.opentrafficsim.base.geometry.SpatialObject,- org.opentrafficsim.draw.ClickableLineLocatable,- org.opentrafficsim.draw.ClickableLocatable,- org.opentrafficsim.draw.road.CrossSectionElementAnimation.CrossSectionElementData,- org.opentrafficsim.draw.road.StripeAnimation.StripeData
public class MapStripeData
extends MapCrossSectionData
implements org.opentrafficsim.draw.road.StripeAnimation.StripeData
Stripe 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 SummaryConstructorsConstructorDescriptionMapStripeData(org.djunits.value.vdouble.scalar.Length dashOffset, XsdTreeNode linkNode, org.opentrafficsim.road.network.lane.CrossSectionGeometry geometry, List<org.opentrafficsim.base.StripeElement> elements, org.opentrafficsim.base.StripeElement.StripeLateralSync lateralSync, org.djutils.draw.line.PolyLine2d linkLine, MapLinkData.MiddleOffset middleOffset, org.djunits.value.vdouble.scalar.Direction startDirection, org.djunits.value.vdouble.scalar.Direction endDirection) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionorg.opentrafficsim.base.geometry.DirectionalPolyLineorg.djunits.value.vdouble.scalar.LengthList<org.opentrafficsim.base.StripeElement>org.opentrafficsim.base.StripeElement.StripeLateralSyncReturns the lateral sync.org.djutils.draw.line.PolyLine2dgetLine()org.djutils.draw.line.PolyLine2dorg.djunits.value.vdouble.scalar.LengthgetWidth(org.djunits.value.vdouble.scalar.Length position) Returns the lane width at the give position.voidsetDashOffset(org.djunits.value.vdouble.scalar.Length dashOffset) Sets a new dash offset, which should only occur due to synchronization.toString()Methods inherited from class org.opentrafficsim.editor.extensions.map.MapCrossSectionDatagetContour, getLinkId, getLocation, getShapeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.ClickableLineLocatablegetBoundsMethods inherited from interface nl.tudelft.simulation.dsol.animation.LocatablegetDirZMethods inherited from interface org.opentrafficsim.base.geometry.OtsLocatablegetShapeMethods inherited from interface org.opentrafficsim.base.geometry.SpatialObjectgetContourMethods inherited from interface org.opentrafficsim.draw.road.StripeAnimation.StripeDatagetLocation, getZ
- 
Constructor Details- 
MapStripeDatapublic MapStripeData(org.djunits.value.vdouble.scalar.Length dashOffset, XsdTreeNode linkNode, org.opentrafficsim.road.network.lane.CrossSectionGeometry geometry, List<org.opentrafficsim.base.StripeElement> elements, org.opentrafficsim.base.StripeElement.StripeLateralSync lateralSync, org.djutils.draw.line.PolyLine2d linkLine, MapLinkData.MiddleOffset middleOffset, org.djunits.value.vdouble.scalar.Direction startDirection, org.djunits.value.vdouble.scalar.Direction endDirection) Constructor.- Parameters:
- dashOffset- dash offset
- linkNode- node representing the element
- geometry- geometry
- elements- elements
- lateralSync- lateral synchronization
- linkLine- link line
- middleOffset- middle offsets to determine link reference line
- startDirection- start direction
- endDirection- end direction
 
 
- 
- 
Method Details- 
getLinepublic org.djutils.draw.line.PolyLine2d getLine()- Specified by:
- getLinein interface- org.opentrafficsim.draw.ClickableLineLocatable
 
- 
getWidthpublic org.djunits.value.vdouble.scalar.Length getWidth(org.djunits.value.vdouble.scalar.Length position) Description copied from class:MapCrossSectionDataReturns the lane width at the give position.- Specified by:
- getWidthin interface- org.opentrafficsim.draw.road.StripeAnimation.StripeData
- Overrides:
- getWidthin class- MapCrossSectionData
- Parameters:
- position- position along the lane.
- Returns:
- lane width at the position.
 
- 
getReferenceLinepublic org.djutils.draw.line.PolyLine2d getReferenceLine()- Specified by:
- getReferenceLinein interface- org.opentrafficsim.draw.road.StripeAnimation.StripeData
 
- 
getCenterLinepublic org.opentrafficsim.base.geometry.DirectionalPolyLine getCenterLine()- Specified by:
- getCenterLinein interface- org.opentrafficsim.draw.road.CrossSectionElementAnimation.CrossSectionElementData
- Specified by:
- getCenterLinein interface- org.opentrafficsim.draw.road.StripeAnimation.StripeData
- Overrides:
- getCenterLinein class- MapCrossSectionData
 
- 
getElements- Specified by:
- getElementsin interface- org.opentrafficsim.draw.road.StripeAnimation.StripeData
 
- 
getDashOffsetpublic org.djunits.value.vdouble.scalar.Length getDashOffset()- Specified by:
- getDashOffsetin interface- org.opentrafficsim.draw.road.StripeAnimation.StripeData
 
- 
getLateralSyncpublic org.opentrafficsim.base.StripeElement.StripeLateralSync getLateralSync()Returns the lateral sync.- Returns:
- lateral sync.
 
- 
setDashOffsetpublic void setDashOffset(org.djunits.value.vdouble.scalar.Length dashOffset) Sets a new dash offset, which should only occur due to synchronization.- Parameters:
- dashOffset- dash offset
 
- 
toString- Overrides:
- toStringin class- MapCrossSectionData
 
 
-