Package heronarts.lx.script
Interface LXScriptEngine.DeviceAdapter
- Enclosing class:
- LXScriptEngine
public static interface LXScriptEngine.DeviceAdapter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addScriptControlParameter
(String path, LXListenableNormalizedParameter control) Add a control parameterdefault LXPoint[]
getScriptPoints
(LXModel model) Subclasses may override to filter out the model points if there is custom script model functionality, or if geometry is to be mutated, etc.void
removeCustomRemoteControl
(LXParameter parameter) Removes a parameter from the set of custom remote controlsvoid
Remove a control parametervoid
Resets the device remote controls
-
Method Details
-
getScriptPoints
Subclasses may override to filter out the model points if there is custom script model functionality, or if geometry is to be mutated, etc. By default this just returns the model points array as-is.- Parameters:
model
- Model as input- Returns:
- Array of points to be rendered by javascript
-
addScriptControlParameter
Add a control parameter- Parameters:
path
- Control parameter pathcontrol
- Control parameter object
-
removeScriptControlParameter
Remove a control parameter- Parameters:
path
- Control parameter path
-
removeCustomRemoteControl
Removes a parameter from the set of custom remote controls- Parameters:
parameter
- Parameter to remove
-
resetRemoteControls
void resetRemoteControls()Resets the device remote controls
-