COMP: Prevent windows build error shortening DisplayableManager directory

"MRMLDisplayableManager" sub directory associated with module has been
changed into "MRMLDM" to prevent issue related to path length limitation.

See http://slicer-devel.65872.n3.nabble.com/No-Windows-nightly-package-since-May-2-tp4028642p4028646.html

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21987 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: copy opacity when creating a copy of a color node

The MRML color logic was using the the color node copy 
method that just copied the name and rgb, switched it 
to use the one that also copies opacity. 
Expanded the testing to exercise the copy and test the 
results.

Issue #3114


git-svn-id: http://svn.slicer.org/Slicer4/trunk@21988 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Consistently specify optional external project CMake arguments

Easier maintenance of the build system by using the variable
"EXTERNAL_PROJECT_OPTIONAL_ARGS" to accumulate optional CMake arguments.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21989 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Fix indent in SimpleITK and teem external project

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21990 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix CMake warning related to unused CMAKE_BUILD_TYPE variable

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21991 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix unused CMake variable occurring when configuring DCMTK on windows

Warning reported on the dashboard:

12> Manually-specified variables were not used by the project:
12>    DCMTK_FORCE_FPIC_ON_UNIX
12>    DCMTK_WITH_WRAP

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21992 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Set the color range when changing number of colors

When copying a color table node and reducing the number
of colors in it, the color table range wasn't updated.
This led to problems in the Editor module when the selected
drawing integer wasn't matched up to the expected color.
Now when the number of colors is set on a user editable
color node, the range is set on the color look up table
and on the GUI slider at the same time.
Also updated the number of colors spin box to only trigger
a reset of the number of colors on the node on the editingFinished signal
as othewise cutting down a table from 300 to 50 colors could
empty out the table and refill it with black rather than 
creating a subset of the original table.

Issue #3115



git-svn-id: http://svn.slicer.org/Slicer4/trunk@21993 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix unused CMake variable Teem_VTK_TOOLKITS_IPATH warning

Following r21963, Teem_VTK_MANGLES is set to OFF. For that reason,
the variable Teem_VTK_TOOLKITS_IPATH is not required anymore.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21994 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Remove unused Slicer superbuild boolean variable

The variable "Slicer_BUILD_Extensions" originally introduced
by commit r21550 is not used.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21995 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix CMake warning related to WITH_MEMCHECK CMake variable

Commented the variable waiting the build system is updated to support
running of the test using valgrind.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21996 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Fix unused CMake variable warning related to DOCUMENTATION_* variable

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21997 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Do not compile zlib using WINAPI calling convention

Following commit r21963, windows 32-bit couldn't be be built because
of missing symbol error associated with python, vtk and itk. Ensuring
ZLIB_WINAPI was defined systematically by configuring it inside "zlibDllConfig.h"
was solving python link error but was then causing further link error while
building ITK, VTK  (conflicting calling convention __fastcall vs __stdcall)

Since originally the flag has been added to be able to compile LibArchive
and since now LibArchive supports zlib build with or without ZLIB_WINAPI,
there is NOW no need to force the flag.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21998 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: set LUT range widget to trigger setting range on LUT

Updating the GUI element will trigger a signal to update the look up table
on the color node.
Renamed a method from setNumberOfColors to updateNumberOfColors as it wasn't
taking an argument.
TODO: set up an observation on the look up table on the color node

Issue #3115



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

Based on discussion during May 14 Slicer developer hangout, the test
failure was due to the transition to ITKv4.

The update of the baseline has been done with the following command:

cp /home/jchris/Projects/Slicer-TR-Superbuild-Release/Slicer-build/Testing/Temporary/OtsuThresholdImageFilterTest.raw.gz /home/jchris/Projects/Slicer-TR/Modules/CLI/OtsuThresholdImageFilter/Data/Baseline/

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

Following r21905, the widget UI has been re-organized. The XML file
has been updated to account for the change previously introduced.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22001 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Exclude some extensions from git hook line lengths check

Extensions: *.ui, *.xml and *.xml.in

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

The XML file has been updated to account for the changes
added by previous updated related to introduction of
ctkSpinBox (r21902) and Editor layout re-organization.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22003 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: #2326 make save dialog name match node name

With this change, the file save name will be made to match the
name of the node.  This way when a user has specified a
meaningful name in the GUI it will be transferred to the
filename as well for consistency.

http://www.na-mic.org/Bug/view.php?id=2326#c8637

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22004 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Calculate ruler distance so it's up to date

When adding a ruler node programatically to the scene, with initialised
end point coordinates, the distance wasn't getting updated. Removed the 
local variable that saved the distance and changed GetDistanceMeasurement
to calculate it when called. Still writes out the distance to MRML
but does not read it back in as it will be re-calculated.

Issue #3123



git-svn-id: http://svn.slicer.org/Slicer4/trunk@22005 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: 2528. Fixed the cause of the crash because of invalid LUT in vtkMRMLDiffusionTensorDisplayPropertiesNode

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