<div dir="ltr">Hi Marie,<div><br></div><div>The three lines of code that you posted should work fine with 2.2, as long</div><div>as the vtkImageData object is valid. I'm fairly sure that 2.2 had the "Print"</div><div>method, so you should be able to do some debugging like this:</div><div><br></div><div> image->Print(cout);</div><div><br></div><div>I can't help you with the documentation... when I was learning VTK (back in</div><div>the days of VTK 2.1), most of the insight that I gained came from reading</div><div>the header files and experimenting with little test programs.</div><div><br></div><div> - David</div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 28, 2016 at 8:31 AM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Avoiding the: "Why such an old /*1998*/ version?" and "You should really update." discussion <div><br><div><div><div>The oldest doxygen documentation we have on the server is:</div><div><a href="http://www.vtk.org/doc/release/3/html/" target="_blank">http://www.vtk.org/doc/release/3/html/</a><br></div><div><br></div></div></div></div></div><div class="gmail_extra"><br clear="all"><div><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Thu, Jan 28, 2016 at 8:31 AM, Rozand, Marie (GE Healthcare, consultant) <span dir="ltr"><<a href="mailto:marie.rozand@ge.com" target="_blank">marie.rozand@ge.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div lang="FR" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Dear all,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I can’t use newer version of vtk so I would like to know how to vizualize an vtkImageData with version 2.2 in c++<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I created a vtkImageViewer and gave it my image :
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">vtkImageViewer * viewer = vtkImageViewer::New();<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">viewer->SetInput(image);<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">viewer->Render();<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The problem is that when I run my program it crashes during the Render() function. Do I need a kind of Interactor ? If so what is the equivalent class name in vtk 2.2 ? Or is it another problem ?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Furthermore, if someone know where I could find or buy a documentation about this old version, it would be great.<span><font color="#888888"><u></u><u></u></font></span></span></p><span><font color="#888888">
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Marie Rozand<u></u><u></u></span></p>
<p class="MsoNormal"><br></p></font></span></div></div></div></div></blockquote></div></div></blockquote></div></div></div></div>