[Paraview] Access to paraview pipeline

David E DeMarle dave.demarle at kitware.com
Fri May 27 10:44:41 EDT 2011


ParaView's creates its (potentially remote and parallel) VTK data processing
pipeline by creating and managing vtkSMSourceProxies (
http://www.paraview.org/doc/nightly/html/classvtkSMSourceProxy.html). Source
Proxies are what you see in the Pipeline Browser.

You can think of a source proxy as a handle to one vtkAlgorithm within the
pipeline (in practice it isn't always 1:1 but it helps to think of it that
way). The Proxy is what allows paraview to control the many parallel copies
of the vtkAlgorithm that are instantiated in the nodes of the remote server
machine. SMSourceProxy adds additional infrastructure to SMProxy to manage
vtkAlgorithm output ports so that they can be connected into a pipeline and
so that the vtkDataObjects produced by the filter can be managed.

See Qt/Core/Testing/BasicApp.cxx for a demonstration of the use of source
proxies to create a small pipeline.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


On Thu, May 26, 2011 at 5:12 PM, Bastien Purnelle <bastien911 at gmail.com>wrote:

> Hi,
>
> I want to develop an custom application based on Paraview in order to read
> a live-data from an extern C++ class and display a graphical view of this
> data.
> I have written this code thanks to an example :
>
> myMainWindow::myMainWindow(QWidget* parentObject,
>  Qt::WindowFlags wflags) : Superclass(parentObject, wflags)
> {
>  Ui::myMainWindow ui;
>  ui.setupUi(this);
>
>  // Get access to the for standard paraview views.
>  pqPluginManager* pgm = pqApplicationCore::instance()->getPluginManager();
>  pgm->addInterface(new pqStandardViewModules(pgm));
>
>  // Make a connection to the builtin server
>  pqApplicationCore* core = pqApplicationCore::instance();
>  core->getObjectBuilder()->createServer(pqServerResource("builtin:"));
>
>  // Create render view
>  pqRenderView* view = qobject_cast<pqRenderView*>(
>   pqApplicationCore::instance()->getObjectBuilder()->createView(
>     pqRenderView::renderViewType(),
>     pqActiveObjects::instance().activeServer()));
>  pqActiveObjects::instance().setActiveView(view);
>
>  // Set it as the central widget
>  this->setCentralWidget(view->getWidget());
>
>  pqApplicationCore::instance()->showOutputWindow();
> }
>
> Now I want to access to the pipeline and to put data into it. Could someone
> help me, because I don't see how to do this.
> I would like some explanation to be able to progress in my project because
> I'm stuck.
>
> Thanks in advance
>
> Bastien
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110527/83fbc927/attachment-0001.htm>


More information about the ParaView mailing list