BUG: fix fiber bundle color display

Check for fiber bundle display nodes and use the old method,
igoring the new scalar range options for models. Fixes bug
introduced with issue #3573 in svn revision 23083

Issue #3672


git-svn-id: http://svn.slicer.org/Slicer4/trunk@23118 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Remove VTK 4 backwards compatibility

Removed vtkSource, vtkProcessObject and subclasses.
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Overview#Removal_of_VTK_4_Backwards_Compatibility_Superclasses
http://www.vtk.org/Wiki/VTK/Tutorials/New_Pipeline#Converting_an_Existing_Filter_to_the_New_Pipeline

Closes #3485
From Yuzheng Zhou <yuzheng.zhou@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23119 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix VTK 4 backward compatibility removal

Issue #3485

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23120 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add VTK 6 support 1/2

1) Support vtk6 to build system.
http://www.vtk.org/Wiki/VTK/Build_System_Migration
Give users a build option between vtk5 and vtk6.
Solve vtk library python wrapping for VTK 6
Use system zlib (this is a hack)
Use system png (this is a hack)

2) Update dependency projects in superbuild including VTK, CTK, OpenIGTLinkIF, MultiVolumeExplorer.

3) Remove deprecated Macro.
The following two macros were deprecated in VTK 5.0 that were still supported, but have now been eliminated:
vtkTypeRevisionMacro has been replaced with vtkTypeMacro; vtkCxxRevisionMacro has been removed.
http://www.visitusers.org/index.php?title=VTK_6.0_Upgrade

The following two macros were deprecated in VTK 6.0 if VTK_LEGACY_REMOVE is on:
VTK_LARGE_INTEGER and VTK_LARGE_FLOAT
https://github.com/Kitware/VTK/blob/9a0fbb8da1a1701dc1b44c71467b969b3302efad/Common/Core/vtkType.h#L158-159

vtkFloatingPointType is replaced with double.
http://review.source.kitware.com/#/t/1667/

vtkType deprecations
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/vtkType_deprecations

4) Replace SetInput() with SetInputData() and SetInputConnection(), the same kind of functions include SetInput1(), SetInput2(), AddInput() and SetSource().
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput

5) Remove GetProducerPort() from vtkDataObject.
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_GetProducerPort

6) Remove Execute
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Execute

7) Remove SetWholeExtent() from vtkDataObject
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_SetWholeExtent

8) Remove Methods for Manipulating Update Extent
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Methods_for_Manipulating_Update_Extent

9) Change AllocateOutputData() in vtkImageAlgorithm.
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Change_to_AllocateOutputData

10) Remove CopyInformation and CopyTypeSpecificInformation from vtkDataObject and vtkImageData.
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_CopyInformation

11) Remove GetPipelineInformation and GetExecutive from vtkDataObject.
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_GetPipelineInformation

12) VTK6 requires #include <vtkVersion.h> to use the VTK_xxx_VERSION preprocessor directives.
http://vtk.org/Wiki/VTK/VTK6/Migration/WikiExamples#Improve

13) Remove Methods for Manipulating Update Extent.
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Methods_for_Manipulating_Update_Extent.
http://vtk.org/Wiki/VTK/VTK6/Migration/WikiExamples#Improve.

14) Change scalars manipulation functions
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Changes_to_Scalars_Manipulation_Functions.
http://vtk.org/Wiki/VTK/VTK6/Migration/WikiExamples#Improve.

15) Remove Pipeline Update Methods from vtkDataObject.
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update

16) Remove Pipeline Update Methods from vtkDataObject.
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update.

17) Refactor functions in vtkMRMLModelNode and sublcasses.

18) Refactor functions in vtkMRMLVolumeNode and its subclasses.
Use ImageDataPort instead of ImageData

Issue #3514

From Yuzheng Zhou <yuzheng.zhou@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23121 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add VTK 6 support 2/2

Issue #3514

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23122 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Add FindFontConfig.cmake

FindFontConfig.cmake is from VTK.

VTKv6 was not built with the module vtkRenderingFreeTypeFontConfig because
it could not find FontConfig. However, once VTK was downloaded and
configured. Any find_package(FontConfig) call (e.g. in CTK) would succeed
because FindFontConfig.cmake is now in the CMake search path.

Issue #3514

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23123 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix vtkMRMLDiffusionWeightedVolumeDisplayNode pipeline

Issue #3514

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

Regression from r23118

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23125 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Restore slice views when building with VTK v5

Issue #3514

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23126 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix uninitialized pointer in vtkMRMLModelDisplayDisplayableManager

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23127 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add search to extension manager

Note that this requires that the extension server also support search
functionality.

Issue #3564

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23128 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix missing search icon on some platforms

Use the CTK built-in fallback icon for the clear button in case loading
of the themed icon fails. This avoids having an invisible active click
area.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23129 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Disable search on extension details page

Tweak handling of the extension search field to disable it when looking
at the detail page of an extension, as it makes no sense in this case.
Also disable it (for now) when managing installed extensions.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23130 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Don't rely on URL change to update search

Also set the current search text (used to avoid unnecessary updates)
when applying the search filter. This way, the test still works if we
never get the URL changed signal (which seems to happen on some machines
for reasons unknown). In theory, since the URL change is being triggered
by JavaScript and not waiting on a server response, it should happen
immediately anyway, possibly even synchronous in the call to
evaluateJavaScript().

This should fix inability to clear the search text on some machines
(because failure to update the last search text means we always think
we have no search, and therefore don't need to do anything to clear the
search text).

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23131 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix python wrapping on Windows

The vtkWrapPython.exe command lines for the *PythonD targets were too
long (>35K characters. A "bad number" error was generated.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23132 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix crash when loading volume

Some compilers (e.g. i686-apple-darwin10-g++-4.2.1) fail when using RTTI
with vtkDataArrayTemplate.
VTKv6 offers the FastDownCast workaround by internally using static_cast.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23133 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix python wrapping on Windows

Attempt to fix the python wrapping on Windows machines.
Reduce the number of directories included for vtkWrapPython.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23134 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix python wrapping

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23135 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix EMSegment python wrapping for VTK6

Issue #3514

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23136 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Fixed 2498 and other ui enhancements for dicom browser.
This patch would fix
http://na-mic.org/Mantis/view.php?id=2498
and also fix the UI issues which Csaba reported on 2014-04-24 12:17 here:
http://na-mic.org/Mantis/view.php?id=3578
and fix a bug in saving the disabled plugins in Slicer application settings

From: Alireza Mehrtash <mehrtash@bwh.harvard.edu>

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