<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Dear All</div><div class="gmail_default" style="font-family:verdana,sans-serif">After a long time I am using VTK. I had been using vtk5 and now changed vtk6. I just built it with MSVS 2010 and using it with Qt4.8.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">>From the migration guide I came to know that the vtk modules needs to be initialized before adding any vtk headers. I want to use vtkGDCMImageReader and it seem to be in the vtkDICOMParser module.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I tried to initialize it like this, but it does not work</div><div class="gmail_default" style="font-family:verdana,sans-serif">
<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#define</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">vtkDICOMParser_AUTOINIT</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">2</span><span style="color:rgb(0,0,0)">(</span>vtkSys<span style="color:rgb(0,0,0)">,</span>vtkDICOMParser<span style="color:rgb(0,0,0)">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">and also like this</span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><pre style="padding:1em;border:1px dashed rgb(47,111,171);color:rgb(0,0,0);background-color:rgb(249,249,249);line-height:1.1em">
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkDiocmParser);</pre></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial">Any ideas?</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial"><br>
</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial">Thanks in advance</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="font-family:arial"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial">Jothybasu K Selvaraj</span></pre></div><div><div dir="ltr"><div>Post Doctoral Fellow</div><div>
Dept. of Radiotherapy</div><div>Netherlands Cancer Institute-Antoni van Leeuwenhoek</div><div>Amsterdam<br><br></div></div></div>
</div>