I am fine with making this change with the exception of calling it "SetInputData". The moment you did that, you will start seeing hidden method warning in all subclasses that define SetInputData with another type as input. SetInputDataObject? SetInputDataAsDataObject?<div>
<br></div><div>-berk<br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 6:29 PM, Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here is a example, which may not be very common, but I had it in my code...<br><br>void foo(vtkAlgorithm* aFilter, vtkDataObject* aData)<br>{<br>  vtkDataObject* aDataCopy = copyData(aData);<br>  aFilter->SetInputConnection(aDataCopy->GetProducerPort());<br>


  ...<br>}<br><br>In VTK 6, I can't find a generic way to connect a data object to an algorithm.<br>I have to create a trivial producer (reimplement vtkAlgorithm::SetInputDataInternal)<br><br>I'm curious if there is a reason not to change protected SetInputDataInternal to public SetInputData?<br>


<br>Most subclasses define SetInputData as:<br><br>void vtkPolyDataAlgorithm::SetInputData(int index, vtkDataObject* input)<br>{<br>  this->SetInputDataInternal(index, input);<br>}<span class="HOEnZb"><font color="#888888"><br>
<br><br>Pat<br>
</font></span><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://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>