<div class="gmail_quote"><div>Hi Berk,</div><div>   If it is not too much work I would think it could be a very useful addition. It could interface nicely with any qt interfaces being developed by users.</div><div><br></div>
<div>Regards</div><div>   Andrew</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">See these:<br>
<br>
<a href="http://paraview.org/Wiki/ParaView/Users_Guide/Python_Calculator" target="_blank">http://paraview.org/Wiki/ParaView/Users_Guide/Python_Calculator</a><br>
<a href="http://paraview.org/Wiki/ParaView/Users_Guide/Python_Programmable_Filter" target="_blank">http://paraview.org/Wiki/ParaView/Users_Guide/Python_Programmable_Filter</a><br>
<br>
The classes used to implement these are:<br>
<br>
vtkPythonCalculator and vtkPythonProgrammableFilter<br>
<br>
in the ParaView repository.<br>
<br>
The Python modules used are:<br>
<br>
dataset_adapter.py<br>
algorithms.py<br>
<br>
in the ParaView repository.<br>
<br>
If there is interest within the VTK community in this functionality,<br>
moving these to VTK is relatively easy (but not trivial).<br>
<br>
-berk<br>
<br>
On Mon, Jun 20, 2011 at 10:28 AM, Dominik Szczerba <<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>> wrote:<br>
> That sounds very interesting! I assume you refer to the git version.<br>
> Which files are these exactly?<br>
><br>
> Many thanks,<br>
> Dominik<br>
><br>
> On Mon, Jun 20, 2011 at 3:07 PM, Berk Geveci <<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>> wrote:<br>
>> Hi Dominik,<br>
>><br>
>> For ParaView, we have been developing a Python (NumPy + VTK) based<br>
>> calculator that is independent of vtkArrayCalculator. The main<br>
>> advantages are that it is more efficient and easily extensible using<br>
>> Python. Does this address your needs?<br>
>><br>
>> -berk<br>
>><br>
>> On Fri, Jun 17, 2011 at 4:06 PM, Dominik Szczerba <<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>> wrote:<br>
>>> We are developing for our internal needs a substitute of the<br>
>>> vtkFunctionParser using QScript and python at option. I am wondering:<br>
>>><br>
>>> 1) Would this be something attractive enough to contribute to VTK.<br>
>>> 2) How would I best integrate it into the existing vtkArrayCalculator.<br>
>>> Rewrite the latter, allowing multiple parsers (current, QScript,<br>
>>> python) or implement 3 of them for the 3 parsers.<br>
>>><br>
>>> Thanks for any thoughts.<br>
>>><br>
>>> Regards,<br>
>>> Dominik<br>
>>> _______________________________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>>><br>
>>><br>
>><br>
>><br>
><br>
<br>
<br>_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>___________________________________________<br>Andrew J. P. Maclean<br>Australian Centre for Field Robotics (ACFR)<br>The Rose Street Building J04<br>The University of Sydney  2006  NSW<br>
AUSTRALIA<br>Ph: +61 2 9351 3283<br>Fax: +61 2 9351 7474<br>URL: <a href="http://www.acfr.usyd.edu.au/" target="_blank">http://www.acfr.usyd.edu.au/</a><br>___________________________________________<br>