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
      getPath in class LXComponent
      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
      getLabel in class LXComponent
      Label for this component
    • onLoop

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

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