<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Okay, got the latest nightly build and trying out the QT implementation (there&#8217;s a bug fix with destructor order in QT that I need).&nbsp; &nbsp;&nbsp;With the latest change (vtkTDxConfigure.h being copied), I can get the code to compile.&nbsp;
 However, running into a new issue: The renderwindow isn&#8217;t built.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; My code (I have a class called VTKView which is subclassed from QVTKWidget). In my QT window, I have placed a QWidget and promoted it to VTKView.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#010001">VTKView</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">::<span style="color:#010001">VTKView</span>(<span style="color:#010001">QWidget</span>
 *<span style="color:#010001">pParent</span>)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">:<span style="color:#010001">QVTKWidget</span>(<span style="color:#010001">pParent</span>),
<span style="color:#010001">m_pUIProcessor</span>(<span style="color:#010001">NULL</span>),
<span style="color:#010001">m_pSolidsImage</span>(<span style="color:#010001">NULL</span>)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">{<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color:#010001">m_pUIProcessor</span> = <span style="color:blue">new</span>
<span style="color:#010001">VTKSceneManager</span>(<span style="color:#010001">GetRenderWindow</span>());<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">In QVTKWidget, it calls the function:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#010001">vtkRenderWindow</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">*
<span style="color:#010001">QVTKWidget</span>::<span style="color:#010001">GetRenderWindow</span>()<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">{&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp; &nbsp;&nbsp;&nbsp;
<span style="color:blue">if</span> (!<span style="color:blue">this</span>-&gt;<span style="color:#010001">mRenWin</span>)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; &nbsp; {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; &nbsp;
<span style="color:green">// create a default vtk window<o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin-left:1.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; &nbsp;
<span style="color:#010001">vtkRenderWindow</span>* <span style="color:#010001">win</span> =
<span style="color:#010001">vtkRenderWindow</span>::<span style="color:#010001">New</span>();<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; &nbsp;
<span style="color:blue">this</span>-&gt;<span style="color:#010001">SetRenderWindow</span>(<span style="color:#010001">win</span>);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; &nbsp;
<span style="color:#010001">win</span>-&gt;<span style="color:#010001">Delete</span>();<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; &nbsp; }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp; &nbsp;&nbsp;&nbsp; <span style="color:blue">
return</span> <span style="color:blue">this</span>-&gt;<span style="color:#010001">mRenWin</span>;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">}<o:p></o:p></span></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; However, the software crashes because the variable &#8220;win&#8221; is null, after calling the vtkRenderWindow::New().<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Also, as a side note, I had to comment out a lot of function calls (should I not be using these any more?):<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">
'SetScalarTypeToUnsignedChar' : is not a member of 'vtkImageData'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">'vtkImageData::SetNumberOfScalarComponents' : function does not take 1 arguments<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">'vtkImageData::AllocateScalars' : no overloaded function takes 0 arguments<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">'SetInput' : is not a member of 'vtkImageShiftScale'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">'SetInput' : is not a member of 'vtkImageActor'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">'SetInput' : is not a member of 'vtkOutlineFilter'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">'SetInput' : is not a member of 'vtkPolyDataMapper'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">'SetInput' : is not a member of 'vtkSmartVolumeMapper'<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Doug<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">---------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">Doug Hoppes <a href="doug@mbfbioscience.com">doug@mbfbioscience.com</a><o:p></o:p></p>
<p class="MsoNormal">Senior Software Engineer<o:p></o:p></p>
<p class="MsoNormal">MBF Bioscience (Microbrightfield, Inc.)<o:p></o:p></p>
<p class="MsoNormal">&#43;1.802.288.9290 ext:119<o:p></o:p></p>
<p class="MsoNormal"><a href="www.mbfbioscience.com">www.mbfbioscience.com</a><o:p></o:p></p>
<p class="MsoNormal">---------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>