Package org.opentrafficsim.draw.road
Interface ConflictAnimation.ConflictData
- All Superinterfaces:
AbstractLineAnimation.LaneBasedObjectData
,org.djutils.base.Identifiable
,nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
- Enclosing class:
- ConflictAnimation
public static interface ConflictAnimation.ConflictData
extends AbstractLineAnimation.LaneBasedObjectData
ConflictData provides the information required to draw a conflict.
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
-
Method Summary
Methods inherited from interface org.opentrafficsim.draw.road.AbstractLineAnimation.LaneBasedObjectData
getLaneWidth, getLocation, getZ
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
getBounds
-
Method Details
-
getColor
Color getColor()Returns the conflict color.- Returns:
- Color; conflict color.
-
getContour
List<org.djutils.draw.point.Point2d> getContour()Returns the contour.- Returns:
- List<Point2d>; points.
-
isCrossing
boolean isCrossing()Whether the conflict is a crossing.- Returns:
- boolean; whether the conflict is a crossing.
-
isPermitted
boolean isPermitted()Whether the conflict is a permitted conflict.- Returns:
- boolean; whether the conflict is a permitted conflict.
-