Class AnimationLinkData
java.lang.Object
org.opentrafficsim.animation.data.AnimationLinkData
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable,org.djutils.base.Identifiable,org.opentrafficsim.base.geometry.OtsLocatable,LinkAnimation.LinkData
Animation data of 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:
- Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.network.LinkAnimation.LinkData
getZMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ
-
Constructor Details
-
AnimationLinkData
public AnimationLinkData(org.opentrafficsim.core.network.Link link) Constructor.- Parameters:
link- Link; link.
-
-
Method Details
-
getBounds
public org.opentrafficsim.base.geometry.OtsBounds2d getBounds()- Specified by:
getBoundsin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getBoundsin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getId
- Specified by:
getIdin interfaceorg.djutils.base.Identifiable
-
isConnector
public boolean isConnector()- Specified by:
isConnectorin interfaceLinkAnimation.LinkData
-
getDesignLine
public org.djutils.draw.line.PolyLine2d getDesignLine()- Specified by:
getDesignLinein interfaceLinkAnimation.LinkData
-
getLocation
public org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocationin interfaceLinkAnimation.LinkData- Specified by:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getLink
public org.opentrafficsim.core.network.Link getLink()Returns the link.- Returns:
- Link; link.
-
toString
-