ENH: Move initialization function from Main.cxx to qSlicerApplicationHelper

The idea is to promote re-use of the initialization function and avoid
code duplication.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21203 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Partially fix rendering view refresh area on Windows

On my machine, I have the old cached image that shows up under the
closing view controller popup.

Closes #2630

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21204 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Partially fix rendering view refresh area on Windows

The git tag update was done in the wrong external project.
This reverts commit r21204.
Issue #2630

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21205 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Remove unused CLI/Java directory

The associated code has been moved into the Slicer "Attic".
See https://github.com/Slicer/Attic/commit/1889649f20bf3ec2b9adc9f26c973954ce821e38

See http://www.na-mic.org/Bug/view.php?id=2651

Fixes #2651

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21206 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Remove empty directory

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21207 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Ensure __file__ attribute is defined when running python script

See http://www.na-mic.org/Bug/view.php?id=2649

Fixes #2649

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21208 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: fix wrapping of MRML scene API

The StateType enum is not wrapped for access via python, so
it should not be used in a public API for slicer.  Instead,
we use unsigned long, which is the convention used, for example,
in vtkCommand and vtkObject.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21209 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Using "--settings-path" output text an all platform

See http://www.na-mic.org/Bug/view.php?id=2376

Fixes #2376

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21210 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Display "Usage" and "Options" when using installed MacOSX Slicer executable

See http://www.na-mic.org/Bug/view.php?id=2376

Fixes #2376

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21211 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: issue #2664 avoid a crash stemming from the wrong 2d/3d check for the ruler widget. Use the superclass to avoid a null pointer on safe down cast

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21212 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Use "GetMRMLDisplayableNode" instead of using redundant member m_SliceNode

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

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21213 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Update vtkAnnotationRulerWidget to adequately distinguish 2D and 3D case

Add functions "GetIs2Widget" and "SetIs2DWidget" allowing to build
the appropriate representation.

Note that calling "SetIs2DWidget" after a representation has been built
as a no-op.

See http://www.na-mic.org/Bug/view.php?id=2664

Fixes #2664

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21214 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Ensure ruler widget is properly created when switching to compare view

In the case of the annotation displayable manager, calling "SetMRMLScene"
ended up calling OnMRMLSceneClose -> RequestRender -> UpdateFromMRML -> CreateWidget.
Then, since MRMLDisplayableNode wasn't set, code expecting it to be set
wasn't behaving as expected. (ie Is2DDisplayableManager was returning false)

Since the call to "vtkSetAndObserveMRMLNodeEventsMacro" was no impact
beyond the current class, switching the call "vtkSetAndObserveMRMLNodeEventsMacro"
and "SetMRMLScene" will have no unexpected impact on subclass or code
depending on the displayable manager.

See http://www.na-mic.org/Bug/view.php?id=2496

Fixes #2496

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21215 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Ensure CMAKE_{C,CXX}_COMPILER is passed when building extensions custom target

See http://www.na-mic.org/Bug/view.php?id=2657

Fixes #2657

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21216 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Simplify vtkAnnotationRulerWidget::CreateDefaultRepresentation

Based on suggestion of Julien

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

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21217 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: issue #2666 Don't render annotation nodes, they're handled by the annotation displayble managers. Fixes issue of seeing a red line that was connecting the annotation control points, fixing bug introduced after svn 21159

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21218 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Restore GPU Raycast volume mapper for new Mac OS X version

VTK issue #10716

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