[vtkusers] vtk31/local classes, python wrapper

Randall A. Jones Randall.A.Jones at gsfc.nasa.gov
Wed Jun 7 22:07:11 EDT 2000


Hello.
  I have written/modified a couple of vtk classes and compiled them
under the vtk31/local area.  
For the first class (vtkTriPlaneSource), this works nicely. 
For the second class (vtkLWOBWriter), most of the interface methods for
the object are (claimed) parsed by vtkWrapPython but do not end up in
vtk31/local/python/vtkLWOBWriterPython.cxx and as a result are not in
the resulting libVTKLocalPython.so.

compile output:
--
        rm -f python/vtkLWOBWriterPython.cxx;
/usr/tmp/src/vtk31/wrap/vtkWrapPython ./vtkLWOBWriter.h ./../wrap/hints
0 > python/vtkLWOBWriterPython.cxx
   Parsed func PrintSelf
   Parsed func New
   Parsed func IsSurface
   Parsed func NewSurface
   Parsed func AddSurfaceAttrib
   Parsed func AddSurfaceAttrib
   Parsed func AddSurfaceAttrib
   Parsed func AddSurfaceAttrib
   Parsed func AddSurfaceAttrib
   Parsed func AddSurfaceAttrib
   Parsed func AddSurfaceAttrib
   Parsed func vtkLWOBWriter
   Parsed func vtkLWOBWriter
   Parsed func vtkLWOBWriter
   Converted operator
   Parsed func WriteData
--

vtk31/local/python/vtkLWOBWriterPython.cxx snippet:
--
static PyMethodDef PyvtkLWOBWriterMethods[] = {
  {"GetClassName",             
(PyCFunction)PyvtkLWOBWriter_GetClassName, 1},
  {"SetFileName",              
(PyCFunction)PyvtkLWOBWriter_SetFileName, 1},
  {"GetFileName",              
(PyCFunction)PyvtkLWOBWriter_GetFileName, 1},
  {NULL,                NULL}
};
-- 

Is there a way to "tell" the wrapper generators to include these methods
in the python module?
Or, conversely, why would vtkWrapPython not generate wrappers for
methods it claims to parse in a vtk class?

Thank You,
Randy
--
__________________________________________________________________
   Scientific Visualization Studio                         

     _/_/_/_/ _|    _/ _/_/_/_/  NASA Goddard Space Flight Center
    _/        _|   _/ _/        Randall A. Jones   301-286-2239
   _/_/_/_/   _|  _/ _/_/_/_/  Raytheon ITSS         Code 935
        _/    _| _/       _/  Randall.A.Jones at gsfc.nasa.gov
 _/_/_/_/     _|_/ _/_/_/_/  http://svs.gsfc.nasa.gov
__________________________________________________________________




More information about the vtkusers mailing list