LayerToFunctionMapper

interface LayerToFunctionMapper : Serializable

Defines an object capable of mapping a Layer to a Function<* in P, * out Number>.

Functions

Link copied to clipboard
abstract fun <T, P : Position2D<P>> map(layers: Stream<Layer<T, P>>): Stream<Function<in P, out Number>>
abstract fun <T, P : Position2D<P>> map(layers: Collection<Layer<T, P>>): Collection<Function<in P, out Number>>

Effectively map the given layers, layers may be filtered too if the mapper is only able to map certain types of layers.

Link copied to clipboard
open fun <T, P : Position2D<P>> prepare(    effect: DrawLayersValues,     toDraw: Collection<Layer<T, P>>,     environment: Environment<T, P>,     g: Graphics2D,     wormhole: Wormhole2D<P>)

Prepare the mapping (if necessary).

Inheritors

Link copied to clipboard