[Dcmlib] R: vtkGdcmReader and vtkProcessObject

luca.picello at gmail.com luca.picello at gmail.com
Sun Jun 4 15:59:49 CEST 2006


with
vtkProcessObject* source = (vtkProcessObject*)(aCaller);
 
it works.
any suggestion is welcome
 


  _____  

Da: luca.picello at gmail.com [mailto:luca.picello at gmail.com] 
Inviato: domenica 4 giugno 2006 15.55
A: 'dcmlib at creatis.insa-lyon.fr'
Oggetto: vtkGdcmReader and vtkProcessObject 


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
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20060604/ce574b09/attachment.html>


More information about the Dcmlib mailing list