[Paraview-developers] Announce: vtkPythonClassAlgorithm

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Sun Aug 6 22:36:38 EDT 2017


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> 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
>
> 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/20170806/6b203091/attachment.html>


More information about the Paraview-developers mailing list