[vtkusers] Detect which QVTKWidget I am interacting with
Girault, Alexis
girault at email.unc.edu
Thu Jul 25 09:35:51 EDT 2013
Thank you for your answer Alex. I tried to follow your advices but failed to do what I wanted.
INSTEAD I found a way of doing it : the callback function in AddObserver() can be implemented thess ways :
- void foo(void);
- void foo(vtkObject*, unsigned long, void*);
Therefore I created a function like the second one, and it appears the vtkObject * points on the object on which we add the observer. I could get the Interactor back by casting this vtkObject, and then also the renderWindow, and that's all I needed so I think I'll continue with this solution.
I think the documentation on this function is really poor. I was able to find out the "unsigned long" is the Id of the event, but no idea about the void* that is sent.
Thanks again, hope that may help someone else.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130725/5d024e47/attachment.htm>
More information about the vtkusers
mailing list