Package org.opentrafficsim.draw
Interface ClickableLineLocatable
- All Superinterfaces:
ClickableLocatable
,nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
,org.opentrafficsim.base.geometry.SpatialObject
- All Known Subinterfaces:
AbstractLineAnimation.LaneBasedObjectData
,BusStopAnimation.BusStopData
,ConflictAnimation.ConflictData
,LaneDetectorAnimation.LaneDetectorData
,LaneDetectorAnimation.LoopDetectorData
,LaneDetectorAnimation.SinkData
,LinkAnimation.LinkData
,StripeAnimation.StripeData
,TrafficLightAnimation.TrafficLightData
- All Known Implementing Classes:
LaneAnimation.CenterLine
This class returns bounds that respond to
contains(x, y)
by checking a clickable expanse around a line.
Copyright (c) 2024-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
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ, getZ
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getLocation, getShape
Methods inherited from interface org.opentrafficsim.base.geometry.SpatialObject
getContour
-
Method Details
-
getBounds
default org.djutils.draw.bounds.Bounds2d getBounds()- Specified by:
getBounds
in interfaceClickableLocatable
- Specified by:
getBounds
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getBounds
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getLine
org.djutils.draw.line.PolyLine2d getLine()Returns line representation of this object in object coordinates.- Returns:
- line representation of this object in object coordinates.
-