<DIV>Hi Thomas,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Maybe you can try this if you are using MFC Dialog, or DialogView in View/Doc applications:</DIV>
<DIV>Drag a CStatic onto the Dialog, and add this function into the class that contains dataobject, filter, renderer and renderwindow</DIV>
<DIV>&nbsp;</DIV>
<DIV>void CCore::BeginRender(CStatic *aStatic)<BR>{<BR>&nbsp;CRect rect;<BR>&nbsp;aStatic-&gt;GetClientRect(&amp;rect);<BR>&nbsp;renWin-&gt;SetSize(rect.Width(),rect.Height());<BR>&nbsp;renWin-&gt;SetParentId(aStatic-&gt;m_hWnd);&nbsp;&nbsp;&nbsp;<BR>&nbsp;renWin-&gt;Render();<BR>}<BR></DIV>
<DIV>It works pretty well to me.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Qiang<BR><BR><B><I>Thomas Sundgaard Pedersen &lt;sundgaard@inropa.com&gt;</I></B> 写道:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi,<BR><BR>I also want to view the same scene in multiple windows from different<BR>angles at the same time. I use C++ with Visual Studio 6, and have tried<BR>the Windows splitter Class CSplitterWnd, but this makes the vtk views<BR>unstable, showing actors in wrong size and/or color, or renders nothing<BR>at all. Two views work some times, but fore views almost newer works.<BR>Please what can I do to view and interact with the same render in a 2x2<BR>splitwindow?<BR><BR>Best Regards<BR>Thomas<BR><BR>-----Original Message-----<BR>From: vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] On<BR>Behalf Of Simon Drouin<BR>Sent: 7. februar 2005 20:17<BR>To: vtkusers@vtk.org<BR>Subject: [vtkusers] Multiple views of a single 3D scene<BR><BR>Hi all,<BR><BR>I'm trying to render the same 3D scene in 2 different vtk windows with <BR>different camera angles and I am wondering what's the
 prefered way to do<BR><BR>that in vtk. It doesn't seem to be possible to use the same vtkRenderer <BR>for different windows. Also, how do you deal with vtk3DWidget?<BR><BR>Thanks in advance for any advice on this.<BR><BR>Simon Drouin. <BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at:<BR>http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR><BR><BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE><p>
                <hr size=1>DO YOU YAHOO!?<br> 
<a href="http://cn.mail.yahoo.com/?id=77071" target=blank> 
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱</a>