As part of a source plugin I am developing, I would like to provide gui
input parameters. Many of the sources in paraview already provide this,
such as the Sphere source, which allows properties like radius to be
adjusted manually.

 

I have included the IntegerVectorProperty xml fragment (see below),
which I believe should enable such an option and have provided a
corresponding public listener method (also below) on my
vtkRebinningSource, which is derived from vtkPolyDataAlgorithm. When I
select the plugin from the sources menu in paraview, I get the error
message:

 

ERROR: In
..\..\Paraview_source\Paraview-3.8.0-RC2\Servers\Commmon\vtkProcessModul
e.cxx, line 1066

.... 

: Object type: vtkRebinningSource, could not find requested method:
"SetNumberOfXBins" or the method was called with incorrect arguments.

 

while processing

Message 0 = Invoke

...

 

Presumably, I have not registered the event listening method correctly.
While this is simple to do in raw vtk, I haven't found any description
of how to do this in the paraview documentation. Can anyone provide me
with guidance of how I might do this for my source plugin?

 

Thanks in advance,

 

Owen

 

<ServerManagerConfiguration>

  <!-- Begin RebinningSource -->

  <ProxyGroup name="sources">

    <SourceProxy name="RebinningSource" class="vtkRebinningSource">

                <IntegerVectorProperty name="NumberOfXBins"
command="SetNumberOfXBins" number_of_elements="10" default_values="1">

                </IntegerVectorProperty>

    </SourceProxy>

  </ProxyGroup> 

  <!-- End RebinningSource -->

</ServerManagerConfiguration>

 

public:

virtual void SetNuberOfXBins(vtkObject * caller, unsigned long eventId,
void* callData);

 


-- 
Scanned by iCritical.

_______________________________________________
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

Reply via email to