<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2>Hi Rashed,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2>the outlines are actually the black borders of the
IPWs. Some of the interior of the IPW textures are transparent, this is why the
borders can be seen.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2>You can also use vtkOutlineFilter (I did some time ago).
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2>For picking I modified the source of
vtkImagePlaneWidget eg: made the Picker publicly
accessible.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2>Then I added an observer to the IPW's InteractionEvent,
then you can use Picker->GetPickPosition.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2>See below:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2>void vtkPlaWidgetCmd::Execute<BR>(vtkObject *caller,
unsigned long eventID, void *callerData) <BR>{</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2> vtkImagePlaneWidgetR *ipw =
dynamic_cast<vtkImagePlaneWidgetR *>(caller);<BR> if (ipw == NULL)
<BR> return;</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2> vtkCellPicker * picker =
ipw->GetPicker();</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2> double
pos[3];<BR> picker->GetPickPosition(pos);<BR> </FONT></SPAN></DIV>
<DIV><SPAN class=203483712-05082006><FONT face=Arial color=#0000ff size=2>//...
etc</FONT></SPAN></DIV>
<DIV><SPAN class=203483712-05082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=203483712-05082006><FONT face=Arial color=#0000ff
size=2>}</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2>Istvan</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=203483712-05082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Rashed Karim
[mailto:rashed.karim@gmail.com] <BR><B>Sent:</B> Saturday, August 05, 2006 3:35
PM<BR><B>To:</B> Istvan Matis<BR><B>Subject:</B> Re: [vtkusers] How to put
vtkImagePlaneWidget behind actors ?<BR></FONT><BR></DIV>
<DIV></DIV>Hi Matis .. <BR><BR>Sorry I dont an answer to your question, but I
have noticed you have outlines around your vtkPlaneWidget. May I ask you how you
went about doing this? If you used vtkOutlineFIlter, what did you use in its
input? <BR><BR>Also, are you able to pick points on your vtkImagePlaneWidget??
If you can, how do you do this? <BR><BR>Thanks<BR>Regards, <BR>Rashed karim
<BR><BR><BR>
<DIV><SPAN class=gmail_quote>On 8/5/06, <B class=gmail_sendername>Istvan
Matis</B> <<A href="mailto:i_matis@yahoo.de">i_matis@yahoo.de</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV>
<DIV>
<DIV><SPAN><FONT face=Arial size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial size=2>is there ANY way to put a
vtkImagePlaneWidget <SPAN>BEHIND </SPAN>other
(half-transparent) actors ?</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial size=2>For example not to be always on top of
other objects?</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN><SPAN><FONT face=Arial size=2>See image attached for an example of
a "bad" IPW on top of head actor.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial size=2>Maybe for 3DWidgets in
general?</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2>Istvan</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial
size=2></FONT></SPAN> </DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>This
is the private VTK discussion list.<BR>Please keep messages on-topic. Check
the FAQ at: <A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.vtk.org/Wiki/VTK_FAQ"
target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow this link to
subscribe/unsubscribe:<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers </A><BR><BR><BR><BR
clear=all></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Rashed </BODY></HTML>