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]> 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]]
> Sent: Montag, 18. Februar 2013 21:45
> To: [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]
> 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

Reply via email to