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
,org.opentrafficsim.base.geometry.SpatialObject
,ClickableLineLocatable
,ClickableLocatable
,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
-
Field Summary
Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable
EXPANSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.line.PolyLine2d
org.djutils.draw.line.Polygon2d
getId()
org.djutils.draw.line.PolyLine2d
getLine()
org.opentrafficsim.core.network.Link
getLink()
Returns the link.org.djutils.draw.point.OrientedPoint2d
org.opentrafficsim.base.geometry.OtsShape
getShape()
boolean
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opentrafficsim.draw.ClickableLineLocatable
getBounds
Methods inherited from interface org.opentrafficsim.draw.network.LinkAnimation.LinkData
getZ
Methods 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.
-
-
Method Details
-
getContour
public org.djutils.draw.line.Polygon2d getContour()- Specified by:
getContour
in interfaceorg.opentrafficsim.base.geometry.SpatialObject
-
getShape
public org.opentrafficsim.base.geometry.OtsShape getShape()- Specified by:
getShape
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
isConnector
public boolean isConnector()- Specified by:
isConnector
in interfaceLinkAnimation.LinkData
-
getCenterLine
public org.djutils.draw.line.PolyLine2d getCenterLine()- Specified by:
getCenterLine
in interfaceLinkAnimation.LinkData
-
getLine
public org.djutils.draw.line.PolyLine2d getLine()- Specified by:
getLine
in interfaceClickableLineLocatable
-
getLocation
public org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocation
in interfaceLinkAnimation.LinkData
- Specified by:
getLocation
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getLocation
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getLink
public org.opentrafficsim.core.network.Link getLink()Returns the link.- Returns:
- link.
-
toString
-