Package org.opentrafficsim.draw.gtu
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 TypeMethodDescriptiongetColor()Returns the GTU color.org.djunits.value.vdouble.scalar.LengthgetFront()Returns the distance towards the front.org.djunits.value.vdouble.scalar.LengthReturns the length.org.djutils.draw.point.OrientedPoint2ddefault RectangularShapeReturns the shape of a marker to show when zoomed out.org.djunits.value.vdouble.scalar.LengthgetRear()Returns the distance towards the rear.org.djunits.value.vdouble.scalar.LengthgetWidth()Returns the width.default doublegetZ()booleanReturns whether the braking lights are on.booleanReturns whether the left indicator is on.booleanReturns whether the right indicator is on.Methods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZMethods 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
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:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getZ
default double getZ()- Specified by:
getZin interfacenl.tudelft.simulation.dsol.animation.Locatable
-