Synchronisation window/level across multiple volumes

Hi all, I’ve had a search and can’t find much on this.

Before I embark on trying to implement this myself, is there an obvious way to link multiple scalar volume nodes window/level, such that if you change the window/level in one image, it will change it in the other in real time?

Cheers,

Ashkan

I don’t recall anything that specifically does this, but it would be straightforward to add observers to all the display nodes of interest and copy over the window level to the others when any of them changes. Be sure to avoid event loops; this should be automatic since no ModifiedEvent will be triggered if you are setting the value to the exactly what it already is (that is, when any of the display nodes changes you can just set them all without triggering a cascade of events).

1 Like

Thank you for confirming! Indeed I went down that route.

Here is my implementation in case anyone comes across this trying to do the same thing:

1 Like