public class StreamingACNDatagram extends LXDatagram
LXDatagram.ErrorState
LXBufferOutput.ByteOrder
LXOutput.GammaMode, LXOutput.InetOutput
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
static int |
MAX_DATA_LENGTH |
protected static int |
OFFSET_DMX_DATA |
protected static int |
OFFSET_SEQUENCE_NUMBER |
protected static int |
OFFSET_UNIVERSE_NUMBER |
buffer, error
byteOrder, byteOrderBuffer, indexBuffer
brightness, enabled, framesPerSecond, gamma, gammaMode
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
NO_PORT
Modifier | Constructor and Description |
---|---|
|
StreamingACNDatagram(LX lx,
int[] indexBuffer)
Constructs a StreamingACNDatagram on default universe
|
|
StreamingACNDatagram(LX lx,
int[] indexBuffer,
int universeNumber)
Constructs a datagram, sends the list of point indices on the given
universe number.
|
|
StreamingACNDatagram(LX lx,
int[] indexBuffer,
int dataSize,
int universeNumber)
Creates a StreamingACNDatagram for a given index buffer with fixed data size and universe number
|
|
StreamingACNDatagram(LX lx,
int[] indexBuffer,
LXBufferOutput.ByteOrder byteOrder,
int universeNumber)
Creates a StreamingACNDatagrm for given index buffer on universe and byte order
|
|
StreamingACNDatagram(LX lx,
int[] indexBuffer,
LXBufferOutput.ByteOrder byteOrder,
int dataSize,
int universeNumber)
Creates a StreamingACNDatagram for a given index buffer with fixed data size and universe number
|
protected |
StreamingACNDatagram(LX lx,
int dataSize,
int universeNumber)
Subclasses may use this constructor for datagrams with custom DMX data of a fixed length.
|
|
StreamingACNDatagram(LX lx,
LXModel model)
Creates a StreamingACNDatagram for the given model
|
|
StreamingACNDatagram(LX lx,
LXModel model,
int universeNumber)
Creates a StreamingACNDatagram for the model on given universe
|
Modifier and Type | Method and Description |
---|---|
protected int |
getDataBufferOffset()
Offset into raw byte buffer where color data is written
|
int |
getUniverseNumber()
Universe number for datagram.
|
void |
setDmxData(byte[] data,
int channel) |
void |
setDmxData(byte data,
int channel) |
StreamingACNDatagram |
setUniverseNumber(int universeNumber)
Sets the universe for this datagram
|
protected void |
updateSequenceNumber()
Subclasses may override to update a sequence number in the packet when
appropriate as part of the protocol.
|
dispose, getAddress, getDataBuffer, getErrorState, getPort, onSend, setAddress, setPort, setSocket, validateBufferSize
setByteOrder, setByteOrder, updateDataBuffer, updateIndexBuffer
error, error, getGammaLut, log, onParameterChanged, onSend, send, send, setGammaDelegate, setGroup
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, load, loadParameters, removeParameter, removeParameter, save, saveParameters, setParent, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
protected static final int OFFSET_DMX_DATA
protected static final int OFFSET_SEQUENCE_NUMBER
protected static final int OFFSET_UNIVERSE_NUMBER
public static final int MAX_DATA_LENGTH
public StreamingACNDatagram(LX lx, LXModel model)
lx
- LX instancemodel
- Model of pointspublic StreamingACNDatagram(LX lx, int[] indexBuffer)
lx
- LX instanceindexBuffer
- Points to send on this universepublic StreamingACNDatagram(LX lx, LXModel model, int universeNumber)
lx
- LX instancemodel
- Model of pointsuniverseNumber
- Universe numberpublic StreamingACNDatagram(LX lx, int[] indexBuffer, int universeNumber)
lx
- LX instanceindexBuffer
- List of point indices to encode in packetuniverseNumber
- Universe numberpublic StreamingACNDatagram(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder, int universeNumber)
lx
- LX instanceindexBuffer
- Index bufferuniverseNumber
- Universe numberbyteOrder
- Byte orderprotected StreamingACNDatagram(LX lx, int dataSize, int universeNumber)
lx
- LX instancedataSize
- Data sizeuniverseNumber
- Universe numberpublic StreamingACNDatagram(LX lx, int[] indexBuffer, int dataSize, int universeNumber)
lx
- LX instanceindexBuffer
- Index bufferdataSize
- Fixed DMX data sizeuniverseNumber
- Universe numberpublic StreamingACNDatagram(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder, int dataSize, int universeNumber)
lx
- LX instanceindexBuffer
- Index bufferbyteOrder
- Byte orderdataSize
- Fixed DMX data sizeuniverseNumber
- Universe numberpublic StreamingACNDatagram setUniverseNumber(int universeNumber)
universeNumber
- DMX universepublic int getUniverseNumber()
public void setDmxData(byte data, int channel)
public void setDmxData(byte[] data, int channel)
protected int getDataBufferOffset()
LXBufferOutput
getDataBufferOffset
in class LXBufferOutput
protected void updateSequenceNumber()
LXDatagram
updateSequenceNumber
in class LXDatagram
LX library by Mark C. Slee. © 2012-2020