Author |
Committer |
Branch |
Timestamp |
Parent |
lassoan |
lassoan |
master |
2016-11-11 09:58:23 |
master 869bb1e4 |
Changeset |
ENH: Improved crosshair usability, added display in 3D view
Crosshair had several problems/limitations:
- Crosshair position was often inconsistent in different slice views (for example: when in navigation view, crosshair was always displayed in all slice views because otherwise the user could not drag the crosshair to a new position; but this way when the user changed slices then the crosshair showed different RAS positions in each slice view)
- Navigation mode was very inconvenient: to jump all slices to a specific RAS position the user had to position the mouse to the previous crosshair and drag it to the new position (it was too easy to miss the small navigation area in the middle and when it was missed, brightness/contrast of the image was accidentally modified)
- By default (if the user just toggled the crosshair button on the toolbar), crosshair was only visible in the current slice view, which was useless (the crosshair just followed the mouse in the current view)
- Crosshair position was not visible in 3D view
Solution implemented:
- Only show crosshair in the correct position in all views. If crosshair position is not in the current slice then hide the crosshair from current slice.
- Crosshair is now moved by holding down shift + moving mouse. No need to grab the previous crosshair position. Navigation mode is replaced by "jump slices" option (enabled by default), which controls if slice views should jump to current crosshair position. If disabled then shift + moving mouse only moves the crosshair.
- By default slices jump to current crosshair position, so crosshair is visible in all views. User just has to keep Shift key depressed (added hint to tooltip)
- Implemented display of crosshair in 3D view.
git-svn-id: http://svn.slicer.org/Slicer4/trunk@25521 3bd1e089-480b-0410-8dfb-8563597acbee |
mod - Base/QTGUI/qSlicerViewersToolBar.cxx |
Diff
File
|
mod - Base/QTGUI/qSlicerViewersToolBar_p.h |
Diff
File
|
mod - Libs/MRML/Core/vtkMRMLCrosshairNode.cxx |
Diff
File
|
mod - Libs/MRML/Core/vtkMRMLCrosshairNode.h |
Diff
File
|
mod - Libs/MRML/DisplayableManager/CMakeLists.txt |
Diff
File
|
mod - Libs/MRML/DisplayableManager/vtkMRMLCrosshairDisplayableManager.cxx |
Diff
File
|
mod - Libs/MRML/DisplayableManager/vtkMRMLCrosshairDisplayableManager.h |
Diff
File
|
add - Libs/MRML/DisplayableManager/vtkMRMLCrosshairDisplayableManager3D.cxx |
Diff
File
|
add - Libs/MRML/DisplayableManager/vtkMRMLCrosshairDisplayableManager3D.h |
Diff
File
|
mod - Libs/MRML/DisplayableManager/vtkSliceViewInteractorStyle.cxx |
Diff
File
|
mod - Libs/MRML/DisplayableManager/vtkThreeDViewInteractorStyle.cxx |
Diff
File
|
mod - Libs/MRML/DisplayableManager/vtkThreeDViewInteractorStyle.h |
Diff
File
|
mod - Libs/MRML/Widgets/qMRMLThreeDView.cxx |
Diff
File
|