Interface ConflictAnimation.ConflictData
- All Superinterfaces:
AbstractLineAnimation.LaneBasedObjectData,Identifiable,LineLocatable,Locatable,OtsShape
- Enclosing class:
- ConflictAnimation
public static interface ConflictAnimation.ConflictData
extends AbstractLineAnimation.LaneBasedObjectData
Provides the information required to draw a conflict.
-
Field Summary
Fields inherited from interface org.opentrafficsim.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns the conflict color.booleanWhether the conflict is a crossing.booleanWhether the conflict is a permitted conflict.Methods inherited from interface org.opentrafficsim.animation.road.AbstractLineAnimation.LaneBasedObjectData
getLaneWidth, getLocation, getZMethods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.animation.LineLocatable
contains, getLine, signedDistanceMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getDirZ, getRelativeBounds, getRelativeContour, signedDistance
-
Method Details
-
getColor
Color getColor()Returns the conflict color.- Returns:
- conflict color
-
isCrossing
boolean isCrossing()Whether the conflict is a crossing.- Returns:
- whether the conflict is a crossing
-
isPermitted
boolean isPermitted()Whether the conflict is a permitted conflict.- Returns:
- whether the conflict is a permitted conflict
-