[Paraview] How to set properties of custom vtkSMProxies (python)?

David E DeMarle dave.demarle at kitware.com
Mon Dec 5 09:26:42 EST 2016


Try adding a Property element to the xml.

On Sat, Dec 3, 2016 at 12:09 PM, Mario Schreiber <schreibermario40 at gmail.com
> wrote:

...


> class vtkMyObject : public vtkObject
> {
>   public:
>
...

>
>     vtkGetMacro(MyProperty,double);
>     vtkSetMacro(MyProperty,double);
>
>
To make that callable by ParaView:

4. MyConfig.xml:
<ServerManagerConfiguration>
  <ProxyGroup name="my">
   <Proxy name="MyObject" class="vtkMyObject"
label="MyObject">

 <DoubleVectorProperty command="SetMyProperty"
                            default_values="0"
                            name="MyProperty"
                            number_of_elements="1"
                            panel_visibility="default">
        <Documentation>Set MyProperty</Documentation>
</DoubleVectorProperty>


>    </Proxy>
>  </ProxyGroup>
> </ServerManagerConfiguration>
>
>
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20161205/25609490/attachment.html>


More information about the ParaView mailing list