[Paraview-developers] [EXTERNAL] Re: Announce: vtkPythonClassAlgorithm
Scott, W Alan
wascott at sandia.gov
Mon Aug 14 18:39:11 EDT 2017
Does this mean the Python could be developed in an IDE?
Alan
From: Paraview-developers [mailto:paraview-developers-bounces at paraview.org] On Behalf Of Utkarsh Ayachit
Sent: Sunday, August 6, 2017 8:37 PM
To: Bob Pepin <bobpepin at gmail.com>
Cc: ParaView Developers <paraview-developers at paraview.org>
Subject: [EXTERNAL] Re: [Paraview-developers] Announce: vtkPythonClassAlgorithm
Bob,
That's pretty cool! I'll take a closer look at it next week. This seems to be in similar vein to a WIP-branch I created a little while ago but never got around to finishing it. If you're interested, here's the commit:
https://gitlab.kitware.com/utkarsh.ayachit/paraview/commit/bfea05b0d2114f51a581f63c368cdce603932619
It relies on `vtkPythonAlgorithm` (https://blog.kitware.com/vtkpythonalgorithm-is-great/) to handle passing algorithm passes to a Python class. The XML looks like
<SourceProxy class="extras.Sphere"
name="PythonAlgorithm"
si_class="vtkSIPythonSourceProxy">
</SourceProxy>
Where the "class" is the Python class name indeed with extra being the module to import.
Utkarsh
On Sun, Aug 6, 2017 at 5:04 PM, Bob Pepin <bobpepin at gmail.com<mailto:bobpepin at gmail.com>> wrote:
Hi,
I developed a ParaView plugin that is similar to Programmable Filter/Source, except that the Python code is in a Python class in an external file.
The source code for a first (rough) version can be found on github at
https://github.com/bobpepin/vtkPythonClassAlgorithm
I would be thankful for feedback or suggestions (as well as contributions of course).
Best,
Bob
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Search the list archives at: http://markmail.org/search/?q=Paraview-developers
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20170814/474c4215/attachment.html>
More information about the Paraview-developers
mailing list