<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>I just found this example for using C#
with</FONT></DIV>
<DIV><FONT face=Arial size=2>Open GL. It passes a C# window to an</FONT></DIV>
<DIV><FONT face=Arial size=2>open GL program. It is quite simple.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'll work on it in the next couple of weeks
and</FONT></DIV>
<DIV><FONT face=Arial size=2>see if I can get it to do the same for
passing</FONT></DIV>
<DIV><FONT face=Arial size=2>a C# window to VTK!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.colinfahey.com/opengl/csharp.htm">http://www.colinfahey.com/opengl/csharp.htm</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- Asad</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV class=Section1>
<P style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 7.5pt; COLOR: green; FONT-FAMILY: Arial"><BR><SPAN
style="mso-spacerun: yes"> </SPAN><BR></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: blue; FONT-FAMILY: Arial">Asad Abu-Tarif, Ph.D.,
PMP <BR>Research Engineer<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 7.5pt; COLOR: green; FONT-FAMILY: Arial"><BR></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">AutoQuant Imaging,
Inc. <BR>877 25th. Street <BR>Watervliet, NY 12189 <BR>USA <BR>Email:
asada@aqi.com <BR>Tel: 518-276-2264</SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: green; FONT-FAMILY: Arial"> <BR></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: blue; FONT-FAMILY: Arial"><A
href="http://www.aqi.com/">http://www.aqi.com/</A></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: green; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Andrew Dolgert" <</FONT><A
href="mailto:ajd27@cornell.edu"><FONT face=Arial
size=2>ajd27@cornell.edu</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: "'Asad Abu-Tarif'" <</FONT><A
href="mailto:asada@aqi.com"><FONT face=Arial
size=2>asada@aqi.com</FONT></A><FONT face=Arial size=2>>; "'VTK User Group'"
<</FONT><A href="mailto:vtkusers@vtk.org"><FONT face=Arial
size=2>vtkusers@vtk.org</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Friday, December 05, 2003 12:31
PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: RE: [vtkusers] VTK with
C#</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial
size=2>> I have most of that working but haven't packaged it. I use
Activiz/COM<BR>> on my desk but can't afford it for students.<BR>>
<BR>> C# Windows Form calls -> managed C++ .NET Control calls<BR>>
-> native C++ class with VTK pipeline.<BR>> <BR>> I followed the
VTK 3.2 MFC sample, pulling HWNDs and events from the <BR>> Control,
instead. You could do this without using managed C++, too,<BR>> if you
want.<BR>> <BR>> Maybe someone else put together a sample doing
this?<BR>> <BR>> - Drew Dolgert, Cornell Theory Center<BR>> <BR>>
-----Original Message-----<BR>> From: </FONT><A
href="mailto:vtkusers-admin@vtk.org"><FONT face=Arial
size=2>vtkusers-admin@vtk.org</FONT></A><FONT face=Arial size=2>
[mailto:vtkusers-admin@vtk.org] On Behalf<BR>> Of Asad Abu-Tarif<BR>>
Sent: Friday, December 05, 2003 10:40 AM<BR>> To: Pedram Rezaei; </FONT><A
href="mailto:vtkusers@vtk.org"><FONT face=Arial
size=2>vtkusers@vtk.org</FONT></A><BR><FONT face=Arial size=2>> Subject: Re:
[vtkusers] VTK with C#<BR>> <BR>> <BR>> Hi,<BR>> Thanks for the
info. I was just searching the vtkDonNetWrapper<BR>> for that specific
function (SetParentID).<BR>> <BR>> Only the GUI is in C# in my case, but
the application logic is<BR>> all in unmanaged C++. So, really all what I
need is to know how<BR>> to pass a C# window to an unmanaged
function.<BR>> <BR>> If complete wrappers do exist with plans to update
them for<BR>> future VTK releases, that would be great. Otherwise,
does<BR>> anyone know how to pass a C# window to an unmanaged C++<BR>>
code so that VTK could render in that window?<BR>> <BR>> Thanks,<BR>> -
Asad<BR>> <BR>> </FONT></BODY></HTML>