TomographicImaging / CILViewer

A simple Viewer for 3D data built with VTK
Apache License 2.0
8 stars 6 forks source link

Viewer slider #365

Closed paskino closed 2 months ago

paskino commented 9 months ago

Adding a slider widget to control the slice that is being displayed. Both the mouse wheel and this slider can be used to change the slice.

A SliceSliderRepresentation with default colors (CIL pinks), orientation (horizontal) and position is introduced.

Closes #358

The orientation and position of the slider can be changed.

I tested on Windows with the web app and it doesn't seem to be able to grab the slider.

image

image

paskino commented 9 months ago

TODO:

DanicaSTFC commented 4 months ago

I tested on Windows and magma data .npy and it seemed to work correctly.

DanicaSTFC commented 3 months ago

I changed the bar colour back to gray. The previous magenta was not giving enough contrast with the viewer blue background.

gray

DanicaSTFC commented 3 months ago

I opened two issues to add features to this slider so we can close this PR and continue the enhancements at a later stage

381 #380