Package org.opentrafficsim.draw.network
Interface LinkAnimation.LinkData
- All Superinterfaces:
ClickableLineLocatable
,ClickableLocatable
,org.djutils.base.Identifiable
,nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
,org.opentrafficsim.base.geometry.SpatialObject
- Enclosing class:
- LinkAnimation
public static interface LinkAnimation.LinkData
extends ClickableLineLocatable, org.djutils.base.Identifiable
LinkData provides the information required to draw 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
-
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.line.PolyLine2d
Returns the center line in world coordinates.org.djutils.draw.point.OrientedPoint2d
default double
getZ()
boolean
Returns whether this is a connector.Methods inherited from interface org.opentrafficsim.draw.ClickableLineLocatable
getBounds, getLine
Methods inherited from interface org.djutils.base.Identifiable
getId
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getShape
Methods inherited from interface org.opentrafficsim.base.geometry.SpatialObject
getContour
-
Method Details
-
getLocation
org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocation
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getLocation
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
isConnector
boolean isConnector()Returns whether this is a connector.- Returns:
- whether this is a connector.
-
getCenterLine
org.djutils.draw.line.PolyLine2d getCenterLine()Returns the center line in world coordinates.- Returns:
- the center line in world coordinates.
-
getZ
default double getZ()- Specified by:
getZ
in interfacenl.tudelft.simulation.dsol.animation.Locatable
-