Skip to content

API / geotoolkit3d / data / loader / vtk / VTKLoader / VTKLoader

Class: VTKLoader

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.

Hierarchy

Table of contents

Constructors
  • [new VTKLoader()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.loader.vtk.vtkloader.vtkloader.md#new vtkloader())
Methods

Contents

Constructors

new VTKLoader()

• new VTKLoader()

Overrides

AbstractLoader&lt;VTKFactory.Data&amp;gt;.constructor

Methods

getClassName

▸ getClassName(): string

Returns

string

Inherited from

AbstractLoader.getClassName


load

▸ 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>

Parameters

Name Type Description
urlstringThe url of the VTK file
Optional paramsLoadOptions<Data&gt;the optional parameters

Returns

void

Overrides

AbstractLoader.load


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AbstractLoader.getClassName