Class AnimationGtuData
java.lang.Object
org.opentrafficsim.animation.data.AnimationIdentifiableShape<LaneBasedGtu>
org.opentrafficsim.animation.data.AnimationGtuData
- All Implemented Interfaces:
Locatable,Identifiable,OtsShape,DefaultCarAnimation.GtuData
public class AnimationGtuData
extends AnimationIdentifiableShape<LaneBasedGtu>
implements DefaultCarAnimation.GtuData
Animation data of a LaneBasedGtu.
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/interfaces inherited from interface org.opentrafficsim.draw.gtu.DefaultCarAnimation.GtuData
DefaultCarAnimation.GtuData.GtuMarker -
Field Summary
Fields inherited from interface org.opentrafficsim.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Constructor Summary
ConstructorsConstructorDescriptionAnimationGtuData(GtuColorerManager gtuColorerManager, LaneBasedGtu gtu, DefaultCarAnimation.GtuData.GtuMarker marker) Constructor. -
Method Summary
Methods inherited from class org.opentrafficsim.animation.data.AnimationIdentifiableShape
getAbsoluteContour, getId, getLocation, getObject, getRelativeBounds, getRelativeContourMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.gtu.DefaultCarAnimation.GtuData
getDirZ, getLocation, getZMethods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getRelativeBounds, getRelativeContour, signedDistance, signedDistance
-
Constructor Details
-
AnimationGtuData
public AnimationGtuData(GtuColorerManager gtuColorerManager, LaneBasedGtu gtu, DefaultCarAnimation.GtuData.GtuMarker marker) Constructor.- Parameters:
gtuColorerManager- factory.gtu- GTU.marker- marker
-
-
Method Details
-
getColor
- Specified by:
getColorin interfaceDefaultCarAnimation.GtuData
-
getLength
- Specified by:
getLengthin interfaceDefaultCarAnimation.GtuData
-
getWidth
- Specified by:
getWidthin interfaceDefaultCarAnimation.GtuData
-
getFront
- Specified by:
getFrontin interfaceDefaultCarAnimation.GtuData
-
getRear
- Specified by:
getRearin interfaceDefaultCarAnimation.GtuData
-
leftIndicatorOn
public boolean leftIndicatorOn()- Specified by:
leftIndicatorOnin interfaceDefaultCarAnimation.GtuData
-
rightIndicatorOn
public boolean rightIndicatorOn()- Specified by:
rightIndicatorOnin interfaceDefaultCarAnimation.GtuData
-
getMarker
- Specified by:
getMarkerin interfaceDefaultCarAnimation.GtuData
-
isBrakingLightsOn
public boolean isBrakingLightsOn()- Specified by:
isBrakingLightsOnin interfaceDefaultCarAnimation.GtuData
-
toString
-
getPath
- Specified by:
getPathin interfaceDefaultCarAnimation.GtuData
-