OHIF / react-vtkjs-viewport

VTK.js image viewport component in React
https://react-vtkjs-viewport.netlify.com/
MIT License
144 stars 82 forks source link

Delete / Clear Cache 3D #144

Closed ArturRod closed 3 years ago

ArturRod commented 3 years ago

Hello, I would like to be able to clear the cache when rendering in 3D, since it calls the getImageData (imageIds, displaySetInstanceUid) method and saves said cache, there is no way to erase it. image You could put that if you call getImageData (imageIds, displaySetInstanceUid, true / false) with a true or false clear the cache. and make a new new Map () or something like that.

ArturRod commented 3 years ago

To solve this you should add in index.js the export of imageDataCache, so the user can access that class and make a clear () of the Map (). image I have generated it again and uploaded it to my project, but it should be officially changed.