public class LXStructure extends LXComponent implements LXFixtureContainer
| Modifier and Type | Class and Description |
|---|---|
static interface |
LXStructure.Listener
Listener interface for the top-level structure
|
static interface |
LXStructure.ModelListener
Implementation-only interface to relay model changes back to the core LX instance.
|
class |
LXStructure.Output |
LXComponent.Placeholder, LXComponent.RenamableLXSerializable.Utils| Modifier and Type | Field and Description |
|---|---|
List<LXFixture> |
fixtures |
BooleanParameter |
isStatic |
StringParameter |
modelName |
LXStructure.Output |
output |
BooleanParameter |
syncModelFile |
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor| Constructor and Description |
|---|
LXStructure(LX lx) |
LXStructure(LX lx,
LXModel immutable) |
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, dispose, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, handleOscMessage, loadParameters, onParameterChanged, removeParameter, removeParameter, saveParameters, setParent, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameterpublic final StringParameter modelName
public final BooleanParameter isStatic
public final BooleanParameter syncModelFile
public final LXStructure.Output output
public LXStructure(LX lx)
public void setModelListener(LXStructure.ModelListener listener)
listener - Listenerpublic String getPath()
LXComponentgetPath in interface LXPathgetPath in class LXComponentpublic File getModelFile()
public LXModel getModel()
public LXStructure addListener(LXStructure.Listener listener)
public LXStructure removeListener(LXStructure.Listener listener)
public LXStructure addFixture(LXFixture fixture)
public LXStructure addFixture(LXFixture fixture, int index)
public LXStructure moveFixture(LXFixture fixture, int index)
public LXStructure selectFixtureRange(LXFixture fixture)
public LXStructure selectAllFixtures()
public LXStructure selectFixture(LXFixture fixture)
public LXStructure selectFixture(LXFixture fixture, boolean isMultipleSelection)
public LXStructure soloFixture(LXFixture fixture)
public LXStructure removeFixtures(List<LXFixture> fixtures)
public LXStructure removeSelectedFixtures()
public LXStructure removeFixture(LXFixture fixture)
public LXStructure translateSelectedFixtures(float tx, float ty, float tz)
public LXStructure translateSelectedFixtures(float tx, float ty, float tz, LXCommand.Structure.ModifyFixturePositions action)
public LXStructure rotateSelectedFixtures(float theta, float phi)
public LXStructure rotateSelectedFixtures(float theta, float phi, LXCommand.Structure.ModifyFixturePositions action)
public LXStructure adjustSelectedFixtureBrightness(float delta)
public LXStructure enableSelectedFixtures(boolean enabled)
public LXStructure identifySelectedFixtures(boolean identify)
public LXStructure newDynamicModel()
public LXStructure setStaticModel(LXModel model)
public void fixtureGenerationChanged(LXFixture fixture)
LXFixtureContainerfixtureGenerationChanged in interface LXFixtureContainerfixture - Fixture that has changedpublic void fixtureGeometryChanged(LXFixture fixture)
LXFixtureContainerfixtureGeometryChanged in interface LXFixtureContainerfixture - Fixture that has changedpublic void load(LX lx, JsonObject obj)
LXComponentload in interface LXSerializableload in class LXComponentlx - LX instanceobj - Object to deserializepublic void save(LX lx, JsonObject obj)
LXComponentsuper.save(lx, obj)
at the appropriate time.save in interface LXSerializablesave in class LXComponentlx - LX instanceobj - Object to serialize intopublic LXStructure importModel(File file)
public LXStructure exportModel(File file)
LX library by Mark C. Slee. © 2012-2020