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.PolyLine2dorg.djutils.draw.line.Polygon2dgetId()org.djutils.draw.line.PolyLine2dgetLine()org.opentrafficsim.core.network.LinkgetLink()Returns the link.org.djutils.draw.point.OrientedPoint2dorg.opentrafficsim.base.geometry.OtsShapegetShape()booleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.ClickableLineLocatable
getBoundsMethods 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.
-
-
Method Details
-
getContour
public org.djutils.draw.line.Polygon2d getContour()- Specified by:
getContourin interfaceorg.opentrafficsim.base.geometry.SpatialObject
-
getShape
public org.opentrafficsim.base.geometry.OtsShape getShape()- Specified by:
getShapein interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getId
- Specified by:
getIdin interfaceorg.djutils.base.Identifiable
-
isConnector
public boolean isConnector()- Specified by:
isConnectorin interfaceLinkAnimation.LinkData
-
getCenterLine
public org.djutils.draw.line.PolyLine2d getCenterLine()- Specified by:
getCenterLinein interfaceLinkAnimation.LinkData
-
getLine
public org.djutils.draw.line.PolyLine2d getLine()- Specified by:
getLinein interfaceClickableLineLocatable
-
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.
-
toString
-