COMP: Attempt to automatically link module python library with its dependencies

See http://www.na-mic.org/Bug/view.php?id=2627

Fixes #2627

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21134 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Expose qMRMLAnnotationTreeView and qMRMLSceneAnnotationModel

to other modules. Those classes can be handy when modules implement their
own annotation nodes.
To be "public", classes must be in subdirectories such as MRML, Logic or Widgets.

Issue #2606

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21135 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: VR logic CreateVolumeRenderingDisplayNode should not add node to scene

Because the method name has the format "CreateXXX", it is implied that the
method does not add the instantiated node into the scene. It is instead the
caller's responsability.
vtkSlicerVolumesLogic::CreateLabelVolume() should also be changed (maybe
add utility CreateAndAddLabelVolume())
Issue #2626

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21136 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Volume logic CreateLabelVolume should not add node to scene

Only CreateAndAddLabelVolume() can add a node to the scene.
Closes #2626

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21137 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: CreateVolumeRenderingDisplayNode() no longer adds to the scene, account for this


git-svn-id: http://svn.slicer.org/Slicer4/trunk@21138 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Add backward compatible functions CreateLabelVolume

Issue #2626

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21139 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: fix memory leaks

GetNodesByClass() requires manual dereferencing, as described in
http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Developers/Tutorials/MemoryManagement


git-svn-id: http://svn.slicer.org/Slicer4/trunk@21140 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Add more cheks and tests in VR logic methods for robustness

Crashed was happening if the VR display node was not in the scene.
Issue #2622

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21141 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: fix memory leaks in the last step of the wizard


git-svn-id: http://svn.slicer.org/Slicer4/trunk@21142 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: fix crash

VR display node needs to be added to the scene before being initialized


git-svn-id: http://svn.slicer.org/Slicer4/trunk@21143 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: fix the issue with VR turning off when ChangeTracker is exited (see Slicer issue 2589)
        
VR display node needs to be associated with the volume node


git-svn-id: http://svn.slicer.org/Slicer4/trunk@21144 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Missing returning node in vtkSlicerVolumesLogic::CreateLabelVolume

Add warning message for deprecated function.
Issue #2626

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21145 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Correctly initialize ROI node in VR module

Closes #2620

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21146 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: 2534. Linking panning of Slice viewers

Decoupling the Slice viewer resolution from the 3D Slice plane
viewers broke linked panning.

SliceToRAS is not modified by panning anymore. Linked panning was copying
the SliceToRAS from one viewer to another.  Instead, we now copy the XYZOrigin
from one viewer to another.

Not sure this is the correct thing to do.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21147 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: issue #2499 A workaround the crash in vtkCutter: call vtkPolyData->Modified() to update bounds of the locator, to avoid crash in the vtkCutter. Also optimization for slice-to-slice intersection case.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21148 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: new test for SliceLinkLogic

Tests Compare View for data selection, lightbox configuration, reseting
field of view, panning, zooming, slice offset, and changing orientation.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21149 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Added volume rendering module tutorial test for abdomen dataset

Second test without VTK GPU Ray Casting on Apple as it fails to render

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21150 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: In CTest script, Disable CTEST_USE_LAUNCHERS for non Make generator

Doing so will allow build error to be properly reported for generator
that do not support CTest launcher

See http://www.na-mic.org/Bug/view.php?id=2468

Fixes #2468

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21151 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Revert commit r21150 integrated by mistake.

Note for myself, always do a "git log" before doing "git svn dcommit"

This reverts commit daf274c85e8c7e46440e48f76b7c3f0dfb17000e.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21152 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Added volume rendering module tutorial test for abdomen dataset

Second test without VTK GPU Ray Casting on Apple as it fails to render

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21153 3bd1e089-480b-0410-8dfb-8563597acbee