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.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IOpenGLViewNodeFactoryInitialValues | No | (default: {}) |
newInstance
Method used to create a new instance of vtkOpenGLViewNodeFactory.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IOpenGLViewNodeFactoryInitialValues | No | for 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.
| Argument | Type | Required | Description |
|---|---|---|---|
className | Yes | the renderable class name, e.g. 'vtkActor' | |
fn | Yes | the factory creating the matching view node |