Skip to content

ProxyManager ​

Introduction ​

vtkProxyManager is the central manager for managing proxy resources in vtk.js.

Methods ​

applyChanges ​

Apply a set of ${proxyId}:${propertyName} changes at once, then render every view. The value __command_execute__ calls the named method instead of setting it.

extend ​

Decorates a given publicAPI + model with vtkProxyManager characteristics.

ArgumentTypeRequiredDescription
publicAPIYes
modelYes
initialValuesIProxyManagerInitialValuesNo

getSections ​

UI sections of the active source, its representation in the active view and the active view, skipping the ones with an empty ui description.

loadState ​

Rebuild the proxy graph described by a state previously produced by saveState. Resolves with the state's userData plus a $oldToNewIdMapping entry mapping saved proxy ids to the ids of the recreated proxies.

newInstance ​

Creates a vtkProxyManager.

ArgumentTypeRequiredDescription
initialValuesIProxyManagerInitialValuesNo

saveState ​

Serialize the registered sources, views and representations. options is copied into the state, minus its datasetHandler entry, and userData is stored alongside it.

updateCollapseState ​

Record whether the section with the given name is collapsed.