[vtk-developers] Python wrapping of namespaces

Adam Rankin arankin at robarts.ca
Wed Feb 10 14:27:22 EST 2016


Hi David,

Yes! I was an employee of Gabor back in 2013 and got involved in the community that way. I then moved to Robarts and started a PhD under Terry.

Thanks for the information. I like the idea of cleaning things up with a namespace, but we might want python wrapping in the future.

Cheers,
Adam

From: David Gobbi [mailto:david.gobbi at gmail.com]
Sent: Wednesday, February 10, 2016 1:17 PM
To: Adam Rankin <arankin at robarts.ca>
Cc: vtk-developers at vtk.org
Subject: Re: [vtk-developers] Python wrapping of namespaces

Hi Adam,

So PLUS is being used at Robarts now!  That's nice, big parts of PLUS were built on top of code that was originally developed at Robarts.  Long live open source!

The quick answer is, no, you cannot wrap classes within a namespace.  The VTK python wrappers only allow namespaces to be used for enum constants.

I started working on a solution to this back in 2013, it isn't an easy fix because all the work on the wrappers so far has assumed that everything exists in a single flat namespace.  Now of course I would love to complete what I started, but like many of my free-time projects, I have no timeline for when it might be done.

 - David


On Wed, Feb 10, 2016 at 9:57 AM, Adam Rankin <arankin at robarts.ca<mailto:arankin at robarts.ca>> wrote:
Hello all,

I am a developer with the PLUS library, and we are having a discussion with regards to class name cleanup/unification. We brought up moving classes into a namespace, but wanted to keep the option of wrapping the library in Python.

My colleague mentioned that vtk objects in namespaces were not wrappable in the past, and I was wondering if it is now possible to wrap namespaced classes in python?

Cheers,
Adam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160210/27b5db3b/attachment.html>


More information about the vtk-developers mailing list