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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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 href="mailto:mathieu.malaterre@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mathieu.malaterre@kitware.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><a href="mailto:luca.picello@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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 href="http://www.vtk.org/doc/nightly/html/classvtkProcessObject.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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>