Hi Phan-Anh,
normally the toolselectionbox should be able to handle the activation
automatically. I tested it for the Segmentation in MITK and it worked. The
event notification policy should also be set correctly by the toolmanager.
I noticed that with
CONNECT_ACTION( 92, OnMouseMoved );
you did connect the event id 92 in your tool. However most of the tools in MITK
(e.g. the subclasses of mitkSegTool2D) connect to the event id 90. Maybe this
is the error. If not it would be interesting what kind of statemachine are you
using for your tool.
Regrads
Andreas
From: Clarkson, Matt [mailto:[email protected]]
Sent: Dienstag, 19. Februar 2013 17:01
To: Nguyen Phan-Anh
Cc: Fetzer, Andreas
Subject: Re: [mitk-users] Problem with QmitkToolSelectionBox
Hi All,
is this caused by the fact that the interaction API was changed to enable tools
to turn off other interactions.
So, in mitk::GlobalInteraction there is
SetEventNotificationPolicy(EVENT_NOTIFICATION_POLICY).
If the policy is INFORM_ONE, then only the interactor that returns the highest
value for CanHandleEvent will be called.
Matt
On 19 Feb 2013, at 14:32, Nguyen Phan-Anh
<[email protected]<mailto:[email protected]>>
wrote:
Hi Andrea,
Yes, I am trying to integrate my own tools.
"the mouse event is gone" is that I first connect the OnMouseMoved
event: CONNECT_ACTION( 92, OnMouseMoved );
However, there is no OnMouseMoved event sent to my tool when I hover
the mouse over the MultiStdView. I detect this by printing the
function signature at the beginning: std::cout << "hi from " <<
__FUNCSIG__ << std::endl;
This does not happen at the initial state when I explicitly call:
mitk::ToolManager* manager = m_ManualToolSelectionBox->GetToolManager();
manager->ActivateTool(id);
But as soon as I click on a button offered by the
QmitkToolSelectionBox class, the OnMouseMoved event has stopped.
I think this is related to the method
mitk::GlobalInteraction::GetInstance()->AddListener()
The document states that the QmitkToolSelectionBox class handle the
activation problem automatically.
Best regards,
Phan-Anh
On Tue, Feb 19, 2013 at 2:57 PM, Fetzer, Andreas
<[email protected]<mailto:[email protected]>> wrote:
Hi Phan-Anh,
what exactly are you trying to do? Are you using the Segmentation Plugin of
MITK or have you written your own tools? What exactly do you mean with "the
mouse event is gone"? Does that mean that there are no more mouse events
received by your tool?
That the object is only displayed correctly in the 3D view after you rotate the
scene manually sounds like a missing rendering update. You can try to invoke a
update with:
mitk::RenderingManager::GetInstance()->RequestUpdateAll()
after the tool interaction has finished.
Regards
Andreas
-----Original Message-----
From: Nguyen Phan-Anh [mailto:[email protected]<http://gmail.com>]
Sent: Montag, 18. Februar 2013 21:45
To: [email protected]<mailto:[email protected]>
Subject: [mitk-users] Problem with QmitkToolSelectionBox
Hi,
At the entry point if I explicitly call:
mitk::ToolManager* manager = m_ManualToolSelectionBox->GetToolManager();
manager->ActivateTool(id);
Then I can receive OnMouseMove event from the QmitkStdMultiWidget.
But as soon as I click on a button from QmitkToolSelectionBox to switch to a
different tool, the OnMouseMove event is gone.
Also the 3D view does not update properly, It can only show the object if I
rotate it.
Could anyone tell me what is wrong?
I use MITK version 2012.09.
Best regards,
Phan-Anh
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is
your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most recent
posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users