[vtkusers] Selection of Objects

Glen.Coates at csiro.au Glen.Coates at csiro.au
Mon Jan 27 20:20:19 EST 2003


On Mon, 27 Jan 2003, Jan-Gerrit Drexhage wrote:

> with which method can i select an object in vtk? I saw a presentation
> about it, you put the mouse over an object and with a defined key you
> can select it. How can I do that? Can I select multiple Objects too, or
> just one?

You need to use the vtkPicker class.  I think the default 
vtkRenderWindowInteractor has the 'p' key bound to some picking routine, 
but you are not limited to that behaviour.  The class docs for the 
vtkPicker class (and the vtkPointPicker and vtkCellPicker subclasses) are 
pretty decent, although no examples are provided.

If you need more help after reading the doxygen docs, let me know.

-- 
Cheers,
Glen




More information about the vtkusers mailing list