Customize some of the vtkSetGet for the wrappers
There are many VTK methods that are wrapped even if they do not need to be, and they cause bloat in the wrappers. One example of this is the
IsA() method, which is a virtual method defined in
vtkObjectBase and there is therefore no need to also wrap it in all of the subclasses.
The SetGet macros offer the best opportunity to eliminate "bloat" methods from the wrappers: it is possible to use
#ifdef __VTK_WRAP__ to create one macro definition for the wrappers, with an
#else to create another macro definition for C++. This could even be done in a language-specific manner, by using e.g.
Edit Jan 29, 2019:
A simpler way to block specific methods (whether defined in a macro or not) would be to add a
[[vtk::wrapexclude]] attribute to the wrapper tools:
#ifdef __VTK_WRAP__ #define VTK_WRAPEXCLUDE [[vtk::wrapexclude]] #else #define VTK_WRAPEXCLUDE #endif VTK_WRAPEXCLUDE vtkTypeBool IsA(const char *type)