Class LaneDetectorAnimation<L extends LaneDetectorAnimation.LaneDetectorData>

Type Parameters:
L - detector data type
All Implemented Interfaces:
Renderable2dInterface<L>

public class LaneDetectorAnimation<L extends LaneDetectorAnimation.LaneDetectorData> extends AbstractLineAnimation<L,LaneDetectorAnimation.Text<L>>
Draw lane detector.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • LaneDetectorAnimation

      public LaneDetectorAnimation(L laneDetector, nl.tudelft.simulation.naming.context.Contextualized contextualized, Color color)
      This constructor uses a provider for the text animation. This should provide an animation that extends TextAnimation and implements the right tagging interface to toggle the correct label belonging to L. Alternatively, the toggle can be specified to the class that extends TextAnimation directly.
      Parameters:
      laneDetector - the lane detector to draw
      contextualized - context provider
      color - the display color of the detector
    • LaneDetectorAnimation

      public LaneDetectorAnimation(L laneDetector, nl.tudelft.simulation.naming.context.Contextualized contextualized, Color color, String prefix)
      This constructor uses a provider for the text animation. This should provide an animation that extends TextAnimation and implements the right tagging interface to toggle the correct label belonging to L. Alternatively, the toggle can be specified to the class that extends TextAnimation directly.
      Parameters:
      laneDetector - the lane detector to draw
      contextualized - context provider
      color - the display color of the detector
      prefix - label prefix
  • Method Details