Commit efbfd4c6 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

ENH: scaffolding for new ortho showLocation option

parent d71df6fa
......@@ -164,12 +164,15 @@ class CanvasSettingsPanel(ctrlpanel.SettingsPanel):
('layout',
props.Widget('layout',
labels=strings.choices['OrthoOpts.layout'])),
('zoom', props.Widget('zoom', showLimits=False)),
('showLabels', props.Widget('showLabels')),
('cursorGap', props.Widget('cursorGap')),
('showXCanvas', props.Widget('showXCanvas')),
('showYCanvas', props.Widget('showYCanvas')),
('showZCanvas', props.Widget('showZCanvas'))))
('zoom', props.Widget('zoom', showLimits=False)),
('showLabels', props.Widget('showLabels')),
('showLocation',
props.Widget('showLocation',
labels=strings.choices['OrthoOpts.showLocation'])),
('cursorGap', props.Widget('cursorGap')),
('showXCanvas', props.Widget('showXCanvas')),
('showYCanvas', props.Widget('showYCanvas')),
('showZCanvas', props.Widget('showZCanvas'))))
lightBoxOptsProps = collections.OrderedDict((
('zax',
......
......@@ -56,6 +56,12 @@ class OrthoOpts(sceneopts.SceneOpts):
"""
showLocation = props.Choice(('no', 'X', 'Y', 'Z'))
"""If not ``'no'`` labels showing the current location, in voxel and
world coordinatees, will be shown on the selected canvas.
"""
layout = props.Choice(('horizontal', 'vertical', 'grid'))
"""How should we lay out each of the three canvases?"""
......
......@@ -433,6 +433,7 @@ OPTIONS = td.TypeDict({
'zzoom',
'cursorGap',
'showLabels',
'showLocation',
'layout',
'showXCanvas',
'showYCanvas',
......@@ -806,6 +807,7 @@ ARGUMENTS = td.TypeDict({
'OrthoOpts.showYCanvas' : ('yh', 'hidey', False),
'OrthoOpts.showZCanvas' : ('zh', 'hidez', False),
'OrthoOpts.showLabels' : ('hl', 'hideLabels', False),
'OrthoOpts.showLocation' : ('sl', 'showLocation', True),
'OrthoOpts.xcentre' : ('xc', 'xcentre', True),
'OrthoOpts.ycentre' : ('yc', 'ycentre', True),
'OrthoOpts.zcentre' : ('zc', 'zcentre', True),
......@@ -1062,15 +1064,16 @@ HELP = td.TypeDict({
'SceneOpts.labelSize' : 'Orientation/colour bar label font size '
'(4-96, default: 12)',
'OrthoOpts.xzoom' : 'X canvas zoom (100-5000, default: 100)',
'OrthoOpts.yzoom' : 'Y canvas zoom (100-5000, default: 100)',
'OrthoOpts.zzoom' : 'Z canvas zoom (100-5000, default: 100)',
'OrthoOpts.cursorGap' : 'Show a gap at the cursor centre',
'OrthoOpts.layout' : 'Canvas layout',
'OrthoOpts.showXCanvas' : 'Hide the X canvas',
'OrthoOpts.showYCanvas' : 'Hide the Y canvas',
'OrthoOpts.showZCanvas' : 'Hide the Z canvas',
'OrthoOpts.showLabels' : 'Hide orientation labels',
'OrthoOpts.xzoom' : 'X canvas zoom (100-5000, default: 100)',
'OrthoOpts.yzoom' : 'Y canvas zoom (100-5000, default: 100)',
'OrthoOpts.zzoom' : 'Z canvas zoom (100-5000, default: 100)',
'OrthoOpts.cursorGap' : 'Show a gap at the cursor centre',
'OrthoOpts.layout' : 'Canvas layout',
'OrthoOpts.showXCanvas' : 'Hide the X canvas',
'OrthoOpts.showYCanvas' : 'Hide the Y canvas',
'OrthoOpts.showZCanvas' : 'Hide the Z canvas',
'OrthoOpts.showLabels' : 'Hide orientation labels',
'OrthoOpts.showLocation' : 'Show cursor location coordinates',
'OrthoOpts.invertXHorixontal' :
'Invert the X canvas along the horizontal axis',
'OrthoOpts.invertXVertical' :
......@@ -1312,6 +1315,9 @@ HELP = td.TypeDict({
'\'white\' (default), \'black\', or '
'\'transparent\'.',
'ComplexOpts.component' :
'Component to display - real (default), imaginary, magnitude, or phase.',
'TractogramOpts.colourBy' :
'NIFTI image, or file containing per-vertex/streamline scalar values '
'for colouring, or name of a a per-vertex/streamline data set contained '
......
......@@ -1037,10 +1037,11 @@ properties = TypeDict({
'LightBoxOpts.sliceSpacing' : 'Slice spacing',
'LightBoxOpts.zrange' : 'Z range',
'OrthoOpts.showXCanvas' : 'Show X canvas',
'OrthoOpts.showYCanvas' : 'Show Y canvas',
'OrthoOpts.showZCanvas' : 'Show Z canvas',
'OrthoOpts.showLabels' : 'Show labels',
'OrthoOpts.showXCanvas' : 'Show X canvas',
'OrthoOpts.showYCanvas' : 'Show Y canvas',
'OrthoOpts.showZCanvas' : 'Show Z canvas',
'OrthoOpts.showLabels' : 'Show labels',
'OrthoOpts.showLocation' : 'Show location',
'OrthoOpts.layout' : 'Layout',
'OrthoOpts.xzoom' : 'X zoom',
......@@ -1307,6 +1308,12 @@ choices = TypeDict({
'vertical' : 'Vertical',
'grid' : 'Grid'},
'OrthoOpts.showLocation' : {'no' : 'No',
'X' : 'On X canvas',
'Y' : 'On Y canvas',
'Z' : 'On Z canvas'},
'OrthoEditProfile.mode' : {'nav' : 'Navigate',
'sel' : 'Draw/select',
'desel' : 'Erase/deselect',
......
......@@ -501,6 +501,8 @@ properties = TypeDict({
'OrthoOpts.showLabels' : 'If the currently selected overlay is a NIFTI '
'image, show / hide anatomical orientation '
'labels.',
'OrthoOpts.showLocation' :
'Show the cursor coordinates on one of the three canvases.',
'OrthoOpts.layout' : 'How to lay out each of the three canvases.',
'OrthoOpts.zoom' : 'Zoom level for all three canvases.',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment