You should do that in two step.

On property on your proxy where you set the ROI.
And one information property where you calculate...

Seb

On Wed, Jun 6, 2012 at 11:17 AM, Tuan Ha Tran <[email protected]> wrote:
> 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
>
_______________________________________________
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