[vtk-developers] ruby patch to vtk-5.0.0
Seiya Nishizawa
seiya at kugi.kyoto-u.ac.jp
Sun Mar 12 22:19:08 EST 2006
On Sun, 12 Mar 2006 10:25:08 -0500 (EST)
David Gobbi <dgobbi at atamai.com> wrote:
> --- Prabhu Ramachandran <prabhu_r at users.sf.net> wrote:
>
> > >>>>> "David" == David Gobbi <dgobbi at atamai.com> writes:
> > [...]
> > David> 2) You took the "vtk" prefix off of the classes. This does
> > David> not always work, because the "vtk3DSImporter" class becomes
> > David> "3DSImporter" if you remove the "vtk". This leads to a
> > David> syntax error:
> > [...]
> > David> I think you need to leave the "vtk" prefix on the
> > David> classes to avoid this, even if it looks a bit ugly.
> >
> > 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.
>
> Yes, I think you're right about this. Also, I'm no ruby expert, but
> I did a bit of reading and another issue here is that all ruby classes
> are supposed to start with a capital letter. Vtk::VtkFoo is just wrong!
The ugly appearance of Vtk::VtkFoo is just reason why I omitted the prefix.
>
> I'd kind of like to see vtk3DSImporter renamed to vtkThreeDStudioImporter,
> and not just for ruby's sake.
>
> There is also a "vtk3DWidget" which is an important base class. I'm
> sure if Kitware would agree to renaming that one, so your solution of
> having the wrapper do the renaming would have to be applied.
Until Kitware will make decision,
I keep it as it is.
--------------
Seiya Nishizawa
seiya at kugi.kyoto-u.ac.jp
GnuPG Fingerprint = 0696 D312 5737 929A B481 FC91 44F4 6BA0 467A 7703
More information about the vtk-developers
mailing list