question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set progressCallback on HttpDataSetReader

See original GitHub issue

Hi,

I want to get the data loading progress when load a remote file. HttpDataSetReader has a setProgressCallback method but the callback function is not called after I set progressCallback. I found an example on vtk.js website but it uses HttpDataAccessHelper. Can I use progressCallback directly with HttpDataSetReader?

This is the code I used to test.

const progressCallback = (progressEvent) => {
    ...
}

const reader = vtk.IO.Core.vtkHttpDataSetReader.newInstance();
reader.setProgressCallback(progressCallback);
reader.setUrl('remote_file_url').then(...);

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
linshengcommented, Sep 11, 2018

Thanks. I’ll check on my side too.

0reactions
florystcommented, Apr 23, 2021

If this is still an issue, please re-open.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HttpDataSetReader | vtk.js - Kitware, Inc.
parseObject. Set the dataset object to use for data fetching. ... const reader = HttpDataSetReader. ... setProgressCallback(progressCallback: any): boolean;
Read more >
How to use HttpDataSetReader to load local .vti files? - Web
When I set the loadData as false, can load the file,but when i use getPointData().getScalars().getRange(),will throw a error Cannot read ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found