<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: Filters are the computational units in VTK and ParaView. They are connected together to form pipelines. In ParaView, the available filters are listed in the Filters menu. Plugins are a mechanism to add functionality to ParaView. 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. Client-side scripting is used to automate the operations that you would typically do through the ParaView GUI. It does not really interface directly with the VTK Python wrappings that you use. 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. To use it, you basically create a Programmable Filter and throw your Python code inside it. In this form of scripting you are directly interfacing with the VTK Python wrappers. 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. It is not useful for server-side scripting because that Python code does not have access to the loaded modules. (Or at least, I don’t think that they do.)<BR>
<BR>
-Ken<BR>
<BR>
On 4/9/10 4:32 AM, "Luca Penasa" <<a href="luca.penasa@email.it">luca.penasa@email.it</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi everybody,<BR>
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>
--<BR>
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>
Sponsor:<BR>
Apri Conto Arancio entro il 28 febbraio 2010 e ricevi 50 Euro da spendere presso Media World. Aprilo adesso<BR>
Clicca qui: <a href="http://adv.email.it/cgi-bin/foclick.cgi?mid=10034&d=9-4">http://adv.email.it/cgi-bin/foclick.cgi?mid=10034&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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <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>