public abstract class LXOutput extends LXComponent
Modifier and Type | Class and Description |
---|---|
static class |
LXOutput.GammaMode |
static interface |
LXOutput.InetOutput |
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
CompoundParameter |
brightness
Brightness of the output
|
BooleanParameter |
enabled
Whether the output is enabled.
|
BoundedParameter |
framesPerSecond
Framerate throttle
|
BoundedParameter |
gamma
Gamma correction level
|
EnumParameter<LXOutput.GammaMode> |
gammaMode
Gamma table mode, whether to inherit gamma
|
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Modifier | Constructor and Description |
---|---|
protected |
LXOutput(LX lx) |
protected |
LXOutput(LX lx,
String label) |
Modifier and Type | Method and Description |
---|---|
static void |
error(Exception x,
String message) |
static void |
error(String message) |
protected byte[] |
getGammaLut(double brightness) |
static void |
log(String message) |
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
protected abstract void |
onSend(int[] colors,
byte[] glut)
Subclasses implement this to send the data.
|
protected void |
onSend(int[] colors,
double brightness) |
LXOutput |
send(int[] colors)
Sends data to this output, applying throttle and color correction
|
LXOutput |
send(int[] colors,
double brightness)
Sends data to this output at the pre-corrected brightness
|
void |
setGammaDelegate(LXOutput gammaDelegate) |
void |
setGroup(LXOutputGroup output) |
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, dispose, 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 final BooleanParameter enabled
public final BoundedParameter framesPerSecond
public final BoundedParameter gamma
public final EnumParameter<LXOutput.GammaMode> gammaMode
public final CompoundParameter brightness
protected LXOutput(LX lx)
public void setGammaDelegate(LXOutput gammaDelegate)
public void setGroup(LXOutputGroup output)
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXComponent
p
- Parameter that has a value changepublic LXOutput send(int[] colors)
colors
- Array of color valuespublic final LXOutput send(int[] colors, double brightness)
colors
- Color bufferbrightness
- Brightness level from parentprotected byte[] getGammaLut(double brightness)
protected void onSend(int[] colors, double brightness)
protected abstract void onSend(int[] colors, byte[] glut)
colors
- Color valuesglut
- Look-up table scaled to appropriate brightness and gammapublic static final void log(String message)
public static final void error(String message)
LX library by Mark C. Slee. © 2012-2020