[vtkusers] Using a BoxWidget to select actors in a scene
Dominik Szczerba
dominik at itis.ethz.ch
Fri Nov 21 06:02:48 EST 2008
If you have the widget's planes you can decide which actors are selected
by inspecting the underlying bounding boxes.
Dominik
Brian Carmalt wrote:
> 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
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Dominik Szczerba, PhD
Computational Physics Group
IT'IS Foundation
http://www.itis.ethz.ch
More information about the vtkusers
mailing list