[vtk-developers] ruby patch to vtk-5.0.0
David Gobbi
dgobbi at atamai.com
Mon Mar 13 00:18:05 EST 2006
Prabhu Ramachandran wrote:
>>>>>> "David" == David Gobbi <dgobbi at atamai.com> writes:
>>>>>>
>
> >> Instead of doing that he could also convert 3DSImporter to
> >> ThreeDSImporter. There are only a few (one?) classes that have
> >> this problem so the benefit of not having to type Vtk::vtkFoo
> >> seems well worth it.
>
> David> I'd kind of like to see vtk3DSImporter renamed to
> David> vtkThreeDStudioImporter, and not just for ruby's sake.
>
> I think this can be done in the wrappers without the need to change
> the C++ class names.
>
Yes, but you have to agree that "vtk3DSImporter" isn't a good choice for
a name,
precisely because it makes it difficult to remove the "vtk" prefix and
turn it into a
namespace...
- David
> David> There is also a "vtk3DWidget" which is an important base
> David> class. I'm sure if Kitware would agree to renaming that
> David> one, so your solution of having the wrapper do the renaming
> David> would have to be applied.
>
> Right and that covers it.
>
> import vtk
> import string
> for name in dir(vtk):
> if name.startswith('vtk'):
> if name[3] in string.digits:
> print name
>
> vtk3DSImporter
> vtk3DWidget
>
>
> cheers,
> prabhu
>
>
More information about the vtk-developers
mailing list