Class AnimationLaneBasedObjectData<T extends LaneBasedObject>
java.lang.Object
org.opentrafficsim.animation.data.AnimationLaneBasedObjectData<T>
- Type Parameters:
T
- lane based object type
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable
,org.djutils.base.Identifiable
,org.opentrafficsim.base.geometry.OtsLocatable
,AbstractLineAnimation.LaneBasedObjectData
- Direct Known Subclasses:
AnimationBusStopData
,AnimationLaneDetectorData
,AnimationTrafficLightData
public abstract class AnimationLaneBasedObjectData<T extends LaneBasedObject>
extends Object
implements AbstractLineAnimation.LaneBasedObjectData
Animation data of a LaneBasedObject.
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.opentrafficsim.base.geometry.OtsBounds2d
getId()
org.djunits.value.vdouble.scalar.Length
org.djutils.draw.point.OrientedPoint2d
Returns the wrapped object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opentrafficsim.draw.road.AbstractLineAnimation.LaneBasedObjectData
getZ
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ
-
Constructor Details
-
AnimationLaneBasedObjectData
Constructor.- Parameters:
laneBasedObject
- T; laneBasedObject.
-
-
Method Details
-
getLaneWidth
public org.djunits.value.vdouble.scalar.Length getLaneWidth()- Specified by:
getLaneWidth
in interfaceAbstractLineAnimation.LaneBasedObjectData
-
getLocation
public org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocation
in interfaceAbstractLineAnimation.LaneBasedObjectData
- Specified by:
getLocation
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getLocation
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getBounds
public org.opentrafficsim.base.geometry.OtsBounds2d getBounds()- Specified by:
getBounds
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getBounds
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
getObject
Returns the wrapped object.- Returns:
- T; wrapped object.
-