DicomBufferToView

Create a View from a DICOM buffer.

Constructor

new DicomBufferToView()

Methods

abort()

Abort a conversion.

convert(buffer, origin, dataIndex)

Get data from an input buffer using a DICOM parser.

Parameters:
NameTypeDescription
bufferArrayBuffer

The input data buffer.

originstring

The data origin.

dataIndexnumber

The data index.

onabort(_event)

Handle an abort event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The abort event.

onerror(_event)

Handle an error event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The error event.

onload(_event)

Handle a load event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The load event fired when a file has been loaded successfully.

onloadend(_event)

Handle a load end event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The load end event fired when a file load has completed, successfully or not.

onloaditem(_event)

Handle a load item event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The load item event.

onloadstart(_event)

Handle a load start event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The load start event.

onprogress(_event)

Handle a load progress event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The progress event.

setOptions(opt)

Set the converter options.

Parameters:
NameTypeDescription
optobject

The input options.