public class GridFixture extends LXProtocolFixture
Modifier and Type | Class and Description |
---|---|
static class |
GridFixture.PositionMode |
static class |
GridFixture.Wiring |
LXProtocolFixture.Transport
LXFixture.DynamicIndexBuffer, LXFixture.IndexBufferSegment, LXFixture.Protocol, LXFixture.Submodel
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
BoundedParameter |
columnSpacing |
DiscreteParameter |
numColumns |
DiscreteParameter |
numRows |
DiscreteParameter |
pointsPerPacket |
EnumParameter<GridFixture.PositionMode> |
positionMode |
BoundedParameter |
rowSpacing |
BooleanParameter |
splitPacket |
EnumParameter<GridFixture.Wiring> |
wiring |
artNetUniverse, ddpDataOffset, host, kinetPort, opcChannel, port, protocol, reverse, transport, unknownHost
brightness, children, enabled, identify, mute, NO_SUBMODELS, outputs, pitch, points, roll, selected, solo, x, y, yaw, z
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Constructor and Description |
---|
GridFixture(LX lx) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildOutputs()
Subclasses must override this method to provide an implementation that
produces the necessary set of outputs for this fixture to be sent.
|
protected void |
computePointGeometry(LXMatrix matrix,
List<LXPoint> points)
This method should be implemented by subclasses to generate the geometry of the
fixture any time its geometry parameters have changed.
|
protected String |
getModelKey()
Subclasses should implement, specifying the type key of this fixture in the model
hierarchy.
|
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
protected void |
reindexOutputs()
Subclasses may override this method to update their outputs in the
case that the point indexing of this fixture has changed.
|
protected int |
size()
Subclasses must implement to specify the number of points in the fixture.
|
LXFixture.Submodel[] |
toSubmodels()
Subclasses may override when they specify submodels
|
getProtocolChannel, resolveHostAddress
addChild, addGeometryParameter, addMetricsParameter, addOutput, addOutputParameter, addParameter, beforeRegenerate, computeGeometryMatrix, constructModel, constructPoint, copyPoint, dispose, fixtureGenerationChanged, fixtureGeometryChanged, getFirstPointIndex, getGeometryMatrix, getGeometryMatrix, getIndex, getIndexBufferOffset, getMetaData, getModelKeys, getPath, load, regenerate, removeChild, removeOutput, setStructure, toDynamicIndexBuffer, toDynamicIndexBuffer, toDynamicIndexBuffer, toDynamicIndexBuffer, totalSize
addArray, addChild, addInternalParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, handleOscMessage, 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 DiscreteParameter numRows
public final DiscreteParameter numColumns
public final BoundedParameter rowSpacing
public final BoundedParameter columnSpacing
public final EnumParameter<GridFixture.PositionMode> positionMode
public final EnumParameter<GridFixture.Wiring> wiring
public final BooleanParameter splitPacket
public final DiscreteParameter pointsPerPacket
public GridFixture(LX lx)
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXFixture
p
- Parameter that has a value changepublic LXFixture.Submodel[] toSubmodels()
LXFixture
toSubmodels
in class LXFixture
protected void computePointGeometry(LXMatrix matrix, List<LXPoint> points)
LXFixture
computePointGeometry
in class LXFixture
matrix
- A transform matrix representing the fixture's positionpoints
- The list of points that need to have their positions setprotected int size()
LXFixture
protected String getModelKey()
LXFixture
getModelKey
in class LXFixture
protected void buildOutputs()
LXFixture
LXFixture.addOutput(LXOutput)
for each output.buildOutputs
in class LXFixture
protected void reindexOutputs()
LXFixture
LXFixture.DynamicIndexBuffer
class has been used to construct indices for
outputs, then no action should typically be necessary.reindexOutputs
in class LXFixture
LX library by Mark C. Slee. © 2012-2020