[vtkusers] Using a BoxWidget to select actors in a scene

Brian Carmalt bca at contact.de
Fri Nov 21 05:26:51 EST 2008


Hello all, 

We are loadind a selection of stl files as individual actors into vtk
and would like to have the user be able to select the actors he wants to
see with a 3D volume. Based on the BoxWidget example the vtkBoxWidget,
seems to be a possible way to do this. The problem I have is that
although I can extract the planes making up the box, I do not what to do
with them in order to select the actors contained in it. 

So the behavior would be something like the following:

The models are loaded and the BoxWidget is displayed.
The User can then position the widget around the actors he wants to
select.
The other actors change color, or are display as wireframes to show what
was secleted
the the program somehow gets a list of the actors inside the widgets and
can work from there. 


Would some one please me point in the right direction? Thanks in
advance.

Brian 






More information about the vtkusers mailing list