Slicer: 2145-support-for-installing-extension-from-file 6a4d14df

Author Committer Branch Timestamp Parent
jcfr jcfr 2145-support-for-installing-extension-from-file 2013-07-25 09:42:29 2145-support-for-installing-extension-from-file 511c61ce
Affected Issues 0001578: Make sure --stero command line option works
Changeset

ENH: Add QuadBuffer stereo support

By default there is always an attempt to enable stereo capability. This is
done in ctkVTKAbstractViewPrivate::setupRendering [1].

Then, following the test done within the different implementation of
vtkRenderWindow, in case the hardware doesn't support it, the flag associated
with StereoCapability will be turned off [2][3].

Finally, the action within the threeD controller widget is enabled
or disabled based on the state of the StereoCapability flag.

[1] https://github.com/commontk/CTK/blob/4e98d9a064bfe32a4c0cb28838a093e392dc3cc3/Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.cpp#L102
[2] https://github.com/Kitware/VTK/blob/0e0674a3695fdeaf01ce87dfc04e32111b7402e0/Rendering/vtkXOpenGLRenderWindow.cxx#L351-401
[3] https://github.com/Kitware/VTK/blob/0e0674a3695fdeaf01ce87dfc04e32111b7402e0/Rendering/vtkWin32OpenGLRenderWindow.cxx#L734-738

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

Fixes 0001578

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

mod - Libs/MRML/Core/vtkMRMLViewNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLViewNode.h Diff File
mod - Libs/MRML/DisplayableManager/vtkMRMLViewDisplayableManager.cxx Diff File
mod - Libs/MRML/Widgets/Resources/UI/qMRMLThreeDViewControllerWidget.ui Diff File
mod - Libs/MRML/Widgets/qMRMLThreeDViewControllerWidget.cxx Diff File
mod - Libs/MRML/Widgets/qMRMLThreeDViewControllerWidget.h Diff File
mod - Libs/MRML/Widgets/qMRMLThreeDWidget.cxx Diff File
mod - Libs/MRML/Widgets/qMRMLThreeDWidget.h Diff File