<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle16
        {mso-style-type:personal;
        font-family:Arial;
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Your idea is interesting. It might apply
to attempts to use VTK as a server for <st1:City w:st="on"><st1:place w:st="on">AJAX</st1:place></st1:City>.
For Windows Forms, however, the current setup works fine because the
vtkWin32OpenGLRenderWindow will happily receive events from and draw into the
Frame of a Windows Form because Windows Forms expose their HWND handle.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Drew Dolgert<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
vtkusers-bounces+ajd27=cornell.edu@vtk.org
[mailto:vtkusers-bounces+ajd27=cornell.edu@vtk.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Frank Gao<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, March 17, 2006 5:24
PM<br>
<b><span style='font-weight:bold'>To:</span></b> Vtkusers@Vtk.Org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [vtkusers] VTK and GUI -
vtkRenderWindow - Virtual or Physical?</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>Hi Experts,<o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>I have a question about
vtkRenderWindow, and vtkOpenGLRenderWindow. Are such objects virtual, or have
to be physical by setting the parent window ID? <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>The requirement behind this question
is here. Suppose an application must separate its window display and
interaction from its internal code. The application needs to set a virtual
vtkOpenGLRenderWindow with interactors that are also virtual, and binding them
with a physical window whenever necessary. Simply put, make
vtkOpenGLRenderWindow and the interactor purely ‘server’ objects to
return bitmaps (or video streams?). These server objects are fully functional
and independent of physical implementation. By doing this, the application
never needs to get into vtk code to change files such as vtkMFCWindow. <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>A real scenario for this. If this is
possible, with a .Net wrapper, one can easily use Win Forms as render window.<o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>It would be tremendously helpful if
the answer is YES, or can be YES. Your replies are highly appreciated.<o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>Thanks,<o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'>Frank Gao<o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle17><font size=2 color=black
face=Arial><span style='font-size:10.0pt'> <o:p></o:p></span></font></span></p>
<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt'><o:p> </o:p></span></font></span></p>
</div>
</body>
</html>