Hi everybody,
I'm writing some .xml ServerManager file for a ParaView Plugin.
Our class have a function likes this :
double calculate(vtkImagedata* voi) that return a double value calculated from 
the vtkImageData.

I loaded the plugin into Paraview. I use the Python Shell and when I call 
myReturnedValue = MyFilter.calculate(proxy) (proxy is a vtkImageData type), I 
always have the following error : AttributeError : 'function' object has no 
attribute 'calculate'

I searched in the filters.xml and found something mention about function. I 
wonder if we can use these descriptions to access to the function (this 
function is nothing similar to any vtk function, don't override any of them). I 
think that I have to add something like 'function = calculate' so that the 
function is recognized in ParaView as well as Python but I can't find any 
exemple.

Do you have any idea? Thank you in advance.
_______________________________________________
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