[vtkusers] Mixing vtkImageActors and geometry ( vtkActor2D ), picking x, y, z coordinate from image actor correctly

dean.inglis at camris.ca dean.inglis at camris.ca
Wed Dec 13 08:17:41 EST 2006


Jesús,

I posted the source code for an interactive
widget that is basically a cross-hair cursor
that interacts with vtkImageActor to 
get coordinates and underlying scalar values
in the image.  It uses a vtkPropPicker. 
Look in the recent archives for it, 
and keep in mind that I do not support this
code: you will have to take it as, but you may
be able to understand how it works ann/or
compile it into your own collection of vtk 
classes...

Dean

> 
> >
> >
> > have you tried setting PickableOff and DragableOff on
> > all the actors that you do not want to pick?
> 
> 
> Yes, and I also tell to the picker to pick only from the list (
> PickFromListOn() ) and I add the image actor to the picker ( AddPickList() )
> but it still continues giving me the z coordinate from actors I've set
> PickableOff and DragableOff.
> 
> Any suggestion about this problem?
> 
> regards,
> > Dean
> >
> 
> 



More information about the vtkusers mailing list