<div dir="ltr">vtkAlgorithm* pAlgorithm = aTexture->GetInputAlgorithm();<div><br></div><div>-berk</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 22, 2014 at 12:53 PM, filez41 <span dir="ltr"><<a href="mailto:tom.valleau@gmail.com" target="_blank">tom.valleau@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey all, I posted this a week ago but in the email blast the code was left<br>
out.  I'm hoping including the code and rephrasing the question will help.<br>
<br>
I'm upgrading some code from 5.6 to 6.1, and the GetProducerPort has been<br>
deprecated.  We were using it in a few places, and I've been trying to<br>
repeat the results we were getting with 5.6 following this deprecated code<br>
guide:<br>
<a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_GetProducerPort" target="_blank">http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_GetProducerPort</a><br>
It hasn't been helpful because that's not how it was being used.<br>
<br>
Old Code:<br>
        vtkImageData * pImageData = aTexture->GetImageDataInput(0);<br>
        vtkAlgorithmOutput * pAlgorithmOutput =<br>
pImageData->GetProducerPort();<br>
        vtkAlgorithm * pAlgorithm = pAlgorithmOutput->GetProducer()<br>
<br>
New Code (*not working*):<br>
        vtkImageData * pImageData = aTexture->GetImageDataInput(0);<br>
        vtkAlgorithm * pAlgorithm = vtkAlgorithm::New();<br>
        pAlgorithm->SetInputDataObject(pImageData);<br>
<br>
Reading the code more closely I can understand why the attempted code is not<br>
working, but I can't figure out how to replicate the old results without<br>
that function.<br>
<br>
The goal is to get a vtkAlgorithm out of a vtkDataObject (in this case a<br>
vtkImageData).  Before we were getting the producer port (a<br>
vtkAlgorithmOutput) and passing it's producer off to a vtkAlgorithm.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Deprecated-GetProducerPort-tp5729205.html" target="_blank">http://vtk.1045678.n5.nabble.com/Deprecated-GetProducerPort-tp5729205.html</a><br>
Sent from the VTK - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div>