Package org.opentrafficsim.draw.road
Interface StripeAnimation.StripeData
- All Superinterfaces:
ClickableLineLocatable
,ClickableLocatable
,nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
,org.opentrafficsim.base.geometry.SpatialObject
- Enclosing class:
- StripeAnimation
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
-
Field Summary
Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable
EXPANSE
-
Method Summary
Modifier and TypeMethodDescriptionorg.opentrafficsim.base.geometry.DirectionalPolyLine
Returns the center line in world coordinates, with directions of end-points.org.djunits.value.vdouble.scalar.Length
Return dash offset.List<org.opentrafficsim.base.StripeElement>
Returns the stripe elements.org.djutils.draw.point.OrientedPoint2d
org.djutils.draw.line.PolyLine2d
Returns the line along which dashes are applied.org.djunits.value.vdouble.scalar.Length
getWidth
(org.djunits.value.vdouble.scalar.Length position) Returns the line width.default double
getZ()
Methods inherited from interface org.opentrafficsim.draw.ClickableLineLocatable
getBounds, getLine
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getShape
Methods inherited from interface org.opentrafficsim.base.geometry.SpatialObject
getContour
-
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.opentrafficsim.base.geometry.DirectionalPolyLine getCenterLine()Returns the center line in world coordinates, with directions of end-points.- Returns:
- the center line in world coordinates, with directions of end-points
-
getReferenceLine
org.djutils.draw.line.PolyLine2d getReferenceLine()Returns the line along which dashes are applied. At these fractions, parts of the centerline are taken.- Returns:
- line along which dashes are applied
-
getElements
List<org.opentrafficsim.base.StripeElement> getElements()Returns the stripe elements.- Returns:
- stripe elements
-
getDashOffset
org.djunits.value.vdouble.scalar.Length getDashOffset()Return dash offset.- Returns:
- dash offset
-
getWidth
org.djunits.value.vdouble.scalar.Length getWidth(org.djunits.value.vdouble.scalar.Length position) Returns the line width.- Parameters:
position
- where to obtain width- Returns:
- line width
-
getZ
default double getZ()- Specified by:
getZ
in interfacenl.tudelft.simulation.dsol.animation.Locatable
-