Package heronarts.lx.output
Class LXBufferOutput
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.output.LXOutput
heronarts.lx.output.LXBufferOutput
- All Implemented Interfaces:
LXPath,LXSerializable,LXParameterListener
- Direct Known Subclasses:
LXDatagram,LXSocket
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumMost common static orderings for RGB buffer dataNested classes/interfaces inherited from class heronarts.lx.output.LXOutput
LXOutput.GammaMode, LXOutput.GammaTable, LXOutput.InetOutputNested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.RenamableNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsFields 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, children, 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.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract byte[]Subclasses should provide a handle to a raw byte bufferprotected abstract intOffset into raw byte buffer where color data is writtenprotected LXBufferOutputupdateDataBuffer(int[] colors, LXOutput.GammaTable glut, double brightness) Helper for subclasses to copy a list of points into the data buffer at a specified offset.Methods inherited from class heronarts.lx.output.LXOutput
error, error, load, log, onParameterChanged, onSend, send, send, setGammaDelegate, setGammaTable, setGammaTable, setGroupMethods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, 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, 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
-
indexBuffer
-
-
Constructor Details
-
LXBufferOutput
-
-
Method Details
-
getDataBuffer
protected abstract byte[] getDataBuffer()Subclasses should provide a handle to a raw byte buffer- Returns:
- Raw byte buffer for output data
-
getDataBufferOffset
protected abstract int getDataBufferOffset()Offset into raw byte buffer where color data is written- Returns:
- Offset into raw byte buffer for color data
-
updateDataBuffer
protected LXBufferOutput updateDataBuffer(int[] colors, LXOutput.GammaTable glut, double brightness) Helper for subclasses to copy a list of points into the data buffer at a specified offset. For many subclasses which wrap RGB buffers, onSend() will be a simple call to this method with the right parameters.- Parameters:
colors- Array of color valuesglut- Look-up tables for gamma-corrected brightness values by brightnessbrightness- Master brightness- Returns:
- this
-