This PR adds the image view mode, which will be used by default for rendering any vtkImageData. Previously, we used an imageMarchingCubes filter to turn vtkImageData into vtkPolyData, which could take a while to compute.
The image view mode includes the following basic controls/features:
[x] Axis selector
[x] Slice slider
[x] Window/Level sliders
When the "Groomed" layer is enabled:
[x] Intersection mode, which makes the groomed shape invisible, instead showing where the shape intersects the current slice
[x] Crop mode, which crops the image slices to the area where the groomed shape is (with 1% padding)
When the "Particles" layer is enabled and Intersection mode is enabled:
[x] Particle filtering: show only particles that exist within the bounds of the current slice
This PR adds the image view mode, which will be used by default for rendering any vtkImageData. Previously, we used an imageMarchingCubes filter to turn vtkImageData into vtkPolyData, which could take a while to compute.
The image view mode includes the following basic controls/features:
When the "Groomed" layer is enabled:
When the "Particles" layer is enabled and Intersection mode is enabled:
The following video demonstrates each of these features (speed 2x). https://github.com/girder/shapeworks-cloud/assets/44912689/ba9d7b60-f56b-4ef2-b4df-51953d92880d