Skip to content

ZipMultiDataSetReader ​

Introduction ​

vtkZipMultiDataSetReader reads a zip archive produced by vtkZipMultiDataSetWriter: a datasets.json metadata file alongside one binary file per data array.

Methods ​

extend ​

Method used to decorate a given object (publicAPI+model) with vtkZipMultiDataSetReader characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIZipMultiDataSetReaderInitialValuesNo(default: {})

getBaseURL ​

getDataAccessHelper ​

getUrl ​

Get the url of the zip to load.

loadData ​

Fetch and parse the zip at the currently set url.

ArgumentTypeRequiredDescription
optionIZipMultiDataSetReaderOptionsNo

newInstance ​

Method used to create a new instance of vtkZipMultiDataSetReader

ArgumentTypeRequiredDescription
initialValuesIZipMultiDataSetReaderInitialValuesNofor pre-setting some of its content

parseAsArrayBuffer ​

Unzip the given buffer, reading datasets.json and every array_* entry it contains.

ArgumentTypeRequiredDescription
arrayBufferArrayBufferYesThe content to parse.

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setDataAccessHelper ​

ArgumentTypeRequiredDescription
dataAccessHelperYes

setUrl ​

Set the url of the zip to load and fetch it.

ArgumentTypeRequiredDescription
urlStringYesthe url of the zip to load.
optionIZipMultiDataSetReaderOptionsNo