I’m not sure if this is happening for anyone else because I’ve got a lot of custom code (including my own LayoutManager plugin), but it appears that changing the layout for a workspace does not reset the DisplaySets to Visible = false;

 

This is based on the stable 0.95 build (R1402).

 

If a study is opened in a 2x2 ImageBox layout by default and then the user manually changes the ImageBox layout to, say, 1x1, the display changes without any issues. But, If you then loop through the collection of DisplaySets after that, all of the previously visible DisplaySets (potentially 4 from the 2x2 view) retain their Visible = true property.

 

So, to solve this issue, I put the following code into LayoutComponent.ApplyImageBoxLayout() just before the call to physicalWorkspace.SetImageBoxGrid(_imageBoxRows, _imageBoxColumns);

 

            // Reset the visibility of all of the display sets.

            foreach (DisplaySet displaySet in _imageViewer.LogicalWorkspace.DisplaySets)

                displaySet.Visible = false;

 

This forces the DisplaySets not to be visible and the setting of the DisplaySet property of the ImageBox within LayoutManager.FillPhysicalWorkspace sets each of those display sets being used to Visible = true. I don’t know if anyone else has come across this issue or not, but this is what I used as a workaround.

 

Thanks,

Keith

 

 

Keith Markfield
Software Engineer

Empiric Systems, LLC
[EMAIL PROTECTED]
866-EMPIRIC

The information contained in this message may be privileged or confidential and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and delete the material from any computer.

 

_______________________________________________
dev mailing list
[email protected]
http://clearcanvas.ca/mailman/listinfo/dev_clearcanvas.ca

Reply via email to