<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 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>=> 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 : <B>Jeu 5.6.08, JohnMark <I><zhaojunxp@hotmail.com></I></B> a écrit :<BR></P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De: JohnMark <zhaojunxp@hotmail.com><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"> 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"> you can do like this :</FONT><BR><FONT face="Geneva, Arial, Sans-serif"> <FONT color=#0000ff>vtkRenderWindow * renWin = vtkRenderWindow::New();</FONT></FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> vtkRenderer * ren1 = vtkRenderer::New();</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> vtkRenderer * ren2 = vtkRenderer::New();</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> renWin->AddRenderer(ren1);</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> renWin->AddRenderer(ren2);</FONT><BR><FONT face="Geneva, Arial, Sans-serif"
color=#0000ff> </FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> // your original pipeline</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> ... ...</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff></FONT> <BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> ren1->SetViewport( 0, 0, 0.5, 1);</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> ren2->SetViewport(0.5, 0, 1, 1);</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> ... ...</FONT><BR><FONT face="Geneva, Arial, Sans-serif" color=#0000ff> renWin->Render();</FONT><BR><FONT face="Geneva, Arial, Sans-serif"> </FONT><BR><FONT face="Geneva, Arial, Sans-serif"> 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"> hope this could help you.</FONT><BR><FONT face="Geneva, Arial, Sans-serif"> 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