-
- 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
BidimensionalGaussianLayersMapper.Companion
-
Constructor Summary
Constructors Constructor Description BidimensionalGaussianLayersMapper()
-
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, Wormhole2D<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. -
-
Method Detail
-
prepare
<T extends Any, P extends Position2D<P>> Unit prepare(DrawLayersValues effect, Collection<Layer<T, P>> toDraw, Environment<T, P> env, Graphics2D g, Wormhole2D<P> wormhole)
Prepare the mapping (if necessary).
-
map
<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.
-
-
-
-