BUG: 3060. Replaced the use of vtkMRMLDisplayableNode::DisplayNodes with vtkMRMLDisplayableNode::GetDisplayNodes()


git-svn-id: http://svn.slicer.org/Slicer4/trunk@21884 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: fixed compile error from the previous commit.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21885 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Use ${VTK_LIBRARIES} instead of vtkCommon.

Forwards-compatibility with VTK6.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21886 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Fix saving of models from GrayscaleModelMaker

When the models were being read back into Slicer by the vtkSlicerApplicationLogic,
it would check first if .vtk was a supported read type in the FreeSurfer
model storage node. Due to a copy/paste error in that class, it's SupportedReadFileTypes
string array was empty, which was interpreted as supporting all types and the 
application logic would assign a FS model storage node to it. Because the 
SupportedWriteFileTypes array was initialised with the supported read file types, the
grey scale model would come up in the save dialog as being able to be written in 
FS formats.
It's a known interoperability issue that the FS model storage node doesn't support 
writing FS formats, so the storage node inhertis from the model storage node superclass's
list of supported write types and uses it's WriteDataInternal to save FS models as .vtk
files.

Changes:
Initialize the SupportedReadFileTypes string array with just FS model file types.
Removed .vtk and .vtp as supported read types, Slicer should default to a regular
model storage node for those files.
Fixed some debugging string print outs.

Issue #3036



git-svn-id: http://svn.slicer.org/Slicer4/trunk@21887 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Added script to setup development environment

Setup git user profile, git hooks and general git development environment with
this script.
Removed hard configuration of push URL.
Addresses issue 2834.
ENH: Added safeguard hook to tell developer to setup environment

A placeholder pre-commit hook is installed by CMake to ensure the developer sets
up the development environment before committing any changes.
Addresses issue 2834.