[Paraview] How to add plug-in's parameters to ParaView state file

Moreland, Kenneth kmorel at sandia.gov
Mon Jan 3 11:03:08 EST 2011


I have not tried this from a plug in, but I can't think of any reason why it would not work:

#include "pqApplicationCore.h"
#include "pqSettings.h"

...

pqSettings *settings = pqApplicationCore::instance()->settings();

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.

-Ken


On 1/2/11 7:04 PM, "Nenad Vujicic" <nenadus at gmail.com> wrote:

Hello everyone,

I have developed exporter plug-in for ParaView with 50+ input
parameters. At the moment, I'm setting parameters from dialog I start
on menu action and preserve their values between ParaView sessions by
using QSettings object. Is it possible to save these values in
ParaView state files without changing ParaView main sources?

Thanks,
Nenad.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview




   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110103/a1db77ee/attachment.htm>


More information about the ParaView mailing list