Package heronarts.lx.output
Class DDPOutputGroup
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.output.LXOutput
heronarts.lx.output.LXOutputGroup
heronarts.lx.output.DDPOutputGroup
- All Implemented Interfaces:
LXPath,LXSerializable,LXOutput.InetOutput,LXParameterListener
DDPOutput is a helper class that constructs and sends a set of DDPDatagram packets
based upon a specified chunk size, which will typically be a function of either
the LED layout or UDP network settings.
If greater customization over framing and chunking is required, it may be preferable
to construct DDPDatagram packets manually.
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.output.LXOutput
LXOutput.GammaMode, LXOutput.GammaTable, LXOutput.InetOutputNested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Author, LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.Renamable, LXComponent.TagsNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsFields inherited from class heronarts.lx.output.LXOutputGroup
childrenFields inherited from class heronarts.lx.output.LXOutput
brightness, enabled, framesPerSecond, gamma, gammaMode, MAX_FRAMES_PER_SECOND, whitePointBlue, whitePointGreen, whitePointRed, whitePointWhiteFields inherited from class heronarts.lx.LXComponent
childArrays, internalParameters, KEY_CHILDREN, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_INTERNAL, KEY_PARAMETER_PATH, KEY_PARAMETERS, KEY_PATH, KEY_RESET, label, legacyInternalParameters, legacyParameters, lx, modulationColor, modulationControlsExpanded, modulationsExpanded, parameters, presetFileFields inherited from interface heronarts.lx.output.LXOutput.InetOutput
NO_PORTFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Constructor Summary
ConstructorsConstructorDescriptionDDPOutputGroup(LX lx, int[] indexBuffer) DDPOutputGroup(LX lx, int[] indexBuffer, int chunkSize) Constructs a DDPOutput with a given total set of points and a specified chunkSize.DDPOutputGroup(LX lx, LXModel model) DDPOutputGroup(LX lx, LXModel model, int chunkSize) -
Method Summary
Modifier and TypeMethodDescriptionintgetPort()setAddress(InetAddress address) setPort(int port) setPushAll(boolean pushAll) Configures whether the push flag is set for all individual DDP datagram packets, or whether it is only set on the final DDP packet.Methods inherited from class heronarts.lx.output.LXOutputGroup
addChild, clearChildren, onSend, removeChildMethods inherited from class heronarts.lx.output.LXOutput
error, error, load, log, onParameterChanged, send, send, setGammaDelegate, setGammaTable, setGammaTable, setGroupMethods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addInternalParameters, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, assertDisposed, contains, copyParameters, dispose, getCategory, getChild, getComponentDescription, getComponentName, getComponentName, getComponentName, getDescription, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, hasParameter, isSnapshotControl, isValidOscParameter, loadParameters, loadPreset, removeParameter, removeParameter, removeParameter, removeParameter, save, savePreset, setDescription, setParent, toOscQuery, toOscQuery, toOscQuery, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
DEFAULT_CHUNK_SIZE
public static final int DEFAULT_CHUNK_SIZE- See Also:
-
-
Constructor Details
-
DDPOutputGroup
-
DDPOutputGroup
-
DDPOutputGroup
-
DDPOutputGroup
Constructs a DDPOutput with a given total set of points and a specified chunkSize. By default, the DDP Push flag is only set on the final packet.- Parameters:
lx- LX instanceindexBuffer- All of the points to sendchunkSize- Number of points to chunk per packet
-
-
Method Details
-
setPushAll
Configures whether the push flag is set for all individual DDP datagram packets, or whether it is only set on the final DDP packet. Note that setting the push flag for all packets may result in some visual tearing if chunk size does not fall across wiring boundaries.- Parameters:
pushAll- Whether to set the push flag on all packets- Returns:
- this
-
setAddress
- Specified by:
setAddressin interfaceLXOutput.InetOutput
-
getAddress
- Specified by:
getAddressin interfaceLXOutput.InetOutput
-
setPort
- Specified by:
setPortin interfaceLXOutput.InetOutput
-
getPort
public int getPort()- Specified by:
getPortin interfaceLXOutput.InetOutput
-