BUG: Volume rendering now support labelmaps with more than 1024 colors

Closes #2165, #2527

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21277 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Speed up VR module initialization

When having a color node with a lot of colors > 1000, deep copying
vtkPiecewiseFunction fires lots of Modified events that are propagated by
the volume property node. This significantly slows down the
initialization of the volume rendering module (20secs in release mode).
The core problem is that a modified volume property node triggers
unnecessary updates. But it will be fixed later on.

Issue #2642 (0006854)

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21278 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Revert commit r21278 due to invalid CTK external project reference

This reverts commit 6e89f699aab211f04e176b262a1febd69c94236e.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21279 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Revert commit r21277 due to invalid CTK external project reference

This reverts commit 011e6d4772267f0a8a6ca62649a304c00b1b1471.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21280 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Update external project "*.cmake.in" files to support path with spaces

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21281 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Restore and fix commit r21277 with invalid CTK external project reference

This reverts commit r21289

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21282 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Restore and fix commit r21278 with invalid CTK external project reference

This reverts commit r21279

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21283 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Revert commits r21282 and r21283 due to invalid VTK external project reference

Obtained the following message:

 "fatal: reference is not a tree: 9355f2d8b2d8c62a4e352176832576a3a0ecd37d
 CMake Error at VTK-prefix/tmp/VTK-gitclone.cmake:28 (message):
   Failed to checkout tag: '9355f2d8b2d8c62a4e352176832576a3a0ecd37d'"

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21284 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Restore and fix commits r21277 and r21278 with invalid VTK external project reference

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21285 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: issue #2513 updated mrb from Marianna: fixed label map, scene view camera angles/slice visib

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21286 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Delete display nodes returned from CreateXXX() functions

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21287 3bd1e089-480b-0410-8dfb-8563597acbee
BUG 2707. If the scene root directory does not exist set it to current dir.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21288 3bd1e089-480b-0410-8dfb-8563597acbee
BUG 2710. Set root directory in the scene view nodes when saving .MRB files.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21289 3bd1e089-480b-0410-8dfb-8563597acbee
BUG 2710. Fixed SceneViewStorage node's filename for MRB file.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21290 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: addnode not needed after initialize, see #2622


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

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21292 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: fix for SlicerRT Issue #153 (hang when dicom plugins fail)

A python error in a dicom plugin (e.g. an extension like rt or pet/ct)
could cause the dicom module to be unresponsive.  Now there is a warning
dialog with the name of the failing plugin.

https://www.assembla.com/spaces/slicerrt/tickets/153#/activity/ticket:

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21293 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: avoid DeprecationWarning messages from vtk wrapping

When passing a float to a vtk method that expects int, a
DeprecationWarning is issued, but it does not provide any
diagnositic information about the method or class that caused
the issue. To get the information, you need to issue the following
python commands before the warning is triggered:

 import warnings
 warnings.simplefilter('error')

This generates a stack trace that can be used to find the issue.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21294 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Add sanity check preventing building from source or build directory with spaces

If needed, this check can be by-passed passing option
-DSlicer_SKIP_DIR_WITH_SPACES_CHECK:BOOL=TRUE

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21295 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: reduced tolerance for test. restructured to percentage not absolute

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