<table cellspacing='0' cellpadding='0' border='0' background='none' style='font-family:arial;font-size:10pt;color:#000000;background-color:#ffffff;width:100%;'><tr><td valign='top' style='font: inherit;'><P>Hi JohnMark. I'm Hiba.</P>
<P>Thank you for your help but i'm not sure that code will resolve my problem.</P>
<P>I visualize a 3D image in&nbsp;the first renderWindow of my application. I want to "import" the same image to the second renderWindow by clikcing in a buttom for example.</P>
<P>=&gt; read the image form the first window and visualize it in the second</P>
<P>I hope i explained more the problem and i'm waiting for your help.</P>
<P>Thank you <IMG src="http://mail.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif"></P>
<P><BR><BR>--- En date de&nbsp;: <B>Jeu 5.6.08, JohnMark <I>&lt;zhaojunxp@hotmail.com&gt;</I></B> a Ã©crit&nbsp;:<BR></P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De: JohnMark &lt;zhaojunxp@hotmail.com&gt;<BR>Objet: Visualize the same object in 2 different windows<BR>À: hiba_vtk@yahoo.fr<BR>Date: Jeudi 5 Juin 2008, 1h25<BR><BR>
<DIV id=yiv21845435>
<STYLE>
#yiv21845435 .hmmessage P
{
margin:0px;padding:0px;}
#yiv21845435  .hmmessage
{
FONT-SIZE:9pt;FONT-FAMILY:Tahoma;}
</STYLE>
<FONT face="Geneva, Arial, Sans-serif">Hi,</FONT><BR><FONT face="Geneva, Arial, Sans-serif">&nbsp; I don't know what's your name. maybe you need two renderers in the same render window, and then you could render two different volumes in them.</FONT><BR><FONT face="Geneva, Arial, Sans-serif">&nbsp; you can do like this :</FONT><BR><FONT face="Geneva, Arial, Sans-serif">&nbsp; <FONT color=#0000ff>vtkRenderWindow * renWin = vtkRenderWindow::New();</FONT></FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp; vtkRenderer * ren1 = vtkRenderer::New();</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp; vtkRenderer * ren2 = vtkRenderer::New();</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp;&nbsp;&nbsp; renWin-&gt;AddRenderer(ren1);</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp;&nbsp;&nbsp; renWin-&gt;AddRenderer(ren2);</FONT><BR><FONT face="Geneva, Arial, Sans-serif"
 color=#0000ff>&nbsp;&nbsp;&nbsp; </FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp;&nbsp;&nbsp; // your original pipeline</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp;&nbsp;&nbsp; ... ...</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff></FONT>&nbsp;<BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp;&nbsp;&nbsp; ren1-&gt;SetViewport(&nbsp;&nbsp; 0,&nbsp;&nbsp; 0,&nbsp; 0.5,&nbsp; 1);</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp;&nbsp;&nbsp; ren2-&gt;SetViewport(0.5,&nbsp;&nbsp; 0,&nbsp;&nbsp;&nbsp;&nbsp; 1,&nbsp; 1);</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp;&nbsp;&nbsp; ... ...</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff>&nbsp;&nbsp;&nbsp; renWin-&gt;Render();</FONT><BR><FONT face="Geneva, Arial, Sans-serif">&nbsp;&nbsp;</FONT><BR><FONT face="Geneva, Arial, Sans-serif">&nbsp; using this, you could divide the whole
 render window into two parts, and then you could do what you want to in the two different renderer. </FONT><BR><FONT face="Geneva, Arial, Sans-serif">&nbsp; hope this could help you.</FONT><BR><FONT face="Geneva, Arial, Sans-serif">&nbsp; Mark</FONT><BR><BR>
<HR>
用 Windows Live Spaces å±•ç¤ºä¸ªæ€§è‡ªæˆ‘,与好友分享生活! <A href="http://spaces.live.com/?page=HP" target=_blank rel=nofollow>了解更多信息!</A> </DIV></BLOCKQUOTE></td></tr></table><br>__________________________________________________<br>Do You Yahoo!?<br>En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités <br>http://mail.yahoo.fr Yahoo! Mail