Package heronarts.lx.structure
Class LXFixture.Segment
java.lang.Object
heronarts.lx.structure.LXFixture.Segment
- Enclosing class:
- LXFixture
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 Summary
Modifier and TypeFieldDescriptionprotected final LXBufferOutput.ByteEncoder
protected final int[]
protected final int
protected final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
Segment
(int[] indexBuffer, LXBufferOutput.ByteEncoder byteEncoder) Constructs a segment with a fixed index buffer.protected
Segment
(int start, int num) protected
Segment
(int start, int num, int stride) protected
Segment
(int start, int num, int stride, int repeat) protected
Segment
(int start, int num, int stride, int repeat, boolean reverse) protected
Segment
(int start, int num, int stride, int repeat, boolean reverse, LXBufferOutput.ByteEncoder byteEncoder) -
Method Summary
Modifier and TypeMethodDescriptionprotected LXParameter
protected LXFixture
protected int[]
toIndexBuffer
(int start, int len) Returns a globally indexed buffer of the subset of points in this fixture
-
Field Details
-
indexBuffer
protected final int[] indexBuffer -
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
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 bufferbyteEncoder
- 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 indexlen
- Length of buffer- Returns:
- Globally indexed set of indices for this fixture
-
getFixture
-
getBrightness
-