BUG: add missing return statements when read fails - led to crash

ReadDataInternal is meant to return a status code indicating success
or failure, however some branches that generated error messages
neglected to return 0 meaning that the calling code interpreted
this as a success condition.  In some cases this led to a crash, for
example when importing RGB dicom files.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22868 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add support for user-defined stereo-viewing options

This will make it easier to implement support new stereoscopic 3D devices.

From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22869 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Adding support for Apple's Retina display for fonts

Enable improved rendering of fonts on Apple's retina displays by
adding a custom bundle plist file with the following additional
elements:

<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>
<string>True</string>

The remainder of the input plist file is based on the current in file
from CMake.

For reference: https://blog.qt.digia.com/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/

Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

From: Bradley Lowekamp <blowekamp@mail.nih.gov>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22870 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Update VTK - Add support for additional observer CallDataType

//--------------
vtkPythonCommand - Add support for additional call data types

This commit extends the mechanism added in 9366ca67 to support additional
data types.

Supported types now includes 'string0', 'vtkobject', 'int', 'long',
'double' and 'float'.

Also added convenience decorator 'set_call_data_type'

See inlined comments for more details.

The integration in VTK proper has been proposed here:
http://review.source.kitware.com/#/t/3966/
//--------------

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22871 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Remove trailing white space from vtkImageResliceMask files

From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22872 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Move vtkImageResliceMask from MRML/Logic to MRML/Core

This is done anticipating the implementation of the
non-linear transform support that will expect MRML node to depend on the
functionality of the vtkImageResliceMask filter.

Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22873 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: changes to support non-linear transforms

From: Alex Yarmarkovich <alexy@bwh.harvard.edu>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22874 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Made Markup and Annotation work with non-linear transforms

From: Alex Yarmarkovich <alexy@bwh.harvard.edu>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22875 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: rebased svn, fixed fiducials under nonlinear transform

From: Alex Yarmarkovich <alexy@bwh.harvard.edu>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22876 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: fixed DataProbe module to work with non-linear transform

From: Alex Yarmarkovich <alexy@bwh.harvard.edu>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22877 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: fix table range on color nodes

Color table range values were being set to the number of entries
in the look up table, rather than the range of scalar values that
are to be mapped through the table. This restricts that mapping (especially
when using them with volumes) to for example scalar values from 0-43
in the fMRI table, rather than allowing mapping of 0-255, the default
that is input to the map scalars to colors filter in the
slice pipeline.

Reset the table ranges on the fMRI, fMRIPA, Iron nodes, as well as
the default range for Copy and the color table storage node, to
allow mapping 0-255 rather than 0-number of colors.

Issue #3586



git-svn-id: http://svn.slicer.org/Slicer4/trunk@22878 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fixed usage of GetXYToIJKTransform in Editor PaintEffectTool

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22879 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fixed usage of GetXYToIJKTransform in Editor tools

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22880 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: back out table range for LUTs from file

Painting in the editor is not showing the correct
colors when the table range is set to 0-255, go back
to using the maxID as the upper range for now.

Issue #3586



git-svn-id: http://svn.slicer.org/Slicer4/trunk@22881 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix BSpline transform reducing "event thrashing"

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22882 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add second pimpl constructor to qMRMLTreeView

Adding a second protected constructor that takes the pimpl instance as argument allows subclassing and using qMRMLTreeViewPrivate from a subclass of the tree view.

Export qMRMLWidgets_INCLUDE_DIRS CMake variable from SlicerConfig to be able to include those directories without CMake path construction magic.

From: Csaba Pinter <csaba.pinter@queensu.ca>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22883 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fixed usage of GetXYToIJKTransform in Editor tools

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22884 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Rename DiffusionTensorScalarMeasurements option name

The original option name was misleading, it has been renamed to better
guide the user.

Fixes #3591

Co-authored-by: Sonia Pujol <spujol@bwh.harvard.edu>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22885 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Added new vtkMRMLTransformNode attribute: readWriteAsTransformToParent

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22886 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Added tests for BSpline and Grid transforms and corresponding MRML nodes.

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