View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004205||Slicer4||Core: Scripting (Wrapping, Python)||public||2016-06-08 23:47||2018-03-22 01:34|
|Target Version||Slicer 4.11.0||Fixed in Version|
|Summary||0004205: Scripting: Add first-class support for "factory" method|
As described in , 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.
|Tags||No tags attached.|
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.
It would need a lot of changes in modules and extensions, so work on this in Slicer5.
|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|