Skip to content

API / geotoolkit3d / data / loader / AbstractLoader / AbstractLoader

Class: AbstractLoader<T&gt;

loader.AbstractLoader.AbstractLoader

Parent class for data loader.<br>

A low level class for loading resources with XMLHttpRequest.<br>

Type parameters

Name
T

Hierarchy

Table of contents

Constructors
  • [new AbstractLoader<T&gt;()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.loader.abstractloader.abstractloader.md#new abstractloader<t>())
Methods

Contents

Constructors

new AbstractLoader&lt;T&amp;gt;()

• Protected new AbstractLoader<T&gt;()

Type parameters

Name
T
Methods

getClassName

▸ getClassName(): string

Returns

string


load

▸ Abstract load(url, params?): void

Loads the file at the given URL. Could be either local or remote url.<br> This convenience function exists to mimic THREEJS loaders API.<br> Internally it uses THREE.XHRLoader and THREE.LoadingManager.<br> <br> One could also use directly the function parse() to handle loading the dataset manually/differently. <br> Note that, for convenience, this function returns a Promise AND accepts callbacks (that do not contribute to the returned promise).<br> One is free to use either the Promise or the callback to be 'notified' when the stream is ready.<br> <br>

Parameters

Name Type Description
urlstringthe url of the file
Optional paramsLoadOptions<T&gt;the optional parameters

Returns

void


getClassName

▸ Static getClassName(): string

Returns

string