<HTML>
<HEAD>
<TITLE>Re: [Paraview] Some information about extending paraview functionalities</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Difference between filters and plugins: &nbsp;Filters are the computational units in VTK and ParaView. &nbsp;They are connected together to form pipelines. &nbsp;In ParaView, the available filters are listed in the Filters menu. &nbsp;Plugins are a mechanism to add functionality to ParaView. &nbsp;That often includes adding filters to the Fitlers menu, but could also include a number of other things such as new menus, views, or python scripts.<BR>
<BR>
In ParaView there are actually two distinct versions of Python scripting which I usually labels as client-side scripting and server-side scripting. &nbsp;Client-side scripting is used to automate the operations that you would typically do through the ParaView GUI. &nbsp;It does not really interface directly with the VTK Python wrappings that you use. &nbsp;Client-side scripting is described on this Wiki page: <a href="http://www.paraview.org/Wiki/ParaView/Python_Scripting">http://www.paraview.org/Wiki/ParaView/Python_Scripting</a><BR>
<BR>
Server-side scripting is run directly in the pipeline via the Programmable Filter. &nbsp;To use it, you basically create a Programmable Filter and throw your Python code inside it. &nbsp;In this form of scripting you are directly interfacing with the VTK Python wrappers. &nbsp;Server-side scripting is described on this Wiki page: <a href="http://www.paraview.org/Wiki/Python_Programmable_Filter">http://www.paraview.org/Wiki/Python_Programmable_Filter</a><BR>
<BR>
The plugin page concerning embedding Python that you pointed to is a convenience for plugins that provide or use client-side scripts. &nbsp;It is not useful for server-side scripting because that Python code does not have access to the loaded modules. &nbsp;(Or at least, I don&#8217;t think that they do.)<BR>
<BR>
-Ken<BR>
<BR>
On 4/9/10 4:32 AM, &quot;Luca Penasa&quot; &lt;<a href="luca.penasa@email.it">luca.penasa@email.it</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi everybody,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Maybe some of my question could be answered with some 'googling', but i<BR>
would like to make the point on some problems i have encountered. Thanks<BR>
to everybody!<BR>
<BR>
this is my problem:<BR>
<BR>
In the last months i learned the basis of the vtk library (that is<BR>
simply a wonderful tool!!) and i am using the python wrappings for my<BR>
applications. I have writed a python module with several functions for<BR>
doing operations on point clouds.<BR>
<BR>
At this point i am using paraview ONLY for view the results of my python<BR>
code...<BR>
<BR>
Now i would like to make a step forward, and begin to implement my code<BR>
into the paraview gui, maybe as a filter or plugin (sorry, but i did not<BR>
clearly understand the difference!?), so i could import my data in<BR>
paraview and do the same operations i am currently doing from the python<BR>
shell. It would be great if i could extend paraview-gui functionalities<BR>
for setting the parameters and execute the functions i writed in<BR>
python...<BR>
<BR>
So i found this page:<BR>
<a href="http://www.cmake.org/Wiki/Plugin_HowTo#Embedding_Python_Source_as_Modules">http://www.cmake.org/Wiki/Plugin_HowTo#Embedding_Python_Source_as_Modules</a><BR>
<BR>
but i cannot understand if what i want to do is actually possible or<BR>
not..<BR>
<BR>
Anybody can give me some clarifications?<BR>
If it is possible, is there a place where to find some examples?<BR>
<BR>
Sorry for my english, i hope you understand what i mean!<BR>
<BR>
Thank you!<BR>
<BR>
--<BR>
---------------------------<BR>
Luca Penasa<BR>
Student at Geosciences Dpt.<BR>
University of Padua (IT)<BR>
<a href="luca.penasa@email.it">luca.penasa@email.it</a><BR>
---------------------------<BR>
<BR>
<BR>
<BR>
&nbsp;--<BR>
&nbsp;Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it <a href="http://www.email.it/f">http://www.email.it/f</a><BR>
<BR>
&nbsp;Sponsor:<BR>
&nbsp;Apri Conto Arancio entro il 28 febbraio 2010 e ricevi 50 Euro da spendere presso Media World. Aprilo adesso<BR>
&nbsp;Clicca qui: <a href="http://adv.email.it/cgi-bin/foclick.cgi?mid=10034&amp;d=9-4">http://adv.email.it/cgi-bin/foclick.cgi?mid=10034&amp;d=9-4</a><BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>