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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Stripe type (same fields as org.opentrafficsim.road.network.lane.Stripe.Type).
  • Method Summary

    Modifier and Type
    Method
    Description
    org.djutils.draw.line.PolyLine2d
    Returns the center line.
    org.djutils.draw.point.OrientedPoint2d
    Returns the stripe type.
    org.djunits.value.vdouble.scalar.Length
    Returns the line width.
    default double

    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 interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getLocation in interface org.opentrafficsim.base.geometry.OtsLocatable
    • getCenterLine

      org.djutils.draw.line.PolyLine2d getCenterLine()
      Returns the center line.
      Returns:
      PolyLine2d; center line.
    • 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 interface nl.tudelft.simulation.dsol.animation.Locatable