Class AnimationCrossSectionElementData<T extends CrossSectionElement>
java.lang.Object
org.opentrafficsim.animation.data.AnimationCrossSectionElementData<T>
- Type Parameters:
T
- cross-section element type.
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
,CrossSectionElementAnimation.CrossSectionElementData
- Direct Known Subclasses:
AnimationLaneData
,AnimationShoulderData
,AnimationStripeData
public class AnimationCrossSectionElementData<T extends CrossSectionElement>
extends Object
implements CrossSectionElementAnimation.CrossSectionElementData
Animation data of a CrossSectionElement.
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
org.djutils.draw.line.PolyLine2d
Returns the cross section element.org.djutils.draw.point.Point2d
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ, getZ
-
Constructor Details
-
AnimationCrossSectionElementData
Constructor.- Parameters:
element
- T; cross section element.
-
-
Method Details
-
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
-
getCenterLine
public org.djutils.draw.line.PolyLine2d getCenterLine()- Specified by:
getCenterLine
in interfaceCrossSectionElementAnimation.CrossSectionElementData
-
getLinkId
- Specified by:
getLinkId
in interfaceCrossSectionElementAnimation.CrossSectionElementData
-
getLocation
public org.djutils.draw.point.Point2d getLocation()- Specified by:
getLocation
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getLocation
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getElement
Returns the cross section element.- Returns:
- T; cross-section element.
-
toString
-