<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"><div>Thanks a lot! That worked. What I need is for there to be no tolerance AT ALL, regardless of the size of the render window. Is there a fixed value I can set for this effect? I tried zero, and that didnt work.<br><br>- John E<br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> kent williams &lt;nkwmailinglists@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> John Eke &lt;tonee47@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> vtkusers@vtk.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, May 28, 2009 2:32:21 PM<br><b><span style="font-weight:
 bold;">Subject:</span></b> Re: [vtkusers] vtkPicker picks an actor that isnt remotely close to  the pick point<br></font><br>
the vtkPicker class lets you set the tolerance, for picking.&nbsp; The<br>default tolerance is apparently a bit too loose for your taste.<br><br>From the documentation:<br><br>&gt; virtual void vtkPicker::SetTolerance(double)&nbsp;&nbsp;&nbsp;  [virtual]<br>&gt;<br>&gt; Specify tolerance for performing pick operation. Tolerance is specified as fraction of rendering window size.<br>&gt; (Rendering window size is measured across diagonal.)<br><br>The way this works is a little squirrelly, because you probably care<br>about a maximum distance from the exact pixel center, in pixels.&nbsp; But<br>this function wants a fraction of the window size (as measured<br>diagonally), which you'll have to compute based on the window<br>geometry.&nbsp; And if your window can be resized, you'll have to watch for<br>resize events and update the picker tolerance.<br><br>But the reason you can pick a few voxels away from the particular<br>voxel is that it's tricky to pick
 small features with the mouse<br>pointer.&nbsp; If you set the tolerance too low, it will make it rough for<br>users to pick anything.<br><br>On Thu, May 28, 2009 at 9:02 AM, John Eke &lt;<a ymailto="mailto:tonee47@yahoo.com" href="mailto:tonee47@yahoo.com">tonee47@yahoo.com</a>&gt; wrote:<br>&gt; Hi Guys,<br>&gt;<br>&gt; I have a scenario where I am trying to enable annotations on images<br>&gt; displayed in a vtkImageActor. When I click on the image, I place a small<br>&gt; marker at that point on the image. Now when I click on that marker, it<br>&gt; allows me to do other things like enter notes etc.<br>&gt;<br>&gt; Problem is, I use vtkPicker to do the pick, and when I click on the marker<br>&gt; it works, problem is I move several pixels AWAY from the marker and when I<br>&gt; attempt a pick, I still pick the same marker. It seems the markers have a<br>&gt; few pixels around them where if you click, you can still pick the actor. IS<br>&gt; there
 any way to change this? Are there any params in vtkPicker I can set to<br>&gt; make sure that the markers should ONLY be picked if the intersect DIRECTLY<br>&gt; with the pick point?<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt; John E<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br><span>&gt; <a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br>&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at:<br><span>&gt; <a target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a></span><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br><span>&gt; <a target="_blank"
 href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a></span><br>&gt;<br>&gt;<br></div></div></div><br>

      </body></html>