[Dcmlib] vtkGdcmReader and vtkProcessObject

luca.picello at libero.it luca.picello at libero.it
Sun Jun 4 16:02:43 CEST 2006


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


  _____  

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/e9e07646/attachment.html>


More information about the Dcmlib mailing list