ParaView's creates its (potentially remote and parallel) VTK data processing pipeline by creating and managing vtkSMSourceProxies (<a href="http://www.paraview.org/doc/nightly/html/classvtkSMSourceProxy.html">http://www.paraview.org/doc/nightly/html/classvtkSMSourceProxy.html</a>). Source Proxies are what you see in the Pipeline Browser.<div>
<br></div><div>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.<div>
<br></div><div>See Qt/Core/Testing/BasicApp.cxx for a demonstration of the use of source proxies to create a small pipeline.<br><div><div><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Thu, May 26, 2011 at 5:12 PM, Bastien Purnelle <span dir="ltr"><<a href="mailto:bastien911@gmail.com">bastien911@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
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.<br>
I have written this code thanks to an example :<br>
<br>
myMainWindow::myMainWindow(QWidget* parentObject,<br>
Qt::WindowFlags wflags) : Superclass(parentObject, wflags)<br>
{<br>
Ui::myMainWindow ui;<br>
ui.setupUi(this);<br>
<br>
// Get access to the for standard paraview views.<br>
pqPluginManager* pgm = pqApplicationCore::instance()->getPluginManager();<br>
pgm->addInterface(new pqStandardViewModules(pgm));<br>
<br>
// Make a connection to the builtin server<br>
pqApplicationCore* core = pqApplicationCore::instance();<br>
core->getObjectBuilder()->createServer(pqServerResource("builtin:"));<br>
<br>
// Create render view<br>
pqRenderView* view = qobject_cast<pqRenderView*>(<br>
pqApplicationCore::instance()->getObjectBuilder()->createView(<br>
pqRenderView::renderViewType(),<br>
pqActiveObjects::instance().activeServer()));<br>
pqActiveObjects::instance().setActiveView(view);<br>
<br>
// Set it as the central widget<br>
this->setCentralWidget(view->getWidget());<br>
<br>
pqApplicationCore::instance()->showOutputWindow();<br>
}<br>
<br>
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.<br>
I would like some explanation to be able to progress in my project because I'm stuck.<br>
<br>
Thanks in advance<br>
<br>
Bastien<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>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div></div></div></div>