Class LXFixture.Segment

java.lang.Object
heronarts.lx.structure.LXFixture.Segment
Enclosing class:
LXFixture

protected class LXFixture.Segment extends Object
Class which represents a segment of the pixels in this fixture object (and its children), with a starting point, number and stride length all relative to this fixture's size.
  • Field Details

    • indexBuffer

      protected final int[] indexBuffer
    • byteEncoder

      protected final LXBufferOutput.ByteEncoder byteEncoder
    • length

      protected final int length
    • numChannels

      protected final int numChannels
  • Constructor Details

    • Segment

      protected Segment(int start, int num)
    • Segment

      protected Segment(int start, int num, int stride)
    • Segment

      protected Segment(int start, int num, int stride, int repeat)
    • Segment

      protected Segment(int start, int num, int stride, int repeat, boolean reverse)
    • Segment

      protected Segment(int start, int num, int stride, int repeat, boolean reverse, LXBufferOutput.ByteEncoder byteEncoder)
    • Segment

      protected Segment(int[] indexBuffer, LXBufferOutput.ByteEncoder byteEncoder)
      Constructs a segment with a fixed index buffer. Addresses in this index buffer are relative to the fixture itself, not global.
      Parameters:
      indexBuffer - Relative-indexed buffer
      byteEncoder - Byte encoder for this segment
  • Method Details

    • toIndexBuffer

      protected int[] toIndexBuffer(int start, int len)
      Returns a globally indexed buffer of the subset of points in this fixture
      Parameters:
      start - Start index
      len - Length of buffer
      Returns:
      Globally indexed set of indices for this fixture
    • getFixture

      protected LXFixture getFixture()
    • getBrightness

      protected LXParameter getBrightness()