API / geotoolkit3d / data / loader / vtk / VTKLoader / VTKLoader
This class can parse vtk files and return a comprehensive json object.<br> <br> This object can be used to generate Geometries and Object3D.<br> See VTKFactory for a default implementation of VTK_JSON-to-Object3D implementation.<br> <br> Refer to the VTK-File-specification for details.<br> <br> Note that, for now, only ASCII format is supported.
AbstractLoader<Data>↳
VTKLoader
Constructors
- [new VTKLoader()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.loader.vtk.vtkloader.vtkloader.md#new vtkloader())
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.<br> <br> This convenience function exists to mimic THREEJS loaders API.<br> Internally it uses THREE.XHRLoader and THREE.LoadingManager.<br>
| Name | Type | Description |
|---|---|---|
url | string | The url of the VTK file |
Optional params | LoadOptions<Data> | the optional parameters |
void
▸ Static getClassName(): string
string