<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=391405216-05062006>A cast to vtkAlgorithm is neither needed by
using:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=391405216-05062006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=391405216-05062006> vtkGdcmReader* source =
vtkGdcmReader::SafeDownCast(aCaller);<BR> if( source != NULL
)<BR> ProgressBarValue = source->GetProgress()
* 100;<BR></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=391405216-05062006>Luca</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=391405216-05062006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=391405216-05062006>thanks all for your infinite
patience</DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=391405216-05062006> </DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=391405216-05062006></SPAN></FONT> </DIV><FONT face=Arial
color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE
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
[mailto:luca.picello@gmail.com] <BR><B>Inviato:</B> luned́ 5 giugno 2006
17.35<BR><B>A:</B> Mathieu Malaterre<BR><B>Cc:</B>
dcmlib@creatis.insa-lyon.fr<BR><B>Oggetto:</B> Re: [Dcmlib] R: vtkGdcmReader
and vtkProcessObject<BR></FONT><BR></DIV>
<DIV></DIV>errata corrige:<BR><BR>casting 'source' pointer makes it possible
to access (without any error) to all vtkAlgorithm methods. <BR><BR><BR>
<DIV><SPAN class=gmail_quote>On 6/5/06, <B class=gmail_sendername>Luca
Picello</B> <<A
href="mailto:luca.picello@gmail.com">luca.picello@gmail.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>well well well...<BR>I will change compiler when I'll open my fabulous
restaurant at carabbeans ;-)<BR>anyway even if I understand your point of
view, I have the reason why it works with BCB and it seems (to me at least)
to be reasonable. <BR><BR>both vtkProcessObject and vtkImageReader (then
vtkGdcmReader) are derived from vtkAlgorithm where the method GetProgress()
is implemented.<BR><BR>casting 'source' pointer makes it possible to access
(without any error) to all vtkImageAlgorithm methods. <BR>Now you make me
note it, I know it is wrong. Indeed I'll have to try a safedowncast to
vtkAlgorithm which should be the right cast I need for a clean
source.<BR>when I'll be at home I'll check it, if it is true and if it
really works. <BR><BR>thanks, as usual, for your support<BR>Luca</DIV>
<DIV><SPAN class=e id=q_10ba4d3ae7d1aeac_1><BR><BR><BR><BR>
<DIV><SPAN class=gmail_quote>On 6/5/06, <B class=gmail_sendername>Mathieu
Malaterre</B> <<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:mathieu.malaterre@kitware.com" target=_blank>
mathieu.malaterre@kitware.com </A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:luca.picello@gmail.com"
target=_blank>luca.picello@gmail.com</A> wrote: <BR>> with<BR>>
vtkProcessObject* source = (vtkProcessObject*)(aCaller);<BR>><BR>>
it works.<BR>> any suggestion is welcome<BR><BR>Change your compiler !
This can't be or this is simply an adress (a<BR>void* basically) and you
cannot use it as a ProcessObject anyway. <BR><BR>See:<BR><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.vtk.org/doc/nightly/html/classvtkProcessObject.html"
target=_blank>http://www.vtk.org/doc/nightly/html/classvtkProcessObject.html
</A><BR><BR>It's a leaf, nothing derives from it in VTK
5.x<BR><BR>Mathieu<BR><BR></BLOCKQUOTE></DIV><BR></SPAN></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>