Module: loaders/volumes

It is typically used to load a DICOM image. Use loading manager for advanced usage, such as multiple files handling. Demo: https://fnndsc.github.io/vjs#loader_dicom
Source:
Example
var files = ['/data/dcm/fruit'];

// Instantiate a dicom loader
var lDicomoader = new dicom();

// load a resource
loader.load(
  // resource URL
  files[0],
  // Function when resource is loaded
  function(object) {
    //scene.add( object );
    console.log(object);
  }
);

Methods

_filterByExtension(extension, item)

Filter data by extension
Parameters:
Name Type Description
extension *
item *
Source:
Returns:
Boolean

_parser(extension) → {parser}

Return parser given an extension
Parameters:
Name Type Description
extension string extension
Source:
Returns:
selected parser
Type
parser

_preprocess(data)

Pre-process data to be parsed (find data type and de-compress)
Parameters:
Name Type Description
data *
Source:

parse(response) → {promise}

Parse response. response is formated as: { url: 'resource url', buffer: xmlresponse, }
Parameters:
Name Type Description
response object response
Source:
Returns:
promise
Type
promise

parseFrame(series, stack, url, i, dataParser, resolve, reject)

recursive parse frame
Parameters:
Name Type Description
series ModelsSeries data series
stack ModelsStack data stack
url string resource url
i number frame index
dataParser parser selected parser
resolve promise.resolve promise resolve args
reject promise.reject promise reject args
Source: