Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] If viewport grid are displaying the same orientation view in 2 or more viewports crosshairs is broken. #3486

Open
Tracked by #3489
salimkanoun opened this issue Jun 22, 2023 · 8 comments
Assignees
Labels
Bugs Bug reported, reproducible, and verified.

Comments

@salimkanoun
Copy link
Contributor

Describe the Bug

Crosshairs has an issue if the users changes the viewport orientation and displays multiple time the same volume orientation, errors are raised and ohif display is broken.

Steps to Reproduce

  1. Start a grid layout with 3 viewport on a reconstructable study (axial / coronal / saggital such has MPR HP)
  2. Activate crosshairs
  3. Change one viewport orientation ex axial to coronal, the display is updated so you have to coronal viewport => the cross hair seems to be lost, if you change the last viewport to coronal too it breaks everything

The current behavior

Error making the user needing to restart OHIF

The expected behavior

If a same orientation is display multiple time in different viewport, crosshair should be duplicated in each viewport without failing.

OS

Windows

Node version

18

Browser

Chrome updated

@salimkanoun salimkanoun added Awaiting Reproduction Can we reproduce the reported bug? Community: Report 🐛 labels Jun 22, 2023
@jbocce jbocce added Bugs Bug reported, reproducible, and verified. and removed Awaiting Reproduction Can we reproduce the reported bug? labels Jun 22, 2023
@sedghi sedghi mentioned this issue Jun 23, 2023
2 tasks
@salimkanoun
Copy link
Contributor Author

Update : Crosshair doesn't seems broken anymore but when displaying 2 viewport same orientation and returning displaying 3 different axis, the crosshair position take a position outside the image

@sedghi
Copy link
Member

sedghi commented Oct 16, 2023

So is there a remaining bug you are saying?

@salimkanoun
Copy link
Contributor Author

Yes it is there are inconsistencies in the cross hairs position if a same orientation is displayed in multiple viewport

@sedghi
Copy link
Member

sedghi commented Oct 18, 2023

After our discussion with Salim, we have identified a multifaceted issue. Specifically, when there are more than three viewports, there is currently no standardized method for handling the manipulation of handles due to the presence of multiple lines on the viewports.

One possible solution we considered is having the additional viewports project their lines onto the three main viewports. However, I remain unconvinced that the existing reference lines are inadequate for this particular use case.

@salimkanoun
Copy link
Contributor Author

salimkanoun commented Oct 18, 2023

Hum I thought that reference line are only for stack viewport and crosshairs replace the reference line for volume viewport ?

But yes it is basically the same feature, the feature of the crosshairs is to be interactable and this tool can be limited to up to 3 viewport only.
Then you have the reference line to display the position of viewport X on the image of viewport Y.

I the reference line if you can specify which viewport orientation should be displayed on which other viewport than i guess it will be customizable in the Hanging protocols so you have full controls of how many reference line you want to render and keep the crosshair separatly for interaction with the limitation of 3 maximum viewport (per display set)

@sedghi
Copy link
Member

sedghi commented Oct 18, 2023

No reference lines are for both stack and volume viewports.

@salimkanoun
Copy link
Contributor Author

OK great so I think we can have 2 tools :
Crossair for the specific case of interaction and limited to 3 viewport
Reference line for all other case in which you want to project a viewport position into another

@nagychris
Copy link

nagychris commented Nov 22, 2024

Hi, are there any updates regarding this issue?
I encountered the same problem when trying to use the CrosshairsTool with two viewports with the same OrientationAxis.

Also saw there's a TODO comment in the code about it: https://github.com/cornerstonejs/cornerstone3D/blob/4801e79796b659e5baa2806bf882ed2b7bb127b0/packages/tools/src/tools/CrosshairsTool.ts#L358C5-L358C69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bug reported, reproducible, and verified.
Projects
None yet
Development

No branches or pull requests

4 participants