<div dir="ltr">Hi Felipe,<div><br></div><div>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.</div><div><br></div>
<div>Best,</div><div>-berk</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 10:28 AM, Felipe Bordeu <span dir="ltr"><<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hello,<br>
<br>
I'm trying to use the vtkRungeKutta45, to generate a streamline in<br>
python for a implicit data.<br>
The problems is that my field is not a vtkdataset. So i can't use the<br>
streamline filter. So I need to generate the stream line manually from<br>
the vtkRungeKutta class.<br>
<br>
In all the examples/test (in python in the vtk repository), the<br>
vtkRungeKutta is used inside a vtkStreamLine.<br>
<br>
(Now the specific question)<br>
<br>
How do I define a custom vtkFunctionSet in python and how do a put in<br>
inside the vtkRungeKutta45 to be able to call<br>
vtkRungeKutta45::ComputeNextStep(...).<br>
<br>
Thanks<br>
<br>
<br>
<br>
- --<br>
Felipe Bordeu Weldt<br>
Ingénieur de Recherche<br>
- -------------------------------------<br>
Tél. : 33 (0)2 40 37 16 57<br>
Fax. : 33 (0)2 40 74 74 06<br>
<a href="mailto:Felipe.Bordeu@ec-nantes.fr">Felipe.Bordeu@ec-nantes.fr</a><br>
Institut GeM - UMR CNRS 6183<br>
École Centrale Nantes<br>
1 Rue de La Noë, 44321 Nantes, FRANCE<br>
- -------------------------------------<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iQEcBAEBAgAGBQJTV84ZAAoJEE/fMfNgU9/DLg0H/3LmnnaovGHZdRdesv0odjkl<br>
rIqMeEurKHjViXIMXypMYFl++Jp75iI4XRKv89ZNmIS2tTyaBszgnUgKyj8eDYhk<br>
wwW+VtkWo6ExmympkV0dgbX5nclUKrVyOe6QA0misY7kfCZXiKWvAXMv8zrTWUzh<br>
Y+UGU6Jz97X/9roc4ZNlM+1r+texU3+2bSN9qQwAnMgVNaISVBjkRBIsdeTeZH/+<br>
/bMAhzqOvHOKbDzfIM4UkoYXo8PgdspxvNKzPCdr7TPfX9jaybXkdFhL7r5Iaxnu<br>
6nx3+F3jRG6msaj71T4Qm4HCnqtNEK5F2ziMvt1cwdZkLXoOXN20TbMo9l6FiGE=<br>
=jjfS<br>
-----END PGP SIGNATURE-----<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>