Skip to content

ZipMultiDataSetWriter ​

Introduction ​

vtkZipMultiDataSetWriter writes all of its inputs into a single zip archive holding a datasets.json metadata file alongside one binary file per data array. The archive is readable by vtkZipMultiDataSetReader.

Methods ​

extend ​

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

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

getBlob ​

Get the zip produced by the last call to write().

getCompressionLevel ​

newInstance ​

Method used to create a new instance of vtkZipMultiDataSetWriter

ArgumentTypeRequiredDescription
initialValuesIZipMultiDataSetWriterInitialValuesNofor pre-setting some of its content

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setCompressionLevel ​

ArgumentTypeRequiredDescription
compressionLevelNumberYes

write ​

Serialize every input dataset then zip the result into a Blob reachable through getBlob().