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,CrossSectionElementAnimation.CrossSectionElementData,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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.draw.road.StripeAnimation.StripeData
StripeAnimation.StripeData.Type -
Field Summary
Fields inherited from class org.opentrafficsim.editor.extensions.map.MapCrossSectionData
centerLine -
Constructor Summary
ConstructorsConstructorDescriptionMapStripeData(StripeAnimation.StripeData.Type type, org.djunits.value.vdouble.scalar.Length width, org.djunits.value.vdouble.scalar.Length startOffset, 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, getWidthMethods 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
getDirZMethods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getBoundsMethods inherited from interface org.opentrafficsim.draw.road.StripeAnimation.StripeData
getLocation, getZ
-
Constructor Details
-
MapStripeData
public MapStripeData(StripeAnimation.StripeData.Type type, org.djunits.value.vdouble.scalar.Length width, org.djunits.value.vdouble.scalar.Length startOffset, XsdTreeNode linkNode, org.djutils.draw.line.PolyLine2d centerLine, org.djutils.draw.line.Polygon2d contour, org.opentrafficsim.road.network.lane.SliceInfo sliceInfo) Constructor.- Parameters:
type- Type; stripe type.width- Length; width.startOffset- Length; start offset.linkNode- XsdTreeNode; node representing the element.centerLine- PolyLine2d; center line.contour- PolyLine2d; contour.sliceInfo- SliceInfo; slice info.
-
-
Method Details
-
getCenterLine
public org.djutils.draw.line.PolyLine2d getCenterLine()- Specified by:
getCenterLinein interfaceCrossSectionElementAnimation.CrossSectionElementData- Specified by:
getCenterLinein interfaceStripeAnimation.StripeData- Overrides:
getCenterLinein classMapCrossSectionData
-
getType
- Specified by:
getTypein interfaceStripeAnimation.StripeData
-
getWidth
public org.djunits.value.vdouble.scalar.Length getWidth()- Specified by:
getWidthin interfaceStripeAnimation.StripeData
-
toString
- Overrides:
toStringin classMapCrossSectionData
-