[vtk-developers] ruby patch to vtk-5.0.0

Prabhu Ramachandran prabhu_r at users.sf.net
Sun Mar 12 23:32:49 EST 2006


>>>>> "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.

    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