[Paraview] Write xml for ParaView Plugin
Tuan Ha Tran
tuan-ha.tran at insa-lyon.fr
Thu Jun 7 03:30:13 EDT 2012
Hi Seb,
Thank you for your reply.
I'm sorry that I don't quite understand your instructions. I'm really new to ParaView.
With my little knowledge in ParaView, I'll try to understand as follow :
- First, I have to write my .xml file with a tab that have "function" declaration? So how to declare these values cause I don't understand the exemples in the *.xml file (filters, writers; etc.)
- And then by the declaration as your instructions about information_only yesterday?
Can you be a little more explicit? What is ROI?
Thank you very much for your kindness.
----- Original Message -----
From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
To: Tuan Ha Tran <tuan-ha.tran at insa-lyon.fr>
Cc: paraview at paraview.org, paraview-developers at paraview.org
Sent: Thu, 07 Jun 2012 01:28:38 +0200 (CEST)
Subject: Re: [Paraview] Write xml for ParaView Plugin
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 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120607/090052a6/attachment.htm>
More information about the ParaView
mailing list