[Paraview] settings and default values

Felipe Bordeu felipe.bordeu at ec-nantes.fr
Thu Jun 5 11:28:32 EDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi to all,

I have a custom filter with default values (defined in the xml). but now
I want to populate the default values from the data coming from the
plugin settings.

so a have a <ProxyGroup name="settings"> with the descriptions of my
settings window. but I don't know how to put this information into my
filter.

I'm trying something like this

vtkSMIntVectorProperty::SafeDownCast(proxy()->GetProperty("GUIMaxNbModes"))->SetElement(0,settings->value("PxdmfSettings.GUIMaxNbModes",100).toInt());

(in the constructor of a pqPropertyWidget) but I don't know if this is
the right way.

Also when I use the setting menu, my data ("GUIMaxNbModes") is written
in the ParaView4.1.0.ini AND in the UserSettings.json. Why ???

Thank to all
Felipe

- -- 
Felipe Bordeu Weldt
Ingénieur de Recherche
- -------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
Felipe.Bordeu at ec-nantes.fr
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
- -------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTkIyaAAoJEE/fMfNgU9/DKzQH/ikRCDd+/3Fu49XnZxTGrETF
98MCPlFMeYYKT9FksqcgZyKvt0qeF0uPsBpc7Dpt8yUlbWHgZ4DEQtGlZ/s/wJ1H
3a7p5Do+zd1tocjFVCvZ8JE7REjEuVBv8Furh0X5JAzVZF3YY8alkmR/MIPBBHEm
Rci7BWU2kUL6vPLV31Z0Hwl+0ksvotOJ/byM2HxBgcAFBHRVdLcN8QQYpuQGSy73
otX4m/n/9EkJmiFfsnW0cFvOq5tPiZp4x1tBYD40d6ulS6jsr1Z7+pGT/OP0ECPs
RwBzPL94kMLZtqvByjY6CmGg0sLByGDxU9M5eMjPf9cHNkc0DsT1UR3Egns7iek=
=KwyN
-----END PGP SIGNATURE-----


More information about the ParaView mailing list