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.Renamable
LXSerializable.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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
public 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()
LXComponent
getPath
in interface LXPath
getPath
in class LXComponent
public 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)
LXFixtureContainer
fixtureGenerationChanged
in interface LXFixtureContainer
fixture
- Fixture that has changedpublic void fixtureGeometryChanged(LXFixture fixture)
LXFixtureContainer
fixtureGeometryChanged
in interface LXFixtureContainer
fixture
- Fixture that has changedpublic void load(LX lx, JsonObject obj)
LXComponent
load
in interface LXSerializable
load
in class LXComponent
lx
- LX instanceobj
- Object to deserializepublic void save(LX lx, JsonObject obj)
LXComponent
super.save(lx, obj)
at the appropriate time.save
in interface LXSerializable
save
in class LXComponent
lx
- LX instanceobj
- Object to serialize intopublic LXStructure importModel(File file)
public LXStructure exportModel(File file)
LX library by Mark C. Slee. © 2012-2020