# How to get parent/child pqPipelineSource objects in the Pipeline Broswer in c++?

**URL:** https://discourse.paraview.org/t/how-to-get-parent-child-pqpipelinesource-objects-in-the-pipeline-broswer-in-c/9146
**Category:** ParaView Support
**Created:** [March 9, 2022, 1:30am UTC](https://discourse.paraview.org/t/how-to-get-parent-child-pqpipelinesource-objects-in-the-pipeline-broswer-in-c/9146 "2022-03-09T01:30:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Cam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cam/32/8343_2.png) [@Cam](https://discourse.paraview.org/u/Cam)
#### Post date: [March 9, 2022, 1:30am UTC](https://discourse.paraview.org/t/how-to-get-parent-child-pqpipelinesource-objects-in-the-pipeline-broswer-in-c/9146/1 "2022-03-09T01:30:48Z")

</div>

```auto
    pqApplicationCore* core = pqApplicationCore::instance();
    pqServerManagerModel* smmodel = core->getServerManagerModel();
    QList<pqPipelineSource*> items = smmodel->findChildren<pqPipelineSource*>();
    for (int i = 0; i < items .length(); ++i)
    {
      auto source = items.at(i);
      char* XMLName = source->getProxy()->GetXMLName();
      if (strcmp(XMLName, "Transform") == 0)
      {
        // found the transform filter here
        // but how to find its input in the tree (which is either the cube or cone)? 
      }
    }

```

![image](https://discourse.paraview.org/uploads/default/original/2X/0/02ad3b0fdb2f3f36ca074cc4bed45319f395f539.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 9, 2022, 8:48am UTC](https://discourse.paraview.org/t/how-to-get-parent-child-pqpipelinesource-objects-in-the-pipeline-broswer-in-c/9146/2 "2022-03-09T08:48:29Z")

</div>

child is easy, use `getConsumer`. Getting the parent is not as easy and needs to use

`getProxy()->GetProducerProxy()`
