Hi Christina,
interactors are meant to be data specific. Each data object can have an
interactor associated via the data node. This way interaction is neither
dependant on the type of visualization (2D, 3D) nor on the amount of widgets
that show the associated data. In your case you want to have it the other way,
as VTK does it. You can either use VTK or do it with MITK and use a
mitkNodeDependantPointSetInteractor (see test for usage). It only enables
interaction with the PointSet in case an additionaly associated data is
visible. This can be the image, that you show. You can enable visibility via
render specific properties for image 1 in QmitkSliceWidget 1 and associate a
mitkNodeDependantPointSetInteractor to image 1. Same with image 2 and Widget 2.
This way you can also easily switch visibility of the images later on, e.g.
show switch image 1 and 2 in widget 1 by changing the render specific
visibility property of image 1 and 2. This is maybe a bit more code than with
VTK but stays within mitk interaction mechanism.
Best Regards,
Ingmar
Von: Cristina Oyarzun [mailto:[email protected]]
Gesendet: Dienstag, 22. März 2011 11:30
An: Wegner Ingmar
Cc: [email protected]
Betreff: Re: [mitk-users] Interaction with qmitkslicewidgets
Hello Ingmar,
I have a pop-up window that is derived from QMainWindow and that contains two
QmitkSliceWidgets. Each QmitkSliceWidget has a different image. I want to
interact with both images by selecting points, removing them and so on.
Something similar to what one can do with QmitkPointBasedRegistration or with
QmitkRegionGrowing. I want to interact with both images independently. I could
do it using vtk, but I was wondering if I can do it by using mitk interactors
instead. I dont have any special rendering settings, I am just showing an image
in each one of the QmitkSliceWidgets.
So, I would need to have one independent interactor for each QmitkSliceWidgets
in the pop-up window. Can I do this somehow? How can I add the interactor to
each QmitkSliceWidget?
Thank you!
Best regards,
Cristina
On Sat, Mar 19, 2011 at 1:14 PM, Wegner Ingmar
<[email protected]<mailto:[email protected]>> wrote:
Hi Christina,
how do you set up your pop-up QmitkSliceWidgets? What are they used for? Do you
use special rendering settings? Are the point sets visible?
To isolate the problem, you can debug from
mitk::GlobalInteraction::HandleEvent(...).
A breakpoint should pause the program in case the event is properly sent by the
QmitkSliceWidget.
If so, then set a breakpoint in mitkPointSetInteractor::ExecuteAction(...) to
see if the event gets passed to the according interactor.
Best regards,
Ingmar
________________________________________
Von: Cristina Oyarzun
[[email protected]<mailto:[email protected]>]
Gesendet: Freitag, 18. März 2011 15:53
An: [email protected]<mailto:[email protected]>
Betreff: [mitk-users] Interaction with qmitkslicewidgets
Hello!
I have a MITK functionality that in addition to the main window has a pop-up
window. This pop-up window has two qmitkslicewidgets.
I would like to interact with both qmitkslicewidgets separately by using a
mitkPointSetInteractor to set seed points in both images. I was previously
working with PointSetInteractors in main windows which was giving me no
problems, however when I try it in the pop-up window I do not find the way to
set the interactor to a specific qmitkslicewidget.
Is it possible or do I have to interact with them by using vtk (render window,
renderer, actors and so on)?
Thank you!
Cristina
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users