Last updated

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

Class: VTKLoader

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.

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new VTKLoader()

new VTKLoader()

Overrides

AbstractLoader<VTKFactory.Data>.constructor

Methods

getClassName

getClassName(): string

Returns

string

Inherited from

AbstractLoader.getClassName


load

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.

Parameters

Name Type Description
urlstringThe url of the VTK file
Optional paramsLoadOptions<Data>the optional parameters

Returns

void

Overrides

AbstractLoader.load


getClassName

Static getClassName(): string

Returns

string

Inherited from

AbstractLoader.getClassName