Kitware / itk-vtk-viewer

2D / 3D web image, mesh, and point set viewer using itk-wasm and vtk.js
https://kitware.github.io/itk-vtk-viewer/
BSD 3-Clause "New" or "Revised" License
210 stars 64 forks source link

After loading data, render state is not yet consistent #256

Closed scottwittenburg closed 3 years ago

scottwittenburg commented 4 years ago

The video below shows loading the yeast_mito-T9-filtered.nrrd data set. Notice how selecting the tab for the color/opacity map at component index 1 results in a change to the image. Simply opening the editor for these properties, but not changing any of them, should not cause the rendering to change.

localhost_8080 (1)

thewtex commented 4 years ago

The Gaussian in the transfer function widget is likely only applied to the first component that is selected -- we will have to cycle through all the components and apply the initial Gaussian as the piecewise function for each component in the rendering initialization logic.

scottwittenburg commented 4 years ago

Thanks @thewtex ⛑ I did try to do something like that, but I must not have found the right point in the rendering setup, as it didn't fix the problem. I added some code to loop through all the components and do what you suggested at the bottom of the createTransferFunctionWidget.js module, but that seems not to be the right place. I'll keep after it.

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 11.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: