<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.10%2FDevelopers%2FTutorials%2FMigrationGuide%2FSlicer</id>
	<title>Documentation/4.10/Developers/Tutorials/MigrationGuide/Slicer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.10%2FDevelopers%2FTutorials%2FMigrationGuide%2FSlicer"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Tutorials/MigrationGuide/Slicer&amp;action=history"/>
	<updated>2026-04-21T11:02:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Tutorials/MigrationGuide/Slicer&amp;diff=61599&amp;oldid=prev</id>
		<title>Grundlett: Text replacement - &quot;slicerWiki/index.php&quot; to &quot;wiki&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Tutorials/MigrationGuide/Slicer&amp;diff=61599&amp;oldid=prev"/>
		<updated>2019-11-21T16:58:28Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;slicerWiki/index.php&amp;quot; to &amp;quot;wiki&amp;quot;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:58, 21 November 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l328&quot; &gt;Line 328:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 328:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;b&amp;gt;References:&amp;lt;/b&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;b&amp;gt;References:&amp;lt;/b&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://www.slicer.org/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;slicerWiki/index.php&lt;/del&gt;/Documentation/Labs/Segmentations#vtkMRMLLabelMapVolumeNode_integration&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://www.slicer.org/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;wiki&lt;/ins&gt;/Documentation/Labs/Segmentations#vtkMRMLLabelMapVolumeNode_integration&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=24291&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=24291&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Grundlett</name></author>
		
	</entry>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Tutorials/MigrationGuide/Slicer&amp;diff=59807&amp;oldid=prev</id>
		<title>UpdateBot: Nightly -&gt; 4.10</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Tutorials/MigrationGuide/Slicer&amp;diff=59807&amp;oldid=prev"/>
		<updated>2018-10-19T00:43:53Z</updated>

		<summary type="html">&lt;p&gt;Nightly -&amp;gt; 4.10&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;__TOC__&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
==Slicer backward incompatible changes==&lt;br /&gt;
&lt;br /&gt;
=== Slicer 4.9: Update of VTK version from 9.0 to 8.2 ===&lt;br /&gt;
&lt;br /&gt;
Following [https://github.com/Kitware/VTK/commit/b703d78be3ffd8ae69c319afa0230097ff270f26 kitware/VTK@b703d78be], VTK has updated to use version number 8.2 instead of 9.0. This was discussed in on the VTK mailing list in http://vtk.1045678.n5.nabble.com/Discussion-OK-to-change-VTK-s-version-number-from-9-0-to-8-2-tt5748702.html&lt;br /&gt;
&lt;br /&gt;
At first, this VTK commit and its companion [https://github.com/Kitware/VTK/commit/8a00b357e84eec695bda049216f30f2b76d80855 kitware/VTK@8a00b357e] were both reverted from the [https://github.com/Slicer/VTK/ Slicer/VTK] fork. Then, since having the corresponding changes reverted in VTK was not possible, it was decided to also update Slicer. This was done in the following commits:&lt;br /&gt;
* [http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=27472 r27472]: COMP: Update c++ classes to support building against VTK &amp;gt;= 9 and VTK &amp;gt;= 8.2&lt;br /&gt;
* [http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=27473 r27473]: COMP: Update VTK to include version change from 9.0 to 8.2. Fixes #4623&lt;br /&gt;
&lt;br /&gt;
This means that code depending on VTK must also be updated to include similar fixes.&lt;br /&gt;
&lt;br /&gt;
'''Replace this:'''&lt;br /&gt;
  #if VTK_MAJOR_VERSION &amp;gt;= 9&lt;br /&gt;
&lt;br /&gt;
'''By this:'''&lt;br /&gt;
  #if VTK_MAJOR_VERSION &amp;gt;= 9 || (VTK_MAJOR_VERSION &amp;gt;= 8 &amp;amp;&amp;amp; VTK_MINOR_VERSION &amp;gt;= 2)&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
'''Replace this:'''&lt;br /&gt;
  #if VTK_MAJOR_VERSION &amp;lt; 9&lt;br /&gt;
&lt;br /&gt;
'''By this:'''&lt;br /&gt;
  #if VTK_MAJOR_VERSION &amp;lt;= 7 || (VTK_MAJOR_VERSION &amp;lt;= 8 &amp;amp;&amp;amp; VTK_MINOR_VERSION &amp;lt;= 1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Slicer 4.9: ITK_LEGACY_REMOVE is now OFF ===&lt;br /&gt;
In preparation to switch to ITK 5.0, we disable legacy functionality in ITK. This might affect some modules which rely on ITK. Take a look at [https://itk.org/migrationv4 ITK 4 migration guide] before [https://github.com/InsightSoftwareConsortium/ITK/blob/master/Documentation/ITK5MigrationGuide.md ITK 5 migration guide].&lt;br /&gt;
&lt;br /&gt;
=== Slicer 4.9: vtkMRMLPlotDataNode renamed to vtkMRMLPlotSeriesNode ===&lt;br /&gt;
Plotting was improved in [https://github.com/Slicer/Slicer/commit/082edc40c this commit]&lt;br /&gt;
&lt;br /&gt;
'''Replace this:'''&lt;br /&gt;
&lt;br /&gt;
  vtkMRMLPlotDataNode&lt;br /&gt;
&lt;br /&gt;
'''By this:'''&lt;br /&gt;
  vtkMRMLPlotSeriesNode&lt;br /&gt;
&lt;br /&gt;
=== Slicer 4.9: CMake: Module MIDAS not available  ===&lt;br /&gt;
&lt;br /&gt;
The test infrastructure of your project should be updated to use [https://cmake.org/cmake/help/latest/module/ExternalData.html ExternalData] built-in CMake module&lt;br /&gt;
instead of the specific &amp;lt;tt&amp;gt;MIDAS&amp;lt;/tt&amp;gt; module.&lt;br /&gt;
&lt;br /&gt;
See EMSegment commit [http://viewvc.slicer.org/viewvc.cgi/Slicer3?view=revision&amp;amp;revision=17150 r17150] for an example of transition.&lt;br /&gt;
&lt;br /&gt;
This means that instead of using &amp;lt;tt&amp;gt;midas_add_test&amp;lt;/tt&amp;gt; with the &amp;lt;tt&amp;gt;MIDAS{path/to/file.ext.md5}&amp;lt;/tt&amp;gt;&lt;br /&gt;
syntax for addressing the test data, the function [https://cmake.org/cmake/help/latest/module/ExternalData.html#command:externaldata_add_test ExternalData_add_target] is used by&lt;br /&gt;
specifying both &amp;lt;tt&amp;gt;DATA{path/to/file.ext}&amp;lt;/tt&amp;gt; and a download target name.&lt;br /&gt;
&lt;br /&gt;
'''Replace this:'''&lt;br /&gt;
&lt;br /&gt;
  midas_add_test(NAME test1 COMMAND ...)&lt;br /&gt;
  midas_add_test(NAME test2 COMMAND ...)&lt;br /&gt;
&lt;br /&gt;
'''By this:'''&lt;br /&gt;
&lt;br /&gt;
  ExternalData_add_test(EMSegmentData NAME test1 COMMAND ...)&lt;br /&gt;
  ExternalData_add_test(EMSegmentData NAME test2 COMMAND ...)&lt;br /&gt;
  &lt;br /&gt;
  [...]&lt;br /&gt;
  &lt;br /&gt;
  ExternalData_add_target(EMSegmentData)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A key difference with the former approaches is that instead of adding two tests (one named&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;testName&amp;gt;_fetchData&amp;lt;/tt&amp;gt; to downoad the data and one running the test command), only one&lt;br /&gt;
test is added but a common download target is added at the end using [https://cmake.org/cmake/help/latest/module/ExternalData.html#command:externaldata_add_target ExternalData_add_target]&lt;br /&gt;
function.&lt;br /&gt;
&lt;br /&gt;
This means that test data can now be downloaded in parallel (and cached) at build time instead&lt;br /&gt;
of testing time.&lt;br /&gt;
&lt;br /&gt;
=== Slicer 4.9: CMake: Module SlicerMacroCheckExternalProjectDependency not available ===&lt;br /&gt;
&lt;br /&gt;
Since the module was removed in [http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=26992 r26992], consider updating&lt;br /&gt;
your build system to use CMake module &amp;lt;code&amp;gt;ExternalProjectDependency&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Slicer 4.9: CMake: Module SlicerMacroEmptyExternalProject not available ===&lt;br /&gt;
&lt;br /&gt;
Since the module was removed in [http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=26991 r26991]&lt;br /&gt;
&lt;br /&gt;
'''Replace this:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
include(SlicerMacroEmptyExternalProject)&lt;br /&gt;
&lt;br /&gt;
[...]&lt;br /&gt;
&lt;br /&gt;
SlicerMacroEmptyExternalProject(&amp;quot;${proj}&amp;quot; &amp;quot;${${proj}_DEPENDENCIES}&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''By this:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
include(ExternalProjectDependency)&lt;br /&gt;
&lt;br /&gt;
[...]&lt;br /&gt;
&lt;br /&gt;
ExternalProject_Add_Empty(${proj} DEPENDS ${${proj}_DEPENDENCIES})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Slicer 4.9: CMake: Module SlicerBlockSetCMakeOSXVariables not available ===&lt;br /&gt;
&lt;br /&gt;
Since it was renamed to &amp;lt;tt&amp;gt;SlicerInitializeOSXVariables&amp;lt;/tt&amp;gt; in [http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=26982 r26982]&lt;br /&gt;
&lt;br /&gt;
'''Replace this:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
include(SlicerBlockSetCMakeOSXVariables)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''By this:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
include(SlicerInitializeOSXVariables)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Slicer 4.9: Application: isRelease() function not available ===&lt;br /&gt;
&lt;br /&gt;
See [[#Slicer_4.8:_Application:_isRelease.28.29_function_not_available_or_deprecated]]&lt;br /&gt;
&lt;br /&gt;
=== Slicer 4.9: slicer.util.getNode() raises exception if node not found ===&lt;br /&gt;
&lt;br /&gt;
If slicer.util.getNode() is called and the node is not found then instead of just returning None (Slicer 4.8 behavior), the method now raises a MRMLNodeNotFoundException. This makes code debugging easier (the error is reported when it happens), and in general more consistent with Python conventions.&lt;br /&gt;
&lt;br /&gt;
How to update existing code:&lt;br /&gt;
&lt;br /&gt;
It is advisable to only use slicer.util.getNode in tests, or interactively in the Python console, as its behavior is somewhat unpredictable (it may either found a node by name or ID, and result of wildcard search is even less deterministic). In general, it is recommended to use the MRML scene's GetFirstNodeByName and GetNodeByID methods instead.&lt;br /&gt;
&lt;br /&gt;
'''Replace this:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
n = slicer.util.getNode(nodeNameOrID)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''By one of these:'''&lt;br /&gt;
&lt;br /&gt;
If node is to be found by name:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  n = slicer.mrmlScene.GetFirstNodeByName(nodeName)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If node is to be found by ID:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  n = slicer.mrmlScene.GetNodeByID(nodeID)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If node is to be found by name or ID (slower, less predictable, recommended for testing only):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
try:&lt;br /&gt;
  n = slicer.util.getNode(nodeNameOrID)&lt;br /&gt;
except slicer.util.MRMLNodeNotFoundException:&lt;br /&gt;
  n = None&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More information: https://github.com/Slicer/Slicer/commit/b63484af1b1b413f35396f8f7efb73e870448bd4&lt;br /&gt;
&lt;br /&gt;
===Slicer 4.8: Application: isRelease() function not available or deprecated===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Error message similar to:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Missing/deprecated qSlicerCoreApplication::isRelease()&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
    Missing/deprecated slicer.app.isRelease()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;tt&amp;gt;qSlicerCoreApplication::releaseType() == &amp;quot;Stable&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Summary:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Prior to r26420, the variable &amp;lt;tt&amp;gt;Slicer_VERSION_TWEAK&amp;lt;/tt&amp;gt; was used to check if a &amp;quot;stable release&amp;quot; was built. The variable value&lt;br /&gt;
was set by updating the sources and defining the variable to an integer greater or equal to 0. In other word, if the variable&lt;br /&gt;
evaluated to an empty string, a nighty or experimental build was being done, if it evaluated to an integer, a stable release build&lt;br /&gt;
was being done.&lt;br /&gt;
&lt;br /&gt;
The approach had few issues:&lt;br /&gt;
* the name of the variable was confusing&lt;br /&gt;
* identifying a &amp;quot;stable release&amp;quot; only from a source tree revision was not enough. Indeed the environment defining a &amp;quot;release&amp;quot; is the one found on the build machines used to generate the installer.&lt;br /&gt;
* nightly build are also considered as release&lt;br /&gt;
&lt;br /&gt;
To address this, the CMake variable &amp;lt;tt&amp;gt;Slicer_RELEASE_TYPE&amp;lt;/tt&amp;gt; was introduced. As of 2017-10-04, it can be set to &amp;lt;tt&amp;gt;Experimental&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;Nightly&amp;lt;/tt&amp;gt;&lt;br /&gt;
or &amp;lt;tt&amp;gt;Stable&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;Experimental&amp;lt;/tt&amp;gt; being the value hard-coded in the source.&lt;br /&gt;
&lt;br /&gt;
Identifying a build as &amp;quot;stable&amp;quot; is now explicitly done by setting &amp;lt;tt&amp;gt;Slicer_RELEASE_TYPE&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;Stable&amp;lt;/tt&amp;gt; at configure time.&lt;br /&gt;
&lt;br /&gt;
Also, since the concept of release types was introduced, the function &amp;lt;tt&amp;gt;isRelease()&amp;lt;/tt&amp;gt; has been removed in favor of &amp;lt;tt&amp;gt;releaseType()&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;References:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
https://github.com/Slicer/Slicer/pull/354&lt;br /&gt;
&lt;br /&gt;
===Slicer Python Module: modulewidget and others removed.===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; Summary&amp;lt;/b&amp;gt;&lt;br /&gt;
Python classes formerly in &amp;quot;slicer.moduledm&amp;quot;, &amp;quot;slicer.modulelogic&amp;quot;,  &amp;quot;slicer.modulemrml&amp;quot;&lt;br /&gt;
and &amp;quot;slicer.modulewidget&amp;quot; are now directly available in the slicer module.&lt;br /&gt;
&lt;br /&gt;
See example of change [https://github.com/QIICR/LongitudinalPETCT/pull/11 here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Rational:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See comments in commit messages referenced blow.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;References:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
https://github.com/Slicer/Slicer/commit/628f83fe7a6f4e0710e306bcaf7c04b9e3e5e6bd&lt;br /&gt;
&lt;br /&gt;
https://github.com/Slicer/Slicer/commit/9cb5668fde1abc8f0430a91ca37fc29277ceeb4e&lt;br /&gt;
&lt;br /&gt;
===MRML: Slicer 4.6: Moved up vtkMRMLStorableNode in the MRML node hierarchy.===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Rational:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
vtkMRMLStorableNode is not a children of vtkMRMLTransformable node anymore,&lt;br /&gt;
but directly a children of vtkMRMLNode.&lt;br /&gt;
    &lt;br /&gt;
This allows making a node storable without requiring it to be also&lt;br /&gt;
transformable. It is important for several node types (color maps, tables,&lt;br /&gt;
etc), which require separate storage node but are not transformable.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;References:&amp;lt;/b&amp;gt;&lt;br /&gt;
* Changed introduced in [http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=24891 r24891]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Error message similar to:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    /tmp/LongitudinalPETCT/MRML/vtkMRMLLongitudinalPETCTStudyNode.cxx: In member function ‘void vtkMRMLLongitudinalPETCTStudyNode::ObserveRegistrationTransform(bool)’:&lt;br /&gt;
    /tmp/LongitudinalPETCT/MRML/vtkMRMLLongitudinalPETCTStudyNode.cxx:478:28: error: ‘class vtkMRMLVolumePropertyNode’ has no member named ‘GetParentTransformNode’&lt;br /&gt;
                   &amp;amp;&amp;amp; propNode-&amp;gt;GetParentTransformNode()&lt;br /&gt;
                                ^&lt;br /&gt;
    /tmp/LongitudinalPETCT/MRML/vtkMRMLLongitudinalPETCTStudyNode.cxx:480:23: error: ‘class vtkMRMLVolumePropertyNode’ has no member named ‘SetAndObserveTransformNodeID’&lt;br /&gt;
                 propNode-&amp;gt;SetAndObserveTransformNodeID(&lt;br /&gt;
                           ^&lt;br /&gt;
    /tmp/LongitudinalPETCT/MRML/vtkMRMLLongitudinalPETCTStudyNode.cxx:503:23: error: ‘class vtkMRMLVolumePropertyNode’ has no member named ‘SetAndObserveTransformNodeID’&lt;br /&gt;
                 propNode-&amp;gt;SetAndObserveTransformNodeID(NULL);&lt;br /&gt;
                           ^&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Removes lines and/or refactor code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===MRML: Slicer 4.5: Introduction of vtkMRMLLabelMapVolumeNode===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Rational:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before &amp;lt;tt&amp;gt;vtkMRMLScalarVolumeNode&amp;lt;/tt&amp;gt; was used for both scalar and label map&lt;br /&gt;
volumes and the LabelMap custom MRML node attribute was used for&lt;br /&gt;
distinguishing between them (0=scalar; 1=label map volume).&lt;br /&gt;
&lt;br /&gt;
This made conversion between labelmap/scalar volumes very easy but made&lt;br /&gt;
it difficult to customize behavior, display, processing of segmentation&lt;br /&gt;
information.&lt;br /&gt;
&lt;br /&gt;
Now a new &amp;lt;tt&amp;gt;vtkMRMLLabelMapVolumeNode&amp;lt;/tt&amp;gt; class is used for storing segmentation&lt;br /&gt;
information (still using &amp;lt;tt&amp;gt;vtkMRMLScalarVolume&amp;lt;/tt&amp;gt; used as base class for backward&lt;br /&gt;
compatibility; but in the future the base class may be changed to reflect&lt;br /&gt;
that segmentation can be represented in various ways, not just as volumes).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Error message similar to:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  error: ‘class vtkMRMLScalarVolumeNode’ has no member named ‘SetLabelMap’&lt;br /&gt;
     outputVolumeNode-&amp;gt;SetLabelMap(1);&lt;br /&gt;
                       ^&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution (part1: down cast to &amp;lt;tt&amp;gt;vtkMRMLLabelMapVolumeNode&amp;lt;/tt&amp;gt;, remove call to &amp;lt;tt&amp;gt;SetLabelMap&amp;lt;/tt&amp;gt;)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace lines like:&lt;br /&gt;
&lt;br /&gt;
     vtkMRMLNode* outputNode = d-&amp;gt;OutputLabelVolumeMRMLNodeComboBox-&amp;gt;currentNode();&lt;br /&gt;
     vtkMRMLScalarVolumeNode* outputVolumeNode = vtkMRMLScalarVolumeNode::SafeDownCast(outputNode);&lt;br /&gt;
     [...]&lt;br /&gt;
     outputVolumeNode-&amp;gt;SetLabelMap(1);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with:&lt;br /&gt;
&lt;br /&gt;
     vtkMRMLLabelMapVolumeNode* outputVolumeNode =&lt;br /&gt;
       vtkMRMLLabelMapVolumeNode::SafeDownCast(d-&amp;gt;OutputLabelVolumeMRMLNodeComboBox-&amp;gt;currentNode());&lt;br /&gt;
     [...]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution (part2: Update UI file):&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace lines like:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;widget class=&amp;quot;qMRMLNodeComboBox&amp;quot; name=&amp;quot;InputLabelVolumeMRMLNodeComboBox&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;property name=&amp;quot;nodeTypes&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;stringlist&amp;gt;&lt;br /&gt;
     &amp;lt;string&amp;gt;vtkMRMLScalarVolumeNode&amp;lt;/string&amp;gt;&lt;br /&gt;
    &amp;lt;/stringlist&amp;gt;&lt;br /&gt;
   &amp;lt;/property&amp;gt;&lt;br /&gt;
   [...]&lt;br /&gt;
  &amp;lt;/widget&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;widget class=&amp;quot;qMRMLNodeComboBox&amp;quot; name=&amp;quot;InputLabelVolumeMRMLNodeComboBox&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;property name=&amp;quot;nodeTypes&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;stringlist&amp;gt;&lt;br /&gt;
     &amp;lt;string&amp;gt;vtkMRMLLabelMapVolumeNode&amp;lt;/string&amp;gt;      &amp;lt;------------- Update Here&lt;br /&gt;
    &amp;lt;/stringlist&amp;gt;&lt;br /&gt;
   &amp;lt;/property&amp;gt;&lt;br /&gt;
   [...]&lt;br /&gt;
  &amp;lt;/widget&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution (part3: Update node selector configuration):&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace lines like:&lt;br /&gt;
&lt;br /&gt;
  nodeSelector.setNodeTypes(QStringList(&amp;quot;vtkMRMLScalarVolumeNode&amp;quot;));&lt;br /&gt;
  nodeSelector.addAttribute(&amp;quot;vtkMRMLScalarVolumeNode&amp;quot;, &amp;quot;LabelMap&amp;quot;, &amp;quot;1&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
with:&lt;br /&gt;
&lt;br /&gt;
  nodeSelector.setNodeTypes(QStringList(&amp;quot;vtkMRMLLabelMapVolumeNode&amp;quot;));&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;References:&amp;lt;/b&amp;gt;&lt;br /&gt;
* http://www.slicer.org/slicerWiki/index.php/Documentation/Labs/Segmentations#vtkMRMLLabelMapVolumeNode_integration&lt;br /&gt;
* http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=24291&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===CLI: Slicer 4.3: Add ITKFactoryRegistration library centralizing ITK IO factory registration===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Rational:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Linking against &amp;lt;tt&amp;gt;ITKFactoryRegistration&amp;lt;/tt&amp;gt; ensures that ITK IO factory are properly registered on all supported platforms.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Error message similar to:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Undefined symbols for architecture x86_64:&lt;br /&gt;
  &amp;quot;itk::itkFactoryRegistration()&amp;quot;, referenced from:&lt;br /&gt;
  _main in ImageMakerTest.cxx.o&lt;br /&gt;
  ld: symbol(s) not found for architecture x86_64&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Solution:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace lines like:&lt;br /&gt;
&lt;br /&gt;
  target_link_libraries(${CLP}Test ${CLP}Lib)&lt;br /&gt;
&lt;br /&gt;
with:&lt;br /&gt;
&lt;br /&gt;
  target_link_libraries(${CLP}Test ${CLP}Lib ${SlicerExecutionModel_EXTRA_EXECUTABLE_TARGET_LIBRARIES})&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;References:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=21592&lt;br /&gt;
* https://issues.slicer.org/view.php?id=2813&lt;/div&gt;</summary>
		<author><name>UpdateBot</name></author>
		
	</entry>
</feed>