Package org.opentrafficsim.draw.road
Interface StripeAnimation.StripeData
- All Superinterfaces:
nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
- Enclosing class:
- StripeAnimation
public static interface StripeAnimation.StripeData
extends org.opentrafficsim.base.geometry.OtsLocatable
StripeData provides the information required to draw a stripe.
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
Modifier and TypeInterfaceDescriptionstatic enum
Stripe type (same fields as org.opentrafficsim.road.network.lane.Stripe.Type). -
Method Summary
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getBounds
-
Method Details
-
getLocation
org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocation
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getLocation
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getCenterLine
org.djutils.draw.line.PolyLine2d getCenterLine()Returns the center line.- Returns:
- PolyLine2d; center line.
-
getType
StripeAnimation.StripeData.Type getType()Returns the stripe type.- Returns:
- Type; stripe type.
-
getWidth
org.djunits.value.vdouble.scalar.Length getWidth()Returns the line width.- Returns:
- Length; line width.
-
getZ
default double getZ()- Specified by:
getZ
in interfacenl.tudelft.simulation.dsol.animation.Locatable
-