@kitware/vtk-wasm / @kitware/vtk-wasm / VtkNamespaceBase
Interface: VtkNamespaceBase
Defined in: base.d.ts:107
Members of the vtk namespace proxy that are not VTK class constructors. The constructors themselves (vtkActor, vtkRenderer, ...) are added to VtkNamespace by the generated augmentation.
Extended by
Methods
getVtkObject()
ts
getVtkObject(idOrObj?): vtkObject;Defined in: base.d.ts:118
Re-wrap an existing object id (or { Id }) as a proxy. The argument is required at runtime.
The ? and the | object widening are deliberate: they keep this member compatible with the loose [vtkClassName: string]: (args?: object) => ... index signature on VtkNamespace — an accurate (idOrObj: number | { Id: number }) fails that check on both parameter arity (index callable with zero args) and parameter type.
Parameters
| Parameter | Type |
|---|---|
idOrObj? | | number | object | { Id: number; } |