[vtkusers] python and vtkRungeKutta45

Berk Geveci berk.geveci at kitware.com
Wed Apr 23 10:32:14 EDT 2014


Hi Felipe,

Unfortunately, the only way to subclass vtkFunctionSet is to do it in C++.
VTK's wrappers do not allow for virtual functions to be overwritten in
Python.

Best,
-berk


On Wed, Apr 23, 2014 at 10:28 AM, Felipe Bordeu
<felipe.bordeu at ec-nantes.fr>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I'm trying to use the vtkRungeKutta45, to generate a streamline in
> python for a implicit data.
> The problems is that my field is not a vtkdataset. So i can't use the
> streamline filter. So I need to generate the stream line manually from
> the vtkRungeKutta class.
>
> In all the examples/test (in python in the vtk repository), the
> vtkRungeKutta is used inside a vtkStreamLine.
>
> (Now the specific question)
>
> How do I define a custom vtkFunctionSet in python and how do a put in
> inside the vtkRungeKutta45 to be able to call
> vtkRungeKutta45::ComputeNextStep(...).
>
> Thanks
>
>
>
> - --
> Felipe Bordeu Weldt
> Ingénieur de Recherche
> - -------------------------------------
> Tél. : 33 (0)2 40 37 16 57
> Fax. : 33 (0)2 40 74 74 06
> Felipe.Bordeu at ec-nantes.fr
> Institut GeM - UMR CNRS 6183
> École Centrale Nantes
> 1 Rue de La Noë, 44321 Nantes, FRANCE
> - -------------------------------------
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJTV84ZAAoJEE/fMfNgU9/DLg0H/3LmnnaovGHZdRdesv0odjkl
> rIqMeEurKHjViXIMXypMYFl++Jp75iI4XRKv89ZNmIS2tTyaBszgnUgKyj8eDYhk
> wwW+VtkWo6ExmympkV0dgbX5nclUKrVyOe6QA0misY7kfCZXiKWvAXMv8zrTWUzh
> Y+UGU6Jz97X/9roc4ZNlM+1r+texU3+2bSN9qQwAnMgVNaISVBjkRBIsdeTeZH/+
> /bMAhzqOvHOKbDzfIM4UkoYXo8PgdspxvNKzPCdr7TPfX9jaybXkdFhL7r5Iaxnu
> 6nx3+F3jRG6msaj71T4Qm4HCnqtNEK5F2ziMvt1cwdZkLXoOXN20TbMo9l6FiGE=
> =jjfS
> -----END PGP SIGNATURE-----
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140423/d8a6cb3b/attachment.html>


More information about the vtkusers mailing list