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.DirectionalPolyLineReturns the center line in world coordinates, with directions of end-points.org.djunits.value.vdouble.scalar.LengthReturn dash offset.List<org.opentrafficsim.base.StripeElement>Returns the stripe elements.org.djutils.draw.point.OrientedPoint2dorg.djutils.draw.line.PolyLine2dReturns the line along which dashes are applied.org.djunits.value.vdouble.scalar.LengthgetWidth(org.djunits.value.vdouble.scalar.Length position) Returns the line width.default doublegetZ()Methods inherited from interface org.opentrafficsim.draw.ClickableLineLocatable
getBounds, getLineMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZMethods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getShapeMethods inherited from interface org.opentrafficsim.base.geometry.SpatialObject
getContour
-
Method Details
-
getLocation
org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin 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:
getZin interfacenl.tudelft.simulation.dsol.animation.Locatable
-