Skip to content

ViewNodeFactory ​

Introduction ​

The factory choosing which WebGPU view node to create for a renderable.

Methods ​

extend ​

Method used to decorate a given object (publicAPI+model) with vtkWebGPUViewNodeFactory characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIWebGPUViewNodeFactoryInitialValuesNo(default: {})

newInstance ​

Method used to create a new instance of vtkWebGPUViewNodeFactory.

ArgumentTypeRequiredDescription
initialValuesIWebGPUViewNodeFactoryInitialValuesNofor pre-setting some of its content

registerOverride ​

Register the view node factory function used for a given renderable class name. The mapping is static and shared by every vtkWebGPUViewNodeFactory instance; each WebGPU backend module registers itself when imported.

ArgumentTypeRequiredDescription
classNameYesthe renderable class name, e.g. 'vtkActor'
fnYesthe factory creating the matching view node