[Paraview] Question about inheritance in paraview(vtk)

Michael Jackson mike.jackson at bluequartz.net
Mon Mar 9 16:28:18 EDT 2009


Are you including the paths to the DICOMParser and DICOMAppHelper  
header files? Can you do a "make VERBOSE=1"  to see the entire compile  
command? Maybe it is not getting included properly for some reason.

_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Mar 9, 2009, at 2:47 PM, Biao She wrote:

> Yes, I have done that in my .cxx file, but it doesn't work...
> 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".
>
> 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:
> FIND_PACKAGE(ParaView REQUIRED)
> INCLUDE(${PARAVIEW_USE_FILE})
>
> Maybe this isn't enough to link the DICOMParser and DICOMAppHelper  
> in paraview?
> Thanks,
>
> Biao
>
>
>
> On Mon, Mar 9, 2009 at 12:23 PM, Michael Jackson <mike.jackson at bluequartz.net 
> > wrote:
> In your .cxx file add #include "vtkDICOMImageReaderVector.h" and the  
> other classes that are just forward declared in the header file.
>
> _________________________________________________________
> Mike Jackson                  mike.jackson at bluequartz.net
> BlueQuartz Software                    www.bluequartz.net
> Principal Software Engineer                  Dayton, Ohio
>
>
>
>
> On Mar 9, 2009, at 2:17 PM, Biao She wrote:
>
> Hi everyone. This might be a silly question, but I am really confused.
> 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.
> Thanks very much for any of your help.
>
> Biao
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
>
>
> -- 
> She, Biao
> Department of Computing Science,
> University of Alberta, Edmonton, Canada



More information about the ParaView mailing list