cornerstone3D icon indicating copy to clipboard operation
cornerstone3D copied to clipboard

[Bug] Annotation Tools are always synchronised across viewports

Open mihir-rego opened this issue 1 year ago • 1 comments

Describe the Bug

While using tools across multiple viewports, the annotations tools will draw across all viewports. This isn't the case with manipulation tools like pan, zoom, w/l, etc.

I have tried creating multiple RenderingEngines, but doesn't fix it. But I'm not sure if multiple RE's are the way to go.

Steps to Reproduce

I have used 'volumeViewportSynchronization' in the cs3d examples to reproduce the issue, mapped the Secondary Button to Length Tool, and the Primary to W/L.

In the screens below, you can see sync is off, and the W/L levels change for each viewport, but in the case of the LengthTool, drawing on one viewport will mirror the annotation on the other viewports.

The current behavior

Annotation Tools (Probe, Length, CobbAngle) are being synchronized across multiple viewports, even when sync is off. Screenshot below.

length tool sync

The expected behavior

Annotations should only appear on the viewport being modified, in case of multiple viewports, unless synchronized.

window level sync

OS

Ubuntu 22.04

Node version

20.11.1

Browser

Brave v1.62.165

mihir-rego avatar Feb 22 '24 07:02 mihir-rego

so do you want it to not appear in the other viewports? volume viewports by design will show (not only the same series) but also if other seires are in the same position in the space, if you don't need MPR you can use stack viewports

sedghi avatar Mar 20 '24 18:03 sedghi