# Seek help! What is the replacement of the inputport and outputport classes in vtk7.1.1?

**URL:** <https://discourse.vtk.org/t/seek-help-what-is-the-replacement-of-the-inputport-and-outputport-classes-in-vtk7-1-1/4993>\
**Category:** Development\
**Created:** [January 13, 2021, 9:01am UTC](https://discourse.vtk.org/t/seek-help-what-is-the-replacement-of-the-inputport-and-outputport-classes-in-vtk7-1-1/4993 "2021-01-13T09:01:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vettle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vettle/32/3082_2.png) [@Vettle](https://discourse.vtk.org/u/Vettle)\
**Post date:** [January 13, 2021, 9:01am UTC](https://discourse.vtk.org/t/seek-help-what-is-the-replacement-of-the-inputport-and-outputport-classes-in-vtk7-1-1/4993/1 "2021-01-13T09:01:53Z")

</div>

![微信图片_20201224212234](https://discourse.vtk.org/uploads/default/original/2X/d/d3c44ba507e1134345b0a0b604fc5729449ca6e2.png)

---

<div class="post-metadata">

**Author:** ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Post date:** [January 14, 2021, 2:38am UTC](https://discourse.vtk.org/t/seek-help-what-is-the-replacement-of-the-inputport-and-outputport-classes-in-vtk7-1-1/4993/2 "2021-01-14T02:38:11Z")

</div>

I am assuming that you are upgrading to a more recent version of VTK. The VTK pipeline was complety redesigned for VTK 5 onwards.  
So:

1. You now use combinations of: `SetInput()` , `SetInputConnection()`, ` GetOutput()`, ` GetOutputPort()`
2. This may help: [Migration/Replacement of SetInput](https://vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput).
3. This section in the [VTK FAQ](https://vtk.org/Wiki/VTK/FAQ#What.27s_the_deal_with_SetInput.28.29_vs._SetInputConnection.28.29.3F) may help.

Also look at the [vtk-examples](https://kitware.github.io/vtk-examples/site/) to see the pipelines in action. These will compile with VTK 9+ and VTK 8.9.

---

<div class="post-metadata">

**Author:** ![Vettle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vettle/32/3082_2.png) [@Vettle](https://discourse.vtk.org/u/Vettle)\
**Post date:** [January 14, 2021, 8:34am UTC](https://discourse.vtk.org/t/seek-help-what-is-the-replacement-of-the-inputport-and-outputport-classes-in-vtk7-1-1/4993/3 "2021-01-14T08:34:03Z")

</div>

Thank you for your reply.,I still don’t quite understand. I’m going to write a visual parallel program according to the example in Paraview, in which the inputport and outputport classes are used for data transfer between processes. However, I can’t find these two classes and their substitutes in the new VTK version. I hope you can give some suggestions and look forward to your reply.,Thanks. ![841014d6f6f557537054dcf1a962137](https://discourse.vtk.org/uploads/default/original/2X/6/6ab5fb6e9dad8550926a5fb583e2c4dc7568e0ba.png) ![cbabd81e21da74e275450fb4e643785](https://discourse.vtk.org/uploads/default/original/2X/0/0545e530669512bc3d808aa27ffd71fbe4e514a0.png)

---

<div class="post-metadata">

**Author:** ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Post date:** [January 15, 2021, 12:18am UTC](https://discourse.vtk.org/t/seek-help-what-is-the-replacement-of-the-inputport-and-outputport-classes-in-vtk7-1-1/4993/4 "2021-01-15T00:18:36Z")

</div>

I’m not sure I can help any further. Perhaps you should be asking this question on the ParaView Discourse site. Note that `vtkOutputPort`and `vtkInputPort` were removed in VTK 5.0, however they were still in the in the VTK source distributed with an old version of ParaView (VTK 5.1.0), so these files must have been added just for ParaView.

You mention an example in ParaView, what is the link to the example? Maybe there is a more recent version of that example.

A good resource may be [here](https://www.paraview.org/documentation/).  
Also some of the tests [here](https://gitlab.kitware.com/paraview/paraview/-/tree/master/Remoting/ServerManager/Testing/Cxx) will provide you with some clues.
