View Issue Details

IDProjectCategoryView StatusLast Update
0004205Slicer4Core: Scripting (Wrapping, Python)public2018-03-22 01:34
ReporterjcfrAssigned Tohastings.greer 
Status assignedResolutionopen 
Product Version 
Target VersionSlicer 4.11.0Fixed in Version 
Summary0004205: Scripting: Add first-class support for "factory" method

As described in [1], reference count associated with the object returned by method like "GetNodesByClass" or "CreateNodeByClass" has to be explicitly decremented when used from python.

The good news is that a Merge Request is currently being reviewed to allow these method to be marked as factory. Simply prepending these function declaration with VTK_NEWINSTANCE will teach the wrapped what to do.


TagsNo tags attached.




2016-10-12 03:19

administrator   ~0014161

While the feature is now available in VTK, I am re-targeting to keep track of the fact we need to mark Slicer factory methods.



2017-09-27 13:16

developer   ~0015186

It would need a lot of changes in modules and extensions, so work on this in Slicer5.

Issue History

Date Modified Username Field Change
2016-06-08 23:47 jcfr New Issue
2016-06-08 23:47 jcfr Status new => assigned
2016-06-08 23:47 jcfr Assigned To => hastings.greer
2016-10-12 03:18 jcfr Target Version Slicer 4.6.0 => Slicer 4.7.0
2016-10-12 03:19 jcfr Note Added: 0014161
2017-09-27 13:16 lassoan Target Version Slicer 4.7.0 => Slicer 4.9.0
2017-09-27 13:16 lassoan Note Added: 0015186
2018-03-22 01:34 jcfr Target Version Slicer 4.9.0 => Slicer 4.11.0