<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<p dir="ltr">OK good to know.</p>
<p dir="ltr">My question was meant as more broad in scope. Basically, what features depend on the vtk prefix?</p>
<p dir="ltr">I am happy to rtfm if anyone would point me towards the relevant docs.</p>
<p dir="ltr">Adam</p>
<div class="gmail_quote">On Feb 10, 2016 3:19 PM, David Gobbi <david.gobbi@gmail.com> wrote:<br type="attribution">
</div>
<div>
<div dir="ltr">You mean wrt wrapping? Try it and see ;-)
<div><br>
</div>
<div>It might work, but then again, it might not. I advise that you keep the prefix. If your classes are a singular exceptional case that doesn't use the prefix, then you might be the one who has to do the maintenance :)</div>
<div><br>
</div>
<div> - David</div>
<div><br>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Feb 10, 2016 at 1:11 PM, Adam Rankin <span dir="ltr">
<<a href="mailto:arankin@robarts.ca" target="_blank">arankin@robarts.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Last but not least, is the prefix ‘vtk’ still required for classes that derive from a vtk class?<u></u><u></u></span></p>
<span class="">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Adam<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> David Gobbi [<a href="mailto:david.gobbi@gmail.com" target="_blank">mailto:david.gobbi@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, February 10, 2016 1:17 PM<br>
<b>To:</b> Adam Rankin <<a href="mailto:arankin@robarts.ca" target="_blank">arankin@robarts.ca</a>><br>
<b>Cc:</b> <a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a><br>
<b>Subject:</b> Re: [vtk-developers] Python wrapping of namespaces<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Adam,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">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!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">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.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">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.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"> - David<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Feb 10, 2016 at 9:57 AM, Adam Rankin <<a href="mailto:arankin@robarts.ca" target="_blank">arankin@robarts.ca</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none; border-left:solid #cccccc 1.0pt; padding:0in 0in 0in 6.0pt; margin-left:4.8pt; margin-top:5.0pt; margin-right:0in; margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">Hello all,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">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?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Cheers,<u></u><u></u></p>
<p class="MsoNormal">Adam</p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u></p>
</div>
</div>
</div>
</span></div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>