On 06/24/2011 04:18 PM, Matt Clarkson wrote:
> Hi everyone,
> However, the plugin tools aren't responding to events.
> 
> I have checked that my new plugin has an mitkToolManager registered with
> the QmitkToolSelectionBox.
> I have run the ExtApp with both the segmentation plugin and my own
> plugin, and checked that they do indeed both have different instances of
> mitkToolManager and QmitkToolSelectionBox.
> I have checked that when the plugin starts, the QmitkToolSelectionBox is
> calling "RegisterClient" as you would expect.
> I have checked that the QVTKWidget is receiving mouse events, and these
> are getting passed into the MITK interactor framework, but I can't work
> out why the events get propagated to the MITK segmentation plugin, but
> now my new segmentation plugin?
> 
> Any ideas? What steps should I go through to get events passed to Tools?

Possible reasons I can think of:
- does your plugin make sure that all parts work with the same
  ToolManager?
- do you use several instances of GlobalInteraction? This would not
  work, because the tool classes currently use the default instance of
  GlobalInteraction::GetInstance().
- There are some lines of code in
  QmitkSegmentationView::CreateQtPartControl(..)
  which tells the tool framework about the DataStorage to use for
  displaying feedback data
- You could debug into ToolManager::ActivateTool(..) and see if
  something is correctly registered with GlobalInteraction

Regards
Daniel



-- 
Dr. Daniel Maleike                            Telefon: + 49 6221 42 2326
Mint Medical GmbH              Im Neuenheimer Feld 582, 69120 Heidelberg
Geschäftsführer: Dr. Matthias Baumhauer
Registergericht Mannheim, HRB 709351

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to