[Dcmlib] vtkGdcmReader and vtkProcessObject

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Jun 5 15:47:14 CEST 2006


luca.picello at gmail.com wrote:
> adding the progress observer with:
>   dicom_reader->AddObserver(vtkCommand::ProgressEvent,progressBar);
>  
> the following callback is called while updating:
>   void  Execute (vtkObject* aCaller, unsigned long aEID, void* aCallData)
>   {
>     vtkProcessObject* source = vtkProcessObject::SafeDownCast(aCaller);
>   }
>  
> BUT
> the SafeDownCast call returns 0. Why?
> Any idea?
>  
> Luca
>  
> ps: this code was working with vtk4.4


By *any* chance could this be because vtkImageReader is not a subclass 
of vtkProcessObject ;-P

http://www.vtk.org/doc/nightly/html/classvtkImageReader.html

Mathieu
Ps: Thankfully your compiler is doing the right thing, and protected you !



More information about the Dcmlib mailing list