public class ArtNetDatagram extends LXDatagram
LXDatagram.ErrorState
LXBufferOutput.ByteOrder
LXOutput.GammaMode, LXOutput.InetOutput
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
static int |
ARTNET_PORT |
static int |
MAX_DATA_LENGTH |
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
Constructor and Description |
---|
ArtNetDatagram(LX lx,
int[] indexBuffer)
Creates an ArtNetDatagram for the given index buffer
|
ArtNetDatagram(LX lx,
int[] indexBuffer,
int universeNumber)
Creates an ArtNetDatagram for the given index buffer and universe number
|
ArtNetDatagram(LX lx,
int[] indexBuffer,
int dataLength,
int universeNumber)
Creates an ArtNetDatagram with fixed data length for given index buffer and universe
|
ArtNetDatagram(LX lx,
int[] indexBuffer,
LXBufferOutput.ByteOrder byteOrder)
Creates an ArtNetDatagram for the given index buffer and byte ordering
|
ArtNetDatagram(LX lx,
int[] indexBuffer,
LXBufferOutput.ByteOrder byteOrder,
int universeNumber)
Creates an ArtNetDatagram for the given index buffer, universe and byte ordering
|
ArtNetDatagram(LX lx,
int[] indexBuffer,
LXBufferOutput.ByteOrder byteOrder,
int dataLength,
int universeNumber)
Creates an ArtNetDatagram with fixed data length for given index buffer, universe, and byte order
|
ArtNetDatagram(LX lx,
LXModel model)
Creates an ArtNetDatagram for the given model
|
ArtNetDatagram(LX lx,
LXModel model,
int universeNumber)
Creates an ArtNetDatagram for the given model and universe number
|
ArtNetDatagram(LX lx,
LXModel model,
int dataLength,
int universeNumber)
Creates an ArtNetDatagram for the given model, with fixed data length and universe
|
ArtNetDatagram(LX lx,
LXModel model,
LXBufferOutput.ByteOrder byteOrder,
int universeNumber)
Creates an ArtNetDatagram for the given model, universe, and byte order
|
ArtNetDatagram(LX lx,
LXModel model,
LXBufferOutput.ByteOrder byteOrder,
int dataLength,
int universeNumber)
Creates an ArtNetDatagram with fixed data length for given model, universe, and byte ordering
|
Modifier and Type | Method and Description |
---|---|
protected int |
getDataBufferOffset()
Offset into raw byte buffer where color data is written
|
int |
getDataLength() |
int |
getUniverseNumber() |
ArtNetDatagram |
setSequenceEnabled(boolean sequenceEnabled)
Set whether to increment and send sequence numbers
|
ArtNetDatagram |
setUniverseNumber(int universeNumber) |
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
public static final int ARTNET_PORT
public static final int MAX_DATA_LENGTH
public ArtNetDatagram(LX lx, LXModel model)
lx
- LX instancemodel
- Model of pointspublic ArtNetDatagram(LX lx, int[] indexBuffer)
lx
- LX instanceindexBuffer
- Index bufferpublic ArtNetDatagram(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder)
lx
- LX instanceindexBuffer
- Index bufferbyteOrder
- Byte ordering for pointspublic ArtNetDatagram(LX lx, LXModel model, int universeNumber)
lx
- LX instancemodel
- Model of pointsuniverseNumber
- universe numberpublic ArtNetDatagram(LX lx, LXModel model, LXBufferOutput.ByteOrder byteOrder, int universeNumber)
lx
- LX instancemodel
- Model of pointsbyteOrder
- Byte orderinguniverseNumber
- Universe numberpublic ArtNetDatagram(LX lx, int[] indexBuffer, int universeNumber)
lx
- LX instanceindexBuffer
- Index bufferuniverseNumber
- Universe numberpublic ArtNetDatagram(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder, int universeNumber)
lx
- LX instanceindexBuffer
- Index bufferbyteOrder
- Byte orderinguniverseNumber
- Universe numberpublic ArtNetDatagram(LX lx, LXModel model, int dataLength, int universeNumber)
lx
- LX instancemodel
- ModeldataLength
- Fixed data payload lengthuniverseNumber
- Universe numberpublic ArtNetDatagram(LX lx, LXModel model, LXBufferOutput.ByteOrder byteOrder, int dataLength, int universeNumber)
lx
- LX instancemodel
- Model of pointsbyteOrder
- Byte orderingdataLength
- Fixed data payload lengthuniverseNumber
- Universe numberpublic ArtNetDatagram(LX lx, int[] indexBuffer, int dataLength, int universeNumber)
lx
- LX instanceindexBuffer
- Index bufferdataLength
- Fixed data payload lengthuniverseNumber
- Universe numberpublic ArtNetDatagram(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder, int dataLength, int universeNumber)
lx
- LX instanceindexBuffer
- Index bufferbyteOrder
- Byte orderdataLength
- Fixed data payload lengthuniverseNumber
- Universe numberpublic ArtNetDatagram setUniverseNumber(int universeNumber)
public int getUniverseNumber()
public int getDataLength()
public ArtNetDatagram setSequenceEnabled(boolean sequenceEnabled)
sequenceEnabled
- true if sequence should be incremented and transmittedprotected int getDataBufferOffset()
LXBufferOutput
getDataBufferOffset
in class LXBufferOutput
protected void updateSequenceNumber()
LXDatagram
updateSequenceNumber
in class LXDatagram
LX library by Mark C. Slee. © 2012-2020