[Paraview-developers] default value initializer

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Jan 3 08:17:16 EST 2011


Stephane,

At some point during the construction of a proxy by ParaView, it calls
vtkSMProperty::ResetToDefault() on every property. Internally this method
either passes it to the domain for handling, using
vtkSMDomain::SetDefaultValues() or if the domain does not handle it, resets
the property to the default specified in the xml, if applicable. Domains can
mechanisms like RequriedProperties to collect informations about input size,
number of points in input etc. and the set the default value appropriately.
If none of the standard domains can do what you need, you can always create
a new domain.

There's no mechanism to define a Python script to set the default value
currently.

Utkarsh

2011/1/3 Stephane PLOIX <stephane.ploix at edf.fr>

>
> Hi,
>
> Is there a way to define a function that would be called on the proxy to
> set the default value of a property?
> Even better would be a way to define a python script to set this default
> value so that it is not necessary to create a c++ proxy class for this.
> Typical use case is when this default value depends on some other property
> (like the size of the dataset or its number of points).
>
> Best regards and happy new year to all!
> Stephane
>       *Stephane PLOIX**
> Pilote Opérationnel - Visualisation scientifique*
> EDF - R&D
> SINETICS
> 1, Av du Général de Gaulle
> 92140 Clamart
>
> *stephane.ploix at edf.fr*
> Tél. : +33 (0) 1 47 65 51 10   Un geste simple pour l'environnement,
> n'imprimez ce message que si vous en avez l'utilité.
>
>
>
> Ce message et toutes les pièces jointes (ci-après le 'Message') sont
> établis à l'intention exclusive des destinataires et les informations qui y
> figurent sont strictement confidentielles. Toute utilisation de ce Message
> non conforme à sa destination, toute diffusion ou toute publication totale
> ou partielle, est interdite sauf autorisation expresse.
>
> Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de
> le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou
> partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de
> votre système, ainsi que toutes ses copies, et de n'en garder aucune trace
> sur quelque support que ce soit. Nous vous remercions également d'en avertir
> immédiatement l'expéditeur par retour du message.
>
> Il est impossible de garantir que les communications par messagerie
> électronique arrivent en temps utile, sont sécurisées ou dénuées de toute
> erreur ou virus.
> ____________________________________________________
>
> This message and any attachments (the 'Message') are intended solely for
> the addressees. The information contained in this Message is confidential.
> Any use of information contained in this Message not in accord with its
> purpose, any dissemination or disclosure, either whole or partial, is
> prohibited except formal approval.
>
> If you are not the addressee, you may not copy, forward, disclose or use
> any part of it. If you have received this message in error, please delete it
> and all copies from your system and notify the sender immediately by return
> message.
>
> E-mail communication cannot be guaranteed to be timely secure, error or
> virus-free.
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20110103/c8cde604/attachment.htm>


More information about the Paraview-developers mailing list