<HTML>
<HEAD>
<TITLE>Re: [vtkusers] VtkImplicitPlaneWidget doesn't detect tubing selections (left mouse click) [FIXED]</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I’ve fixed this. The edges (tubing) aren’t being used during picking. I modified the class in the following way:<BR>
1)Allow translating the plane by setting the ivar “TranslateByTubing”<BR>
2) If “TranslateByTubing” is on, “Tubing” is turned on (if it isn’t already) and the “EdgeActor” added to the pick list. If “TranslateByTubing” is turned off, “EdgeActor” is removed from the pick list, “Tubing” is left unmodified. <BR>
3) During “OnLeftMouseDown”, check if “TranslateByTubing” is on and “EdgesActor” is the picked prop. If true highlight the plane and set the state to pushing.<BR>
<BR>
Anyway, I have the patch for this but there is a previous patch that hasn’t been merged into the trunk yet on the same class:<BR>
<a href="http://www.vtk.org/Bug/bug_view_advanced_page.php?bug_id=8669">http://www.vtk.org/Bug/bug_view_advanced_page.php?bug_id=8669</a>.<BR>
<BR>
Patch is in this bug...note that this patch also contains the fixes for the previous bug since it hadn’t been checked in yet.<BR>
<a href="http://www.vtk.org/Bug/view.php?id=8755">http://www.vtk.org/Bug/view.php?id=8755</a><BR>
Gerrick<BR>
<BR>
<BR>
<BR>
On 3/17/09 2:56 PM, "Gerrick Bivins" <<a href="gbivins@objectreservoir.com">gbivins@objectreservoir.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi All,<BR>
I’m am trying to understand why in some instances, selection of the plane tubing doesn’t work. The case I’ve narrowed it down to is basically when viewing the model directly down an axis,<BR>
for instance looking at  model from the top.<BR>
Adding a slice and then trying to translate the slice rotates the model because the click doesn’t select the plane tubing. <BR>
Rotating the model slightly (really, very slightly but the view is not top down anymore), allows me to pick the plane. This occurs from any view if it is directly down an axis (z,y or x).<BR>
<BR>
I’d like to be able to place the slice parallel to some features in our model which can be easily verified in a top down view.<BR>
<BR>
This can be replicated in Paraview using a sphere source and adding a slice plane.<BR>
Is this a bug or is there some setting on the implicit plane widget that I’m missing?<BR>
Gerrick<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>