<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi guys, </p>
<p><br>
</p>
<p>I apologize if this is a basic question, I'm new to VTK and I'm trying to port some VTK code from version 5.x to version 6.x</p>
<p><br>
</p>
<p>I'm facing various errors regarding GetProducerPort's removal from vtkDataObject. I know that I should be replacing
<code>someAlgorithm->SetInputConnection(someDataObject->GetProducerPort());</code><br>
by <code>someAlgorithm->SetInputData(someDataObject);</code></p>
<p><br>
</p>
<p>but the code I have is a bit different, such as:<br>
<code>someAlgorithm->SetNthInputConnection(port, index, someDataObject->GetProducerPort());</code></p>
<p><br>
<code></code></p>
<p>I thought about looking for some <code>SetNthInputData</code> method that takes as arguments a port and an index and could solve my problem, but haven't found anything that useful. I did find a method called
<code>SetInputDataObject(int port, vtkDataObject *data)</code> that has the port, but not the index.</p>
<p><br>
</p>
<p>Is there a way that I can port this part of my code? Is there a reason that <code>
SetInputData</code> methods don't have indices as arguments?</p>
<p><br>
</p>
<p>I have talked to the author of the code I'm porting and I know that in some cases I don't need to specify the port, only the input index. Is there a method that does that?
</p>
<p><br>
</p>
<p>Thank you for your attention!<br>
</p>
</div>
</body>
</html>