How to use the paraview-glance/src/io/ReaderFactory.loadFiles function in paraview-glance

To help you get started, we’ve selected a few paraview-glance examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kitware / paraview-glance / src / store / fileLoader.js View on Github external
singleFileList.map((file, i) => {
          // Handle raw
          if (getExtension(file.name) === 'raw') {
            return readRawFile(file, state.rawInfos[i]).then((dataset) =>
              readers.push({
                name: file.name,
                dataset,
              })
            );
          }

          return ReaderFactory.loadFiles([file]).then((rs) =>
            readers.push(...rs)
          );
        }),
        ReaderFactory.loadFileSeries(
github Kitware / paraview-glance / src / store / index.js View on Github external
                .then((file) => ReaderFactory.loadFiles([file]))
                .then((readers) => readers[0])
github Kitware / paraview-glance / src / store / fileLoader.js View on Github external
LOAD_STATE({ dispatch }, stateFile) {
      return ReaderFactory.loadFiles([stateFile])
        .then((r) => r[0])
        .then(({ reader }) =>
          reader
            .parseAsArrayBuffer()
            .then(() =>
              dispatch(Actions.RESTORE_APP_STATE, reader.getAppState())
            )
        );
    },
  },