MultiProgressHandler

Multiple progresses handler. Stores a multi dimensional list of progresses to allow to calculate a global progress.

Constructor

new MultiProgressHandler(callback)

Parameters:
NameTypeDescription
callbackfunction

The function to pass the global progress to.

Classes

MultiProgressHandler

Members

onprogress

Handle a load progress. Call the member callback with a global event.

Methods

getMonoProgressHandler(index, subindex) → {eventFn}

Create a mono progress event handler.

Parameters:
NameTypeDescription
indexnumber

The index of the data.

subindexnumber

The sub-index of the data.

Returns:

A progress handler function.

Type: 
eventFn

getUndefinedMonoProgressHandler(subindex) → {eventFn}

Create a mono progress event handler with an undefined index. Warning: The caller handles the progress index.

Parameters:
NameTypeDescription
subindexnumber

The sub-index of the data.

Returns:

A progress handler function.

Type: 
eventFn

setNToLoad(n)

Set the number of data to load.

Parameters:
NameTypeDescription
nnumber

The number of data to load.

setNumberOfDimensions(num)

Set the number of dimensions.

Parameters:
NameTypeDescription
numnumber

The number.