Hi Everyone, update on this. I'm still a bit stuck.
However, comparing my new plugin for some segmentation work, and the existing segmentation plugin... I can see that in my plugin, somewhere the mousePressed, mouseMoved, mouseReleased events get lost in the statemachine, in the sense that they never get passed onto the mitkAddContourTool. It's like my new plugin hasn't correctly registered with the state machine or event passing mechanism. So, at the top level (as in QVTKWidget passing to mitk::Renderer if I recall correctly) the mouse events are processed, they simply aren't passed onto any of the tools registered in QmitkToolSelectionBox. I did try looking at the documentation :-) Any ideas? Thanks Matt > ------------------------------ > > Message: 2 > Date: Fri, 24 Jun 2011 15:18:22 +0100 (BST) > From: Matt Clarkson <[email protected]> > Subject: [mitk-users] New plugin, using QmitkToolSelectionBox, no > events passed to tools???? > To: mitk-users <[email protected]> > Message-ID: <11409705.120879.1308925102376.JavaMail.root@shyrka> > Content-Type: text/plain; charset="utf-8" > > Hi everyone, > > I'm creating a new CTK style segmentation plugin for my application, > similar to QmitkSegmentationView. I have added a UI part, including > QmitkToolSelectionBox and QmitkToolGUIArea, and a handful of other > buttons. I thought I would test the plugin by asking it to display the > tools such as mitkAddContourTool that are normally visibly in the MITK > segmentation plugin. Then if this worked, I would swap the tools out, > and replace them with my own tools. > > 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? > > Many thanks in advance. > > Matt ------------------------------------------------------------------------------ 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
