<HTML>
<HEAD>
<TITLE>Re: Loading a filter plugin (Was: Collecting slices in a contour plot)</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hmmm. &nbsp;The most likely culprit would be that the loader cannot find all the dependent libraries for the plugin. &nbsp;What does otool &#8211;L report are the dependent libraries for the plugin. &nbsp;(Make sure you are using the same environment ParaView is run in.)<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 5/15/09 7:29 AM, &quot;Daniele Avitabile&quot; &lt;<a href="d.avitabile@gmail.com">d.avitabile@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Dear Ken,<BR>
<BR>
I have recompiled Paraview with the Debug flag specified (the same for the plugin), and I am sure I am launching the appropriate Paraview compilation. I obtain the following error:<BR>
<BR>
QLibrary::loady_sys:Cannot load libMergeTimeStepsSMPlugin<BR>
<BR>
During compilation, I receive a Warning about the fact that I am using Qt 4.4<BR>
<BR>
Best.<BR>
<BR>
Daniele<BR>
<BR>
On Tue, May 12, 2009 at 5:36 PM, Moreland, Kenneth &lt;<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Daniele,<BR>
<BR>
Are you running the ParaView you compiled from scratch or the binary you downloaded?  It probably will not work to try to load the plugin into the distribured binary.<BR>
<BR>
If you cannot load the plugin into the ParaView you compiled from scratch, try compiling both ParaView and the plugin with the CMAKE_BUILD_TYPE CMake variable set to Debug.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 5/12/09 4:27 AM, &quot;Daniele Avitabile&quot; &lt;<a href="d.avitabile@gmail.com">d.avitabile@gmail.com</a> &lt;<a href="http://d.avitabile@gmail.com">http://d.avitabile@gmail.com</a>&gt; &gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Dear Ken,<BR>
<BR>
thanks very much for your help. I am on Mac OS X Leopard on Intel. I did not know how to add a new filter to Paraview, and here is what I have done<BR>
<BR>
1) I have compiled Paraview from scratch<BR>
2) I have run ccmake and then make on the filter you gave me<BR>
3) I have now a libMergeTimeStepsSMPlugin.dylib<BR>
<BR>
I open Paraview and try to load the new plugin via the plugin manager. I receive the error message &quot;The file libMergeTimeStepsSMPlugin.dylib&quot; is not a valid Qt plugin. I am using Qt 4.4 <BR>
<BR>
Do you know what should I do?<BR>
<BR>
Best.<BR>
<BR>
Daniele<BR>
<BR>
On Mon, May 4, 2009 at 6:52 PM, Moreland, Kenneth &lt;<a href="kmorel@sandia.gov">kmorel@sandia.gov</a> &lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; &gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>The VTK time support is documented in a 2007 IEEE Vis paper.  I don&#8217;t know if it is documented any better elsewhere.  You can get the paper from here.<BR>
<BR>
  <a href="http://www.cs.unm.edu/~kmorel/documents/TimeVis-IEEE2007.html">http://www.cs.unm.edu/~kmorel/documents/TimeVis-IEEE2007.html</a> &lt;<a href="http://www.cs.unm.edu/%7Ekmorel/documents/TimeVis-IEEE2007.html">http://www.cs.unm.edu/%7Ekmorel/documents/TimeVis-IEEE2007.html</a>&gt; &nbsp;&lt;<a href="http://www.cs.unm.edu/%7Ekmorel/documents/TimeVis-IEEE2007.html">http://www.cs.unm.edu/%7Ekmorel/documents/TimeVis-IEEE2007.html</a>&gt; <BR>
<BR>
I also implemented a very simple filter to merge the time steps like you want.  The source, complete with plugin, is attached to this message.  The attachment may or may not make it to the paraview users&#8217; list.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
<BR>
On 5/4/09 10:41 AM, &quot;Daniele Avitabile&quot; &lt;<a href="d.avitabile@gmail.com">d.avitabile@gmail.com</a> &lt;<a href="http://d.avitabile@gmail.com">http://d.avitabile@gmail.com</a>&gt; &nbsp;&lt;<a href="http://d.avitabile@gmail.com">http://d.avitabile@gmail.com</a>&gt; &gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thank you for your prompt reply. Is there somewhere when I can learn how to do such filter? <BR>
<BR>
Thanks in advance.<BR>
<BR>
Daniele<BR>
<BR>
On Mon, May 4, 2009 at 4:28 PM, Moreland, Kenneth &lt;<a href="kmorel@sandia.gov">kmorel@sandia.gov</a> &lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; &nbsp;&lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; &gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Another potential solution is to make a filter that loads all the timesteps from the upstream pipeline and merge their geometry together.  No such filter exists right now, but it would be straightforward to implement.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
<BR>
On 5/2/09 6:35 PM, &quot;Berk Geveci&quot; &lt;<a href="berk.geveci@kitware.com">berk.geveci@kitware.com</a> &lt;<a href="http://berk.geveci@kitware.com">http://berk.geveci@kitware.com</a>&gt; &nbsp;&lt;<a href="http://berk.geveci@kitware.com">http://berk.geveci@kitware.com</a>&gt;  &lt;<a href="http://berk.geveci@kitware.com">http://berk.geveci@kitware.com</a>&gt; &gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Wouldn't it be easier to treat z as t. So instead of multiple vtk<BR>
files, you could create one vtk file where the third axis represents<BR>
time. You could then use slice or extract subset filters to get the<BR>
plane that you want. You can do something similar for a file series<BR>
but you would have to write a custom filter in C++ (Python would not<BR>
do).<BR>
<BR>
-berk<BR>
<BR>
On Sun, Apr 26, 2009 at 4:37 AM, Daniele Avitabile<BR>
&lt;<a href="d.avitabile@gmail.com">d.avitabile@gmail.com</a> &lt;<a href="http://d.avitabile@gmail.com">http://d.avitabile@gmail.com</a>&gt; &nbsp;&lt;<a href="http://d.avitabile@gmail.com">http://d.avitabile@gmail.com</a>&gt;  &lt;<a href="http://d.avitabile@gmail.com">http://d.avitabile@gmail.com</a>&gt; &gt; wrote:<BR>
&gt; Hi all, I have a field u(x,y,t), stored in a set of .vtk files (one for each<BR>
&gt; time steps). What I need to do is the following,<BR>
&gt;<BR>
&gt; 1) At each time steps, cut a slice, say through y=0, so as to have a set of<BR>
&gt; curves<BR>
&gt;     u(x,0,t1)<BR>
&gt;     u(x,0,t2)<BR>
&gt;     u(x,0,t3) ...<BR>
&gt;<BR>
&gt; 2) build a contour plot of the surface formed by stacking the above lines on<BR>
&gt; top of each other<BR>
&gt;<BR>
&gt; Is there a filter for that or do I have to write a python script? If I have<BR>
&gt; to use python, can you give me an idea of how to do that?<BR>
&gt;<BR>
&gt; Thanks<BR>
&gt;<BR>
&gt; Daniele<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Powered by www.kitware.com &lt;<a href="http://www.kitware.com">http://www.kitware.com</a>&gt; &nbsp;&lt;<a href="http://www.kitware.com">http://www.kitware.com</a>&gt;  &lt;<a href="http://www.kitware.com">http://www.kitware.com</a>&gt; <BR>
&gt;<BR>
&gt; Visit other Kitware open-source projects at<BR>
&gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
&gt;<BR>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<BR>
&gt; <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
&gt;<BR>
&gt; Follow this link to subscribe/unsubscribe:<BR>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
&gt;<BR>
&gt;<BR>
_______________________________________________<BR>
Powered by www.kitware.com &lt;<a href="http://www.kitware.com">http://www.kitware.com</a>&gt; &nbsp;&lt;<a href="http://www.kitware.com">http://www.kitware.com</a>&gt;  &lt;<a href="http://www.kitware.com">http://www.kitware.com</a>&gt; <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> &lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; &nbsp;&lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt;  &lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; <BR>
**  ***  **  phone: (505) 844-8919<BR>
    ***      web:   <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> &lt;<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>&gt; &nbsp;&lt;<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>&gt;  &lt;<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>&gt; <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><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> &lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; &nbsp;&lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; <BR>
**  ***  **  phone: (505) 844-8919<BR>
    ***      web:   <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> &lt;<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>&gt; &nbsp;&lt;<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>&gt; <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><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> &lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; <BR>
**  ***  **  phone: (505) 844-8919<BR>
    ***      web:   <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> &lt;<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>&gt; <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><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>