Class ArtNetDatagram

All Implemented Interfaces:
LXPath, LXSerializable, LXOutput.InetOutput, LXParameterListener

public class ArtNetDatagram extends LXDatagram
  • Field Details

  • Constructor Details

    • ArtNetDatagram

      public ArtNetDatagram(LX lx, LXModel model)
      Creates an ArtNetDatagram for the given model
      Parameters:
      lx - LX instance
      model - Model of points
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, int[] indexBuffer)
      Creates an ArtNetDatagram for the given index buffer
      Parameters:
      lx - LX instance
      indexBuffer - Index buffer
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder)
      Creates an ArtNetDatagram for the given index buffer and byte ordering
      Parameters:
      lx - LX instance
      indexBuffer - Index buffer
      byteOrder - Byte ordering for points
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, LXModel model, int universeNumber)
      Creates an ArtNetDatagram for the given model and universe number
      Parameters:
      lx - LX instance
      model - Model of points
      universeNumber - universe number
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, LXModel model, LXBufferOutput.ByteOrder byteOrder, int universeNumber)
      Creates an ArtNetDatagram for the given model, universe, and byte order
      Parameters:
      lx - LX instance
      model - Model of points
      byteOrder - Byte ordering
      universeNumber - Universe number
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, int[] indexBuffer, int universeNumber)
      Creates an ArtNetDatagram for the given index buffer and universe number
      Parameters:
      lx - LX instance
      indexBuffer - Index buffer
      universeNumber - Universe number
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder, int universeNumber)
      Creates an ArtNetDatagram for the given index buffer, universe and byte ordering
      Parameters:
      lx - LX instance
      indexBuffer - Index buffer
      byteOrder - Byte ordering
      universeNumber - Universe number
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, LXModel model, int dataLength, int universeNumber)
      Creates an ArtNetDatagram for the given model, with fixed data length and universe
      Parameters:
      lx - LX instance
      model - Model
      dataLength - Fixed data payload length
      universeNumber - Universe number
    • ArtNetDatagram

      public 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
      Parameters:
      lx - LX instance
      model - Model of points
      byteOrder - Byte ordering
      dataLength - Fixed data payload length
      universeNumber - Universe number
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, int[] indexBuffer, int dataLength, int universeNumber)
      Creates an ArtNetDatagram with fixed data length for given index buffer and universe
      Parameters:
      lx - LX instance
      indexBuffer - Index buffer
      dataLength - Fixed data payload length
      universeNumber - Universe number
    • ArtNetDatagram

      public 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
      Parameters:
      lx - LX instance
      indexBuffer - Index buffer
      byteOrder - Byte order
      dataLength - Fixed data payload length
      universeNumber - Universe number
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, IndexBuffer indexBuffer, int universeNumber)
      Creates an ArtNetDatagram with fixed data length for given index buffer, universe, and byte order
      Parameters:
      lx - LX instance
      indexBuffer - Index buffer
      universeNumber - Universe number
    • ArtNetDatagram

      public ArtNetDatagram(LX lx, IndexBuffer indexBuffer, int dataLength, int universeNumber)
      Creates an ArtNetDatagram with fixed data length for given index buffer, universe, and byte order
      Parameters:
      lx - LX instance
      indexBuffer - Index buffer
      dataLength - Fixed data payload length
      universeNumber - Universe number
  • Method Details

    • setUniverseNumber

      public ArtNetDatagram setUniverseNumber(int universeNumber)
    • getUniverseNumber

      public int getUniverseNumber()
    • getDataLength

      public int getDataLength()
    • setSequenceEnabled

      public ArtNetDatagram setSequenceEnabled(boolean sequenceEnabled)
      Set whether to increment and send sequence numbers
      Parameters:
      sequenceEnabled - true if sequence should be incremented and transmitted
      Returns:
      this
    • getDataBufferOffset

      protected int getDataBufferOffset()
      Description copied from class: LXBufferOutput
      Offset into raw byte buffer where color data is written
      Specified by:
      getDataBufferOffset in class LXBufferOutput
      Returns:
      Offset into raw byte buffer for color data
    • updateSequenceNumber

      protected void updateSequenceNumber()
      Description copied from class: LXDatagram
      Subclasses may override to update a sequence number in the packet when appropriate as part of the protocol.
      Overrides:
      updateSequenceNumber in class LXDatagram