Package 

Class DrawCognitiveMap

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.gui.effects.Effect , java.io.Serializable

    
    public class DrawCognitiveMap
    extends DrawOnce
                        

    Draws an orienting pedestrian' cognitive map.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private RangedInteger alpha
      private RangedInteger red
      private RangedInteger green
      private RangedInteger blue
    • Method Summary

      Modifier and Type Method Description
      <T, P extends Position2D<P>> void apply(Graphics2D graphics, Node<T> node, Environment<T, P> environment, Wormhole2D<P> wormhole)
      Color getColorSummary()
      RangedInteger getAlpha()
      RangedInteger getRed()
      RangedInteger getGreen()
      RangedInteger getBlue()
      void setAlpha(RangedInteger alpha)
      void setRed(RangedInteger red)
      void setGreen(RangedInteger green)
      void setBlue(RangedInteger blue)
      • Methods inherited from class it.unibo.alchemist.boundary.gui.effects.DrawOnce

        getMarkerNodeID
      • Methods inherited from class it.unibo.alchemist.boundary.gui.effects.Effect

        apply, apply, equals, hashCode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • apply

         <T, P extends Position2D<P>> void apply(Graphics2D graphics, Node<T> node, Environment<T, P> environment, Wormhole2D<P> wormhole)
        Parameters:
        graphics - graphics
        node - node
        environment - environment
        wormhole - the wormhole used to map environment's coords to screen coords
      • getRed

         RangedInteger getRed()
      • setAlpha

         void setAlpha(RangedInteger alpha)
        Parameters:
        alpha - alpha channel
      • setRed

         void setRed(RangedInteger red)
        Parameters:
        red - red channel
      • setGreen

         void setGreen(RangedInteger green)
        Parameters:
        green - green channel
      • setBlue

         void setBlue(RangedInteger blue)
        Parameters:
        blue - blue channel