Package 

Class BidimensionalGaussianLayersMapper

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.gui.effects.LayerToFunctionMapper

    
    public final class BidimensionalGaussianLayersMapper
     implements LayerToFunctionMapper
                        

    Maps BidimensionalGaussianLayers, it ignores any other layer.

    This class also manages to infer optimal min and max layer values automatically so the user does not have to set them by hand.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Companion
    • Method Summary

      Modifier and Type Method Description
      <T extends Any, P extends Position2D<P>> Unit prepare(DrawLayersValues effect, Collection<Layer<T, P>> toDraw, Environment<T, P> env, Graphics2D g, IWormhole2D<P> wormhole) Prepare the mapping (if necessary).
      <T extends Any, P extends Position2D<P>> Collection<Function<In P, Out Number>> map(Collection<Layer<T, P>> layers) Effectively map the given layers, layers may be filtered too if the mapper is only able to map certain types of layers.
      <T extends Any, P extends Position2D<P>> Stream<Function<In P, Out Number>> map(Stream<Layer<T, P>> layers) see LayerToFunctionMapper.map.
      • Methods inherited from class it.unibo.alchemist.boundary.gui.effects.LayerToFunctionMapper

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait