<html><div style='background-color:'><P><FONT color=#0033ff size=4>Hello vtkusers.</FONT></P>
<P><FONT color=#0033ff size=4>This is the source to <FONT face=Arial>embed a window of VTK into a Visual C++ 6.0 window:</FONT></FONT></P>
<P><FONT color=#0033ff size=4>int CPruebasVTKView::OnCreate(LPCREATESTRUCT lpCreateStruct) <BR>{<BR>&nbsp;if (CView::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;<BR>&nbsp;// TODO: Add your specialized creation code here</FONT></P>
<P><FONT color=#0033ff size=4>&nbsp;renWin-&gt;AddRenderer(render);<BR>&nbsp;&nbsp;&nbsp; // setup the parent window<BR>&nbsp;&nbsp;&nbsp; renWin-&gt;SetParentId(m_hWnd);//sin esto se sale de&nbsp; proyecto&nbsp;</FONT></P>
<P><FONT color=#0033ff size=4>&nbsp;&nbsp;&nbsp; iren-&gt;SetRenderWindow(renWin);<BR>&nbsp;//iren-&gt;Initialize();</FONT></P>
<P><FONT color=#0033ff size=4>//Prepare for handling events. This must be called before the interactor will work.<BR>&nbsp;//renWin-&gt;WindowInitialize(); //si agrego esto cubro la vista<BR>&nbsp;</FONT><FONT color=#0033ff size=4><BR></FONT><FONT color=#0033ff size=4>&nbsp;render-&gt;SetBackground(0, 1, 1); // White<BR>&nbsp;render-&gt;GetActiveCamera()-&gt;SetPosition(0, 0, 10);<BR>&nbsp;GraficoPermanente();//my pipeline<BR>&nbsp;<BR>&nbsp;return 0;<BR>}</FONT></P>
<P><FONT color=#0033ff size=4>If someone can do this with Java(Jpanel) please send me it.</FONT></P><FONT color=#0033ff size=4>
<P></FONT><BR>&nbsp;</P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
From: <I>"Mei, Longyu" &lt;LMei@analogic.com&gt;</I><BR>To: <I>"Jose David Pfuturi Huisa" &lt;daviddarkzero@hotmail.com&gt;</I><BR>Subject: <I>RE: [vtkusers] Java and VTK Jpanel and vtkRenderWindow</I><BR>Date: <I>Tue, 17 Apr 2007 15:13:07 -0400</I><BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<DIV dir=ltr align=left><SPAN class=030381119-17042007><FONT face=Arial color=#0000ff size=2>Can you send me a sample to show me how to embed a window of VTK into a Visual C++ window? Maybe it will help me to find the way to go with Java.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> vtkusers-bounces+lmei=analogic.com@vtk.org [mailto:vtkusers-bounces+lmei=analogic.com@vtk.org] <B>On Behalf Of </B>Jose David Pfuturi Huisa<BR><B>Sent:</B> Tuesday, April 17, 2007 3:03 PM<BR><B>To:</B> vtkusers@vtk.org<BR><B>Subject:</B> RE: [vtkusers] Java and VTK Jpanel and vtkRenderWindow<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV class=RTE>
<P><FONT size=4>Hello everyone.</FONT></P>
<P><FONT size=4>I can embed&nbsp;a window of VTK with a window of Visual C++ but i can not with Java(Jpanel). </FONT></P>
<P><IMG style="WIDTH: 547px; HEIGHT: 382px" height=367 src="http://es.geocities.com/tenken_soujiro_zero/proyecto.jpg" width=506><BR></P>
<P><FONT size=4>Simply we have to change CView en the project. Now how can i do this using Jpanel??? can Somebody help me??</P></FONT>
<P>&nbsp;</P></DIV></DIV><BR clear=all>
<HR>
Coches nuevos, coches de ocasión, coches de Km 0 <A href="http://g.msn.com/8HMAESES/2746??PS=47575">Si piensas en cambiar de coche, MSN Motor.</A>
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff><FONT color=#000000>****************************************************************<BR>The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.<BR><BR>Thank you.<BR></FONT></TD></TR></TBODY></TABLE><BR></FONT></BLOCKQUOTE></div><br clear=all><hr>Éxitos, grandes clásicos y novedades.  <a href="http://g.msn.com/8HMAESES/2755??PS=47575" target="_top">Un millón de canciones en MSN Music. </a> </html>