<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=734385113-04062006>adding the progress
observer with:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=734385113-04062006>
dicom_reader->AddObserver(vtkCommand::ProgressEvent,progressBar);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=734385113-04062006><FONT face=Arial size=2>the following
callback is called while updating:</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2> void Execute (vtkObject* aCaller,
unsigned long aEID, void* aCallData)<BR> {<BR>
vtkProcessObject* source = vtkProcessObject::SafeDownCast(aCaller);</DIV></FONT>
<DIV><FONT face=Arial size=2><SPAN class=734385113-04062006>
}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=734385113-04062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=734385113-04062006>BUT</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=734385113-04062006>the SafeDownCast
call returns 0. Why?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=734385113-04062006>Any
idea?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=734385113-04062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=734385113-04062006>Luca</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=734385113-04062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=734385113-04062006>ps: this code was
working with vtk4.4</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=734385113-04062006></SPAN></FONT> </DIV></BODY></HTML>