<!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><SPAN class=640595813-04062006><FONT face=Arial
color=#0000ff size=2>with</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=640595813-04062006><FONT face=Arial
color=#0000ff size=2>vtkProcessObject* source =
(vtkProcessObject*)(aCaller);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=640595813-04062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=640595813-04062006><FONT face=Arial
color=#0000ff size=2>it works.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=640595813-04062006><FONT face=Arial
color=#0000ff size=2>any suggestion is welcome</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=640595813-04062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=it dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Da:</B> luca.picello@gmail.com
[mailto:luca.picello@gmail.com] <BR><B>Inviato:</B> domenica 4 giugno 2006
15.55<BR><B>A:</B> 'dcmlib@creatis.insa-lyon.fr'<BR><B>Oggetto:</B>
vtkGdcmReader and vtkProcessObject <BR></FONT><BR></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></BLOCKQUOTE></BODY></HTML>