[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtk-developers
Subject:    Re: [vtk-developers] [vtkusers] VtkImplicitPlaneWidget doesn't
From:       Gerrick Bivins <gbivins () objectreservoir ! com>
Date:       2009-03-17 21:38:42
Message-ID: C5E58293.7710%gbivins () objectreservoir ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I¹ve fixed this. The edges (tubing) aren¹t being used during picking. I
modified the class in the following way:
1)Allow translating the plane by setting the ivar ³TranslateByTubing²
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.
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.

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:
http://www.vtk.org/Bug/bug_view_advanced_page.php?bug_id=8669.

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.
http://www.vtk.org/Bug/view.php?id=8755
Gerrick



On 3/17/09 2:56 PM, "Gerrick Bivins" <gbivins@objectreservoir.com> wrote:

> Hi All,
> 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,
> for instance looking at  model from the top.
> Adding a slice and then trying to translate the slice rotates the model
> because the click doesn¹t select the plane tubing.
> 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).
> 
> 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.
> 
> This can be replicated in Paraview using a sphere source and adding a slice
> plane.
> Is this a bug or is there some setting on the implicit plane widget that I¹m
> missing?
> Gerrick
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


[Attachment #5 (text/html)]

<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&#8217;ve fixed this. The edges (tubing) aren&#8217;t being \
used during picking. I modified the class in the following way:<BR> 1)Allow \
translating the plane by setting the ivar &#8220;TranslateByTubing&#8221;<BR> 2) If \
&#8220;TranslateByTubing&#8221; is on, &#8220;Tubing&#8221; is turned on (if it \
isn&#8217;t already) and the &#8220;EdgeActor&#8221; added to the pick list. If \
&#8220;TranslateByTubing&#8221; is turned off, &#8220;EdgeActor&#8221; is removed \
from the pick list, &#8220;Tubing&#8221; is left unmodified. <BR> 3) During \
&#8220;OnLeftMouseDown&#8221;, check if &#8220;TranslateByTubing&#8221; is on and \
&#8220;EdgesActor&#8221; 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&#8217;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&#8217;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, &quot;Gerrick Bivins&quot; &lt;<a \
href="gbivins@objectreservoir.com">gbivins@objectreservoir.com</a>&gt; wrote:<BR> \
<BR> </SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN \
STYLE='font-size:11pt'>Hi All,<BR> I&#8217;m am trying to understand why in some \
instances, selection of the plane tubing doesn&#8217;t work. The case I&#8217;ve \
narrowed it down to is basically when viewing the model directly down an axis,<BR> \
for instance looking at &nbsp;model from the top.<BR> Adding a slice and then trying \
to translate the slice rotates the model because the click doesn&#8217;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&#8217;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&#8217;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>


["vtkImplicitPlaneWidget.patch.to.translate.by.tubing" (application/octet-stream)]

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic