<HTML>
<HEAD>
<TITLE>Re: [Paraview] How to add plug-in's parameters to ParaView state file</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I have not tried this from a plug in, but I can’t think of any reason why it would not work:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>#include "pqApplicationCore.h"<BR>
#include "pqSettings.h"<BR>
<BR>
...<BR>
<BR>
pqSettings *settings = pqApplicationCore::instance()->settings();<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
pqSettings is a subclass of QSettings (it adds a few methods for saving and restoring the positions of windows). The one returned by the pqApplicationCore singleton instance will point to ParaView’s settings file.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 1/2/11 7:04 PM, "Nenad Vujicic" <<a href="nenadus@gmail.com">nenadus@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello everyone,<BR>
<BR>
I have developed exporter plug-in for ParaView with 50+ input<BR>
parameters. At the moment, I'm setting parameters from dialog I start<BR>
on menu action and preserve their values between ParaView sessions by<BR>
using QSettings object. Is it possible to save these values in<BR>
ParaView state files without changing ParaView main sources?<BR>
<BR>
Thanks,<BR>
Nenad.<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>