Set progressCallback on HttpDataSetReader
See original GitHub issueHi,
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:
- Created 5 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks. I’ll check on my side too.
If this is still an issue, please re-open.