Class AnimationNodeData
java.lang.Object
org.opentrafficsim.animation.data.AnimationNodeData
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable,org.djutils.base.Identifiable,org.opentrafficsim.base.geometry.OtsLocatable,org.opentrafficsim.base.geometry.SpatialObject,ClickableLocatable,ClickablePointLocatable,NodeAnimation.NodeData
Animation data of a Node.
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.ClickablePointLocatable
getBoundsMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZMethods inherited from interface org.opentrafficsim.draw.network.NodeAnimation.NodeData
getZMethods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getShape
-
Constructor Details
-
AnimationNodeData
public AnimationNodeData(org.opentrafficsim.core.network.Node node) Constructor.- Parameters:
node- node.
-
-
Method Details
-
getContour
public org.djutils.draw.line.Polygon2d getContour()- Specified by:
getContourin interfaceorg.opentrafficsim.base.geometry.SpatialObject
-
getId
- Specified by:
getIdin interfaceorg.djutils.base.Identifiable
-
getLocation
public org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceNodeAnimation.NodeData- Specified by:
getLocationin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getNode
public org.opentrafficsim.core.network.Node getNode()Returns the node.- Returns:
- node.
-
toString
-