Package heronarts.lx.output
Class OPCSocket
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.output.LXOutput
heronarts.lx.output.LXBufferOutput
heronarts.lx.output.LXSocket
heronarts.lx.output.OPCSocket
- All Implemented Interfaces:
LXPath
,LXSerializable
,LXOutput.InetOutput
,OPCOutput
,LXParameterListener
- Direct Known Subclasses:
FadecandySocket
TCP/IP streaming socket implementation of http://openpixelcontrol.org/
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.output.LXBufferOutput
LXBufferOutput.ByteEncoder, LXBufferOutput.ByteOrder
Nested classes/interfaces inherited from class heronarts.lx.output.LXOutput
LXOutput.GammaMode, LXOutput.GammaTable, LXOutput.InetOutput
Nested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Hidden, LXComponent.Placeholder, LXComponent.Renamable
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
Fields inherited from class heronarts.lx.output.LXSocket
DEFAULT_CONNECT_TIMEOUT_MS, output, socket
Fields inherited from class heronarts.lx.output.LXBufferOutput
indexBuffer
Fields inherited from class heronarts.lx.output.LXOutput
brightness, enabled, framesPerSecond, gamma, gammaMode, MAX_FRAMES_PER_SECOND, whitePointBlue, whitePointGreen, whitePointRed, whitePointWhite
Fields inherited from class heronarts.lx.LXComponent
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, presetFile
Fields inherited from interface heronarts.lx.output.LXOutput.InetOutput
NO_PORT
Fields inherited from interface heronarts.lx.LXPath
ROOT, ROOT_PREFIX, ROOT_SLASH
Fields inherited from interface heronarts.lx.output.OPCOutput
CHANNEL_BROADCAST, COMMAND_SET_PIXEL_COLORS, COMMAND_SYSTEM_EXCLUSIVE, DEFAULT_PORT, HEADER_LEN, MAX_DATA_LENGTH, OFFSET_CHANNEL, OFFSET_COMMAND, OFFSET_DATA, OFFSET_DATA_LEN_LSB, OFFSET_DATA_LEN_MSB
-
Constructor Summary
ConstructorDescriptionOPCSocket
(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder) OPCSocket
(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder, byte opcChannel) OPCSocket
(LX lx, IndexBuffer indexBuffer, byte opcChannel) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
Subclasses should provide a handle to a raw byte bufferprotected int
Offset into raw byte buffer where color data is writtensetChannel
(byte channel) Methods inherited from class heronarts.lx.output.LXSocket
didConnect, didDisconnect, disconnect, getAddress, getPacketData, getPort, isConnected, onSend, setAddress, setConnectTimeout, setPort
Methods inherited from class heronarts.lx.output.LXBufferOutput
updateDataBuffer
Methods inherited from class heronarts.lx.output.LXOutput
error, error, load, log, onParameterChanged, send, send, setGammaDelegate, setGammaTable, setGammaTable, setGroup
Methods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, contains, copyParameters, dispose, getCategory, getChild, 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface heronarts.lx.output.LXOutput.InetOutput
getAddress, getPort, setAddress, setPort
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Constructor Details
-
OPCSocket
-
OPCSocket
-
OPCSocket
-
OPCSocket
-
OPCSocket
-
OPCSocket
-
OPCSocket
-
-
Method Details
-
setChannel
- Specified by:
setChannel
in interfaceOPCOutput
-
getDataBuffer
protected byte[] getDataBuffer()Description copied from class:LXBufferOutput
Subclasses should provide a handle to a raw byte buffer- Specified by:
getDataBuffer
in classLXBufferOutput
- Returns:
- Raw byte buffer for output data
-
getDataBufferOffset
protected int getDataBufferOffset()Description copied from class:LXBufferOutput
Offset into raw byte buffer where color data is written- Specified by:
getDataBufferOffset
in classLXBufferOutput
- Returns:
- Offset into raw byte buffer for color data
-