<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:Times New Roman;}</style></head><body>Hi Seb, <br> Thank you for your reply.<br> I'm sorry that I don't quite understand your instructions. I'm really new to ParaView.<br> With my little knowledge in ParaView, I'll try to understand as follow : <br> - 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.)<br> - And then by the declaration as your instructions about information_only yesterday?<br><span> </span><br> Can you be a little more explicit? What is ROI?<br> <br> Thank you very much for your kindness.<br><br><span> </span><br> <br>----- Original Message -----<br>From: Sebastien Jourdain <sebastien.jourdain@kitware.com><br>To: Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr><br>Cc: paraview@paraview.org, paraview-developers@paraview.org<br>Sent: Thu, 07 Jun 2012 01:28:38 +0200 (CEST)<br>Subject: Re: [Paraview] Write xml for ParaView Plugin<br><br>You should do that in two step.<br><br>On property on your proxy where you set the ROI.<br>And one information property where you calculate...<br><br>Seb<br><br>On Wed, Jun 6, 2012 at 11:17 AM, Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr> wrote:<br>> Hi everybody,<br>> I'm writing some .xml ServerManager file for a ParaView Plugin.<br>> Our class have a function likes this :<br>> double calculate(vtkImagedata* voi) that return a double value calculated<br>> from the vtkImageData.<br>><br>> I loaded the plugin into Paraview. I use the Python Shell and when I call<br>> myReturnedValue = MyFilter.calculate(proxy) (proxy is a vtkImageData type),<br>> I always have the following error : AttributeError : 'function' object has<br>> no attribute 'calculate'<br>><br>> I searched in the filters.xml and found something mention about function. I<br>> wonder if we can use these descriptions to access to the function (this<br>> function is nothing similar to any vtk function, don't override any of<br>> them). I think that I have to add something like 'function = calculate' so<br>> that the function is recognized in ParaView as well as Python but I can't<br>> find any exemple.<br>><br>> Do you have any idea? Thank you in advance.<br>><br>> _______________________________________________<br>> Powered by www.kitware.com<br>><br>> Visit other Kitware open-source projects at<br>> http://www.kitware.com/opensource/opensource.html<br>><br>> Please keep messages on-topic and check the ParaView Wiki at:<br>> http://paraview.org/Wiki/ParaView<br>><br>> Follow this link to subscribe/unsubscribe:<br>> http://www.paraview.org/mailman/listinfo/paraview<br>><br><br></tuan-ha.tran@insa-lyon.fr></body></html>