Interface StripeAnimation.StripeData

All Superinterfaces:
LineLocatable, nl.tudelft.simulation.dsol.animation.Locatable, OtsShape
Enclosing class:
StripeAnimation

public static interface StripeAnimation.StripeData extends LineLocatable
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
  • Method Details

    • getLocation

      DirectedPoint2d getLocation()
      Specified by:
      getLocation in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getLocation in interface OtsShape
    • getCenterLine

      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

      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<StripeElement> getElements()
      Returns the stripe elements.
      Returns:
      stripe elements
    • getDashOffset

      Length getDashOffset()
      Return dash offset.
      Returns:
      dash offset
    • getWidth

      Length getWidth(Length position)
      Returns the line width.
      Parameters:
      position - where to obtain width
      Returns:
      line width
    • getZ

      default double getZ()
      Specified by:
      getZ in interface nl.tudelft.simulation.dsol.animation.Locatable