Interface LXScriptEngine.DeviceAdapter

Enclosing class:
LXScriptEngine

public static interface LXScriptEngine.DeviceAdapter
  • Method Details

    • getScriptPoints

      default 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. 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

      void addScriptControlParameter(String path, LXListenableNormalizedParameter control)
      Add a control parameter
      Parameters:
      path - Control parameter path
      control - Control parameter object
    • removeScriptControlParameter

      void removeScriptControlParameter(String path)
      Remove a control parameter
      Parameters:
      path - Control parameter path
    • removeCustomRemoteControl

      void removeCustomRemoteControl(LXParameter parameter)
      Removes a parameter from the set of custom remote controls
      Parameters:
      parameter - Parameter to remove
    • resetRemoteControls

      void resetRemoteControls()
      Resets the device remote controls