Interface ILayeredDrawingSpace

All Superinterfaces:
IPipelineInput, IPipelineNode

public interface ILayeredDrawingSpace extends IPipelineInput
A combination of multiple IDrawingSpace's, stacked on top to produce layering. This produces a slight performance overhead, but allows for easier development and combination of stuff.
  • Method Details

    • layers

      List<IDrawingSpace> layers()
      Returns:
      all layers of this drawing space
    • resultBuffer

      FullSpacedColorBuffer resultBuffer()
      Returns:
      the result buffer of this drawing space
    • ctx

      Specified by:
      ctx in interface IPipelineInput
      Returns:
      the context in which everything is drawn
    • layer

      IDrawingSpace layer(int index) throws IndexOutOfBoundsException
      Parameters:
      index - the index of the wanted layer
      Returns:
      the layer with the given index
      Throws:
      IndexOutOfBoundsException - if the index is invalid
    • newLayer

      IDrawingSpace newLayer()
      Creates a new layer on top of the other layers
      Returns:
      the new layer
    • layerOrNew

      IDrawingSpace layerOrNew(int index)
      Creates a new layer on the given index of the other layers.

      If the index is greater than the number of layers, the new layer will be on top of the other layers.
      If layers below the given index are missing, they will be created as well

      Parameters:
      index - the index of the new layer
      Returns:
      the new layer