Hi there chaps. Yesterday I implemented a new CTK style plugin, derived from QmitkFunctionality, using Qt and CTK widgets that loaded a bunch of lookup tables (from our own XML format) by using the Qt resource system (as I didn't know where else to package the XML). These were loaded during the constructor of the View class, and used to populate a combo box. The view also has a CTK ctkRangeWidget for a min/max intensity window, and a window/level pair of sliders. There is also a CTK collapsible group box to include min/max limits (as regardless of the data, you may want to force the min and max to some values, such as +/- 1 for looking at log jacobian images.
When an image is selected, i use an mitkLevelWindowManager to lookup the level and window, and set the view up. As the controls are moved, the window/level is updated and propagated back to the property on the currently selected image. Is this of interest to anyone? It seems to work ok so far.... welll... there are a couple of glitches. 1. The CTK range widget looks odd on a Mac. The left hand, or minimum slider is rendered incorrectly and kind of overlapped with the maximum slider. Possibly a CTK issue. 2. There is some kind of race condition occurring on my Linux machine. Possibly caused by the fact that I now potentially have two things listening for window level updates rather than just the window level widget in the QmitkStdMultiWidget..... i still haven't got to the bottom of it. It might not be related to this plugin at all!!! Does this sound like a reasonable approach. Is anyone else interested in it? Thanks Matt On 21 Jul 2011, at 16:41, Müller, Michael wrote: > Hi Miklos, Matt, > > the DataManager context Menu is extensible by using the > QmitkDataNodeDescriptorManager class. The List of QmitkDataNodeDescriptor`s > is responsible what icons are shown for specific Data Types and which Actions > show up when you open up the context menu. At the moment you add a QAction or > a list of QAction`s to a NodeDescriptor which are then directly used in the > context menu. Adding submenus is not yet possible. Although I don`t think > this would be that difficult: One would have to extend the NodeDescriptor > class so that it can additionally hold QMenu items. Besides that, the > QmitkDataNodeDescriptorManager would have to offer a "GetMenus" method that > would be used by the DataManager to build the menu out of QAction`s and > QMenu`s. > If you want to implement it, just open up a bug at bugs.mitk.org, add me to > the CC list, append a patch and I will push it into the MITK master after > checking it. > > Best regards, > Michael > > ________________________________________ > Von: Clarkson, Matt [[email protected]] > Gesendet: Dienstag, 19. Juli 2011 18:31 > An: Miklos Espak > Cc: mitk-users > Betreff: Re: [mitk-users] Data manager view context menu - Lookup Tables > > Hi there Miklos, > > I emailed about lookup tables a while back, and didn't get an answer yet. > (thats no problem, as I know we are all busy etc). > > However, if we are looking at the same thing, we might as well discuss it. If > the mailing-list can provide a reasonable way of doing it, then it would be > worth collaborating to get it back into MITK for everyone. > > So, I was thinking of providing something that loaded a bunch of lookup > tables from a directory, or as resource files or something, then having > either a standalone Functionality/View, or as you suggest a context sensitive > menu to select the lookup table for a given image. > > Is this what you had in mind? > > I just didn't know what was the best way to do this. > > Any suggestions anyone? > > Thanks > > Matt > > > > > ------------------------------------------------------------------------------ > Magic Quadrant for Content-Aware Data Loss Prevention > Research study explores the data loss prevention market. Includes in-depth > analysis on the changes within the DLP market, and the criteria used to > evaluate the strengths and weaknesses of these DLP solutions. > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
