Package heronarts.lx

Class LXLayer

All Implemented Interfaces:
LXLoopTask, LXPath, LXSerializable, LXParameterListener
Direct Known Subclasses:
LXModelLayer, PlanesPattern.Plane

public abstract class LXLayer extends LXLayeredComponent
A layer is a components that has a run method and operates on some other buffer component. The layer does not actually own the color buffer. An effect is an example of a layer, or patterns may compose themselves from multiple layers.
  • Constructor Details

  • Method Details

    • getIndex

      public int getIndex()
    • getPath

      public String getPath()
      Description copied from class: LXComponent
      Accessor for the path of this object. Returns the path this component was registered with. Some subclasses may override this if path structure is dynamic.
      Specified by:
      getPath in interface LXPath
      Overrides:
      getPath in class LXComponent
      Returns:
      path of this component relative to its parent
    • getLabel

      public String getLabel()
      Description copied from class: LXComponent
      Accessor for the user-facing label of this component. Objects that implement the LXComponent.Renamable interface may allow the user to change this value.
      Specified by:
      getLabel in interface LXPath
      Overrides:
      getLabel in class LXComponent
      Returns:
      Label for this component
    • onLoop

      protected final void onLoop(double deltaMs)
      Overrides:
      onLoop in class LXLayeredComponent
    • run

      public abstract void run(double deltaMs)
      Run this layer.
      Parameters:
      deltaMs - Milliseconds elapsed since last frame