Interface DefaultCarAnimation.GtuData

All Superinterfaces:
Identifiable, nl.tudelft.simulation.dsol.animation.Locatable, OtsShape
Enclosing class:
DefaultCarAnimation

public static interface DefaultCarAnimation.GtuData extends OtsShape, Identifiable
GtuData provides the information required to draw a link.

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:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Details

    • getColor

      Color getColor()
      Returns the GTU color.
      Returns:
      GTU color.
    • getLength

      Length getLength()
      Returns the length.
      Returns:
      length.
    • getWidth

      Length getWidth()
      Returns the width.
      Returns:
      width.
    • getFront

      Length getFront()
      Returns the distance towards the front.
      Returns:
      distance towards the front.
    • getRear

      Length getRear()
      Returns the distance towards the rear.
      Returns:
      distance towards the rear.
    • leftIndicatorOn

      boolean leftIndicatorOn()
      Returns whether the left indicator is on.
      Returns:
      whether the left indicator is on.
    • rightIndicatorOn

      boolean rightIndicatorOn()
      Returns whether the right indicator is on.
      Returns:
      whether the right indicator is on.
    • getMarker

      default RectangularShape getMarker()
      Returns the shape of a marker to show when zoomed out.
      Returns:
      shape of a marker to show when zoomed out.
    • isBrakingLightsOn

      boolean isBrakingLightsOn()
      Returns whether the braking lights are on.
      Returns:
      whether the braking lights are on.
    • getLocation

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

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

      default double getDirZ()
      Specified by:
      getDirZ in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getDirZ in interface OtsShape
    • getPath

      default OtsLine2d getPath()
      Returns the path.
      Returns:
      path