Skip to content

ViewNodeFactory ​

Introduction ​

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

Methods ​

extend ​

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

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

newInstance ​

Method used to create a new instance of vtkOpenGLViewNodeFactory.

ArgumentTypeRequiredDescription
initialValuesIOpenGLViewNodeFactoryInitialValuesNofor 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 vtkOpenGLViewNodeFactory instance; each OpenGL backend module registers itself when imported.

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