[vtk-developers] vtkChemistry status and python bindings
David Gobbi
david.gobbi at gmail.com
Wed Feb 15 10:15:32 EST 2012
On Wed, Feb 15, 2012 at 8:04 AM, Marcus D. Hanwell
<marcus.hanwell at kitware.com> wrote:
>
> I haven't had chance to try this out, but could they be marked as
> ABSTRACT? This indicates to the wrapper generators that it cannot
> construct new ones, but I don't know if this applies to special
> wrapping.
No, the wrappers have to be able to construct special-type objects on
the stack, so they cannot be abstract or marked as abstract. This is
in contrast to vtkObject-derived types, which are always handled via
pointers.
The wrappers could be modified so that, for types such as these, the
objects are created via their copy constructor instead of via the ()
constructor. It would require some messy parts of the wrapper code to
be re-written, though. It isn't an easy thing to fix.
- David
More information about the vtk-developers
mailing list