<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:892930403;
        mso-list-type:hybrid;
        mso-list-template-ids:-123681372 134807569 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>

</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I&#8217;m new to VTK so forgive me if I&#8217;m being really
stupid with anything. I also couldn&#8217;t find any rules or guides about
posting to this list so, again, sorry if I annoy anyone.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I&#8217;m writing a GUI using visual studio and Qt. I&#8217;m
trying to use vtk to show some elements entered in the GUI. They are basically
lines and boxes. I&#8217;m having two problems:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>1)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><![endif]><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>The Qt
widget that I open (as a modal dialog) with vtk window in it opens fine with a cylinder
displayed in it (like in the example qt code) but the app crashes whenever I
regain focus (like if I switch between windows). An assert is failing here:
COpenGLControls::BeginOpenGLDrawing(): ASSERT(!m_hDC==!m_CountBeginEnd). M_hDC
is a NULL pointer and m_CountBeginEnd is 1. I&#8217;ve no idea what this is
about. The window that my modal dialog gets opened from also has so OpenGL
widgets in it (perhaps this is related) although these are just hand coded OGL.<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>2)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><![endif]><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I&#8217;m
having trouble displaying more than one actor. I&#8217;m representing each &#8220;line&#8221;
in my GUI using a vtkLineSource -&gt;vtkPolyDataMapper -&gt; vtkActor -&gt;
vtkRenderer. When I try to add several of these lines (instantiating new lines
and mappers and actors of course) I only see the last of them in the display. Any
idea what I&#8217;m going wrong? I switch on immediate mode rendering for the
mappers if that&#8217;s important. I&#8217;m also calling ResSetCamera on the
renderer but other than that, I just connect them all up.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I do all of the setup in the widget&#8217;s constructor. Do
I need to do something with an OnDraw function or anything like that?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks for your help<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;Dave</span></font><o:p></o:p></p>

</div>


<P>The information contained in this E-Mail and any subsequent 
<BR>correspondence is private and is intended solely for the intended 
<BR>recipient(s).&nbsp; The information in this communication may be 
<BR>confidential and/or legally privileged.&nbsp; Nothing in this e-mail is 
<BR>intended to conclude a contract on behalf of QinetiQ or make QinetiQ 
<BR>subject to any other legally binding commitments, unless the e-mail 
<BR>contains an express statement to the contrary or incorporates a formal 
Purchase Order.</P>
<P>For those other than the recipient any disclosure, copying, <BR>distribution, 
or any action taken or omitted to be taken in reliance <BR>on such information 
is prohibited and may be unlawful.</P>
<P>Emails and other electronic communication with QinetiQ may be <BR>monitored 
and recorded for business purposes including security, audit <BR>and archival 
purposes.&nbsp; Any response to this email indicates consent <BR>to this.</P>
<P>Telephone calls to QinetiQ may be monitored or recorded for quality 
<BR>control, security and other business purposes.</P>
<P>QinetiQ Limited<BR>Registered in England &amp; Wales: Company 
Number:3796233<BR>Registered office: 85 Buckingham Gate, London SW1E 6PD, United 
Kingdom<BR>Trading address: Cody Technology Park, Cody Building, Ively Road, 
Farnborough, Hampshire, GU14 0LX, United Kingdom <BR><A 
href="http://www.qinetiq.com/home/notices/legal.html">http://www.qinetiq.com/home/notices/legal.html</A><A 
href="http://www.QinetiQ.com/home/legal.html"></A></P>
</body>

</html>