[vtkusers] Deleting a widget
Leonardo M. Ramé
l.rame at griensu.com
Mon Sep 20 16:07:41 EDT 2010
To set an interactor observer for a vtkWidget, one have to do this:
myWidget->SetInteractor(myInteractor);
Now, how can I get the list of widgets associated to this interactor?.
I need this, because I want to select a widget (for example a
vtkDistanceWidget) using the mouse, then traverse the list of widgets
associated with an interactor, and ask if the nth element of the widget
list is the one currently selected, then just delete it.
If you know an easier way, please let me know.
--
Leonardo M. Ramé
http://leonardorame.blogspot.com
More information about the vtkusers
mailing list