API / geotoolkit3d / data / loader / vtk / VTKLoader / VTKLoader
This class can parse vtk files and return a comprehensive json object.
This object can be used to generate Geometries and Object3D.
See VTKFactory for a default implementation of VTK_JSON-to-Object3D implementation.
Refer to the VTK-File-specification for details.
Note that, for now, only ASCII format is supported.
↳
VTKLoader
Constructors
Methods
Constructors
• new VTKLoader()
AbstractLoader<VTKFactory.Data&gt;.constructor
Methods
▸ getClassName(): string
string
▸ load(url, params?): void
Loads the vtk file at the given URL.
This convenience function exists to mimic THREEJS loaders API.
Internally it uses THREE.XHRLoader and THREE.LoadingManager.
| Name | Type | Description |
|---|---|---|
url | string | The url of the VTK file |
Optional params | LoadOptions<Data> | the optional parameters |
void
▸ Static getClassName(): string
string