[vtkusers] SetRepresentationToPoints and picking the points
Doug Hoppes
dhoppes at mbfbioscience.com
Fri Feb 3 14:52:05 EST 2012
Thanks for the info... the Interaction/Point Picker (need to do this in my vtkvolume that is using the SetRepresentationToPoints() method) seems to produce some results. However, not sure what's going on. I have a totally black image with a small white box in the center of the image. I can pick points outside of the white box. From the description of the point picker, I was thinking that it would only interact with any points on the white box, not my black area of the image.
More investigation to do.
Doug
From: David Doria [mailto:daviddoria at gmail.com]
Sent: Friday, February 03, 2012 11:38 AM
To: Doug Hoppes
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] SetRepresentationToPoints and picking the points
On Fri, Feb 3, 2012 at 11:32 AM, Doug Hoppes <dhoppes at mbfbioscience.com<mailto:dhoppes at mbfbioscience.com>> wrote:
Hi all,
Hopefully this is a simple question. I have an image that I represent on the screen as points (using SetRepresentationToPoints()). I would like the user to be able to select one of those points. I was thinking that I could use the vtkPointPicker, but nothing seems to be ever selected.
Any idea what class/example would do the trick?
Doug
If you have a 2D image, you can pick directly on the image without having to represent it as points:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel2
Otherwise I think you'll want something like this:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/PointPicker
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120203/ff99f225/attachment.htm>
More information about the vtkusers
mailing list