public class GridFixture extends LXProtocolFixture
| Modifier and Type | Class and Description |
|---|---|
static class |
GridFixture.PositionMode |
static class |
GridFixture.Wiring |
LXProtocolFixture.TransportLXFixture.DynamicIndexBuffer, LXFixture.IndexBufferSegment, LXFixture.Protocol, LXFixture.SubmodelLXComponent.Placeholder, LXComponent.RenamableLXSerializable.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, unknownHostbrightness, children, enabled, identify, mute, NO_SUBMODELS, outputs, pitch, points, roll, selected, solo, x, y, yaw, zcontrolSurfaceSemaphore, 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, resolveHostAddressaddChild, 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, totalSizeaddArray, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameterpublic 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)
LXComponentonParameterChanged in interface LXParameterListeneronParameterChanged in class LXFixturep - Parameter that has a value changepublic LXFixture.Submodel[] toSubmodels()
LXFixturetoSubmodels in class LXFixtureprotected void computePointGeometry(LXMatrix matrix, List<LXPoint> points)
LXFixturecomputePointGeometry in class LXFixturematrix - A transform matrix representing the fixture's positionpoints - The list of points that need to have their positions setprotected int size()
LXFixtureprotected String getModelKey()
LXFixturegetModelKey in class LXFixtureprotected void buildOutputs()
LXFixtureLXFixture.addOutput(LXOutput) for each output.buildOutputs in class LXFixtureprotected void reindexOutputs()
LXFixtureLXFixture.DynamicIndexBuffer class has been used to construct indices for
outputs, then no action should typically be necessary.reindexOutputs in class LXFixtureLX library by Mark C. Slee. © 2012-2020