informatics-isi-edu / openseadragon-viewer

2D viewer with openseadragon
Apache License 2.0
5 stars 2 forks source link

Multi z #65

Closed rastogi-bhavya closed 3 years ago

rastogi-bhavya commented 3 years ago

This PR is for adding a new feature (Z plane) to the viewer app.

An image can have several z planes. To make sure the user can see all these planes individually, a control has been created. This allows the user to

  1. Select a particular z plane, by clicking on the desired z plane preview in the z plane container
  2. Navigate through the various z planes available, by clicking the previous and next buttons in the container.

The features included are

  1. Selecting a z plane updates the image show in the OSD viewer
  2. Selecting a z plane updates the current plane information shown between the OSD viewer and the z plane container
  3. Hovering over a z plane highlights it.
  4. Increasing or decreasing the size of the page changes with number of z planes shown in the container, dynamically changes according to the page size.
  5. Clicking on the previous button shows the previous set of z planes. If there are no available previous planes then the previous button is disabled and clicking on it would not do anything.
  6. Clicking on the next button shows the next set of z planes. If there are no available planes after the current last then the next button is disabled and clicking on it would not do anything.
  7. Annotations are now drawn in a particular plane, i.e. annotations drawn in plane 37 wont be visible in other planes.
  8. Channel setting carry forward when switching between planes.