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,- org.opentrafficsim.base.geometry.SpatialObject
- 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
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumMarker for GTU when zoomed out.
- 
Method SummaryModifier 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.IdentifiablegetIdMethods inherited from interface nl.tudelft.simulation.dsol.animation.LocatablegetDirZMethods inherited from interface org.opentrafficsim.base.geometry.OtsLocatablegetBounds, getShapeMethods inherited from interface org.opentrafficsim.base.geometry.SpatialObjectgetContour
- 
Method Details- 
getColorColor getColor()Returns the GTU color.- Returns:
- GTU color.
 
- 
getLengthorg.djunits.value.vdouble.scalar.Length getLength()Returns the length.- Returns:
- length.
 
- 
getWidthorg.djunits.value.vdouble.scalar.Length getWidth()Returns the width.- Returns:
- width.
 
- 
getFrontorg.djunits.value.vdouble.scalar.Length getFront()Returns the distance towards the front.- Returns:
- distance towards the front.
 
- 
getRearorg.djunits.value.vdouble.scalar.Length getRear()Returns the distance towards the rear.- Returns:
- distance towards the rear.
 
- 
leftIndicatorOnboolean leftIndicatorOn()Returns whether the left indicator is on.- Returns:
- whether the left indicator is on.
 
- 
rightIndicatorOnboolean rightIndicatorOn()Returns whether the right indicator is on.- Returns:
- whether the right indicator is on.
 
- 
getMarkerReturns the shape of a marker to show when zoomed out.- Returns:
- shape of a marker to show when zoomed out.
 
- 
isBrakingLightsOnboolean isBrakingLightsOn()Returns whether the braking lights are on.- Returns:
- whether the braking lights are on.
 
- 
getLocationorg.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
- getLocationin interface- nl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
- getLocationin interface- org.opentrafficsim.base.geometry.OtsLocatable
 
- 
getZdefault double getZ()- Specified by:
- getZin interface- nl.tudelft.simulation.dsol.animation.Locatable
 
 
-