Package org.opentrafficsim.animation
Class PerceptionAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
org.opentrafficsim.draw.OtsRenderable<PerceptionAnimation.ChannelAttention>
org.opentrafficsim.animation.PerceptionAnimation
- All Implemented Interfaces:
Renderable2dInterface<PerceptionAnimation.ChannelAttention>
Draws circles around a GTU indicating the level of attention and perception delay.
Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLocatable for GTU in attention context. -
Field Summary
Fields inherited from interface nl.tudelft.simulation.dsol.animation.d2.Renderable2dInterface
ANIMATION_OBJECT_COUNTER, FLIP_FLAG, ROTATE_FLAG, SCALE_FLAG, SCALE_OBJECT_FLAG, SCALE_Y_FLAG, TRANSLATE_FLAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidPaints the icon (Attention24.png).voidpaint(Graphics2D graphics, ImageObserver observer) Methods inherited from class org.opentrafficsim.draw.OtsRenderable
contains, contains, resetRendering, setRenderingMethods inherited from class nl.tudelft.simulation.dsol.animation.d2.Renderable2d
bind2Context, contains, destroy, getId, getSource, isFlip, isRotate, isScale, isScaleObject, isScaleY, isTranslate, paint, paintComponent, setFlip, setRotate, setScale, setScaleObject, setScaleY, setTranslate, toString
-
Constructor Details
-
PerceptionAnimation
Constructor.- Parameters:
gtu- GTU
-
-
Method Details
-
paint
- Specified by:
paintin classRenderable2d<PerceptionAnimation.ChannelAttention>
-
main
Paints the icon (Attention24.png).- Parameters:
args- not used- Throws:
IOException- if icon cannot be written
-