Yes, I have done that in my .cxx file, but it doesn't work...<br>I also found a strange phenomenon. When I include the header files for DICOMParser and DICOMAppHelper in
the header file of my class, I got an error said "it can't find those
header files".<br><br>I am wondering if this is related to the paraview plug-in CMake file. I use the following code in the CMake file to link the paraview (vtk) library:<br>FIND_PACKAGE(ParaView REQUIRED)<br>INCLUDE(${PARAVIEW_USE_FILE})<br>
<br>Maybe this isn't enough to link the DICOMParser and DICOMAppHelper in paraview? <br>Thanks,<br><br>Biao<br><br><br><br><div class="gmail_quote">On Mon, Mar 9, 2009 at 12:23 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In your .cxx file add #include "vtkDICOMImageReaderVector.h" and the other classes that are just forward declared in the header file.<br>
<br>
_________________________________________________________<br>
Mike Jackson <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer Dayton, Ohio<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Mar 9, 2009, at 2:17 PM, Biao She wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hi everyone. This might be a silly question, but I am really confused.<br>
I am writing a class inherites from vtkDICOMImageReader. In the header file of vtkDICOMImageReader class, there are some forward declaration of these classes: vtkDICOMImageReaderVector, DICOMParser and DICOMAppHelper. The definition of these classes are included in the .cxx file. Normally, I should be able to use the methods in those classes in my class. However, I found that whenever I want to use something like "this->Parser->ClearAllDICOMTagCallbacks()" in my class. The compiler gives me back an error says that "invalid use of undefined type 'structure DICOMParser". In the above, "Parser" is an instance of DICOMParser. The same situation also happen to DICOMAppHelper and vtkDICOMImageReaderVector.<br>
Thanks very much for any of your help.<br>
<br>
Biao<br></div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>She, Biao<br>Department of Computing Science,<br>University of Alberta, Edmonton, Canada<br>