Interface DefaultCarAnimation.GtuData

All Superinterfaces:
org.djutils.base.Identifiable, nl.tudelft.simulation.dsol.animation.Locatable, org.opentrafficsim.base.geometry.OtsLocatable
Enclosing class:
DefaultCarAnimation

public static interface DefaultCarAnimation.GtuData extends org.opentrafficsim.base.geometry.OtsLocatable, org.djutils.base.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 Summary

    Modifier and Type
    Method
    Description
    Returns the GTU color.
    org.djunits.value.vdouble.scalar.Length
    Returns the distance towards the front.
    org.djunits.value.vdouble.scalar.Length
    Returns the length.
    org.djutils.draw.point.OrientedPoint2d
    Returns the shape of a marker to show when zoomed out.
    org.djunits.value.vdouble.scalar.Length
    Returns the distance towards the rear.
    org.djunits.value.vdouble.scalar.Length
    Returns the width.
    default double
    boolean
    Returns whether the braking lights are on.
    boolean
    Returns whether the left indicator is on.
    boolean
    Returns whether the right indicator is on.

    Methods inherited from interface org.djutils.base.Identifiable

    getId

    Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable

    getDirZ

    Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable

    getBounds
  • Method Details

    • getColor

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

      org.djunits.value.vdouble.scalar.Length getLength()
      Returns the length.
      Returns:
      Length; length.
    • getWidth

      org.djunits.value.vdouble.scalar.Length getWidth()
      Returns the width.
      Returns:
      Length; width.
    • getFront

      org.djunits.value.vdouble.scalar.Length getFront()
      Returns the distance towards the front.
      Returns:
      Length; distance towards the front.
    • getRear

      org.djunits.value.vdouble.scalar.Length getRear()
      Returns the distance towards the rear.
      Returns:
      Length; distance towards the rear.
    • leftIndicatorOn

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

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

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

      boolean isBrakingLightsOn()
      Returns whether the braking lights are on.
      Returns:
      boolean; whether the braking lights are on.
    • 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
    • getZ

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