[vtkusers] Questions About Python Wrapping

Kyle Sunderland 1krs1 at queensu.ca
Thu May 17 12:10:22 EDT 2018


Hi All,


I'm trying to wrap a number of classes so that they can be used by the Python interactor in Slicer. (https://github.com/IGSIO/OpenIGTLinkIO)

I created a macro for wrapping by copying and modifying the existing macro in Slicer (https://github.com/Slicer/Slicer/blob/master/CMake/vtkMacroKitPythonWrap.cmake).


It (mostly) works, however I noticed that no functions are wrapped which have a definition that contains any of the wrapped classes. Does anyone have insight into what I might have missed?


Also, as an additional question, is it still not possible to wrap functions that return a smart pointer?


Thanks,

Kyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180517/53a7eaf6/attachment.html>


More information about the vtkusers mailing list