Weasis Hanging Protocol

141 views
Skip to first unread message

Jon Ander Zuccaro

unread,
Feb 21, 2019, 4:47:31 PM2/21/19
to dcm4che
Hello.

Suppose that I wanted to add a rudimentary hanging protocol feature to Weasis, what are my options?

Loading prior studies can be accomplished server side when creating the JNLP.

We also have the Weasis commands, the dcmview2d ones are useful but sadly would require a second JNLP launch. We could assign a left button action, some wl value and change the layout.

First problem: changing the layout doesn't cause the other series to load automatically on the new spots on the grid. We could change the default 1x1 to 1x2 but the next series won't load on the new column. This is actually something that happens when changing the layout using the GUI button.

I've noticed that other viewers like Clear Canvas, Oviyam or Horos load the next series when more spots become available after a layout update.

How possible it is to replicate this behavior in Weasis? Something like this would make creating a new Plugin for applying new hanging protocols a feasible and simple thing.

Is the only remaining option to alter the behavior of the "change layout" action and re build Weasis? Is it even possible? Something tells me that this is non trivial.

Thank you!




Nicolas Roduit

unread,
Feb 25, 2019, 2:52:56 AM2/25/19
to dcm4che
The dcmview2d:layout command can only change the layout of the selected container (tab => viewer).  So this command cannot be used at startup. Currently changing the layout do not add any series but reassign the existing ones.

Changing that behavior is not trivial because the process of loading is independent of the layout command and it is not possible to control the sequence of the loading events. I think handling layouts could be an option of the command dicom:get and the layout will transmit to the viewer. So it will require to modify mainly dicom-explorer and dicom-viewer.

The time I can spend developing Weasis during the next weeks is entirely to manage the next version that will work without Java Web Start. We need contributors to implement this kind of features in a near future.

Jon Ander Zuccaro

unread,
Feb 25, 2019, 1:22:19 PM2/25/19
to dcm4che
Adding a layout option to the dicom:get command would be absolutely ideal... this would get apps running weasis the option to store and handle the user created hanging protocols and support multiple steps with different combinations of jnlp launches +XML manifests + layouts.

If you eventually move to the weasis:// protocol as planned I wonder if the Layout could even be part of the XML manifest itself combined with an additional attribute for the series indicating the desired position on the grid.

I've already checked out the weasis source code and am familiarizing myself with the structure doing some test builds to see if eventually I could contribute something of use.

Thanks again for the great work!
Reply all
Reply to author
Forward
0 new messages