[vtkusers] GetOutput & GetOuputPort

Amy Squillacote amy.squillacote at kitware.com
Wed Mar 29 10:17:11 EST 2006


At 10:12 AM 3/29/2006, bailleul jonathan wrote:
>B.J.Prosser at cs.cardiff.ac.uk wrote:
>>This may seem like a simple question but ive been reading through 
>>the vtk book
>>and the online documentation but i dont really understand the difference
>>between GetOutput and GetOutputPort. Specifically i am trying to use the ICP
>>algorithm to match two data sets and i need to transform the second to get it
>>closer.
>>im transforming an obj file data set with:
>>vtkTransformPolyDataFilter tpdf1
>>         tpdf1 SetInputConnection [obj1 GetOutputPort]
>>         tpdf1 SetTransform t1
>>then i need to use this transformed data in the ICP algorithm which i need to
>>use:
>>         icp1 SetTarger [somedata GetOutput]
>>but when i use
>>         icp1 SetTarget [tpdf1 GetOutput]
>>i am told that 'Can't execute with NULL or empty target' but i dont 
>>understand
>>why it would be null ?
>>_______________________________________________
>>This is the private VTK discussion list. Please keep messages 
>>on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>my two euro-cents:
>
>Maybe I'm missing the point, but it seems that old versions of tcl 
>examples tend to use SetInputConnection instead of SetInput, and 
>GetOutputPort instead of GetOutput. Many errors can be avoided in 
>systematically converting these names (sed, search-replace, etc)...
>
>
>Best regards,

Actually, the SetInputConnection and GetOutputPort methods were 
introduced with the redesign of the VTK pipeline architecture.  It is 
preferable in the current VTK to use SetInputConnection and 
GetOutputPort instead of SetInput and GetOutput.

- Amy 




More information about the vtkusers mailing list