Try adding a Property element to the xml.

On Sat, Dec 3, 2016 at 12:09 PM, Mario Schreiber <[email protected]
> 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>
>
>
...
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to