Skip to content

Commit 571bd61

Browse files
authored
Merge pull request #58 from kouichi-c-nakamura/sagittal_control
Sagittal control
2 parents 9d21d8c + b161466 commit 571bd61

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

Browsing Functions/AtlasTransformBrowser.m

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
%
99

1010
% print instructions
11-
display_controls
11+
display_controls(plane)
1212

1313
% create figure and adjust to user's screen size
1414
% f = figure('Name','Atlas Viewer');
@@ -80,14 +80,35 @@
8080
set(f, 'WindowButtonMotionFcn',@(f,k)fh_wbmfcn(f, allData, slice_figure, save_location)); % Set the motion detector.
8181

8282
% display user controls in the console
83-
function display_controls
83+
function display_controls(plane)
8484
fprintf(1, '\n Controls: \n');
8585
fprintf(1, '--------- \n');
8686
fprintf(1, 'Navigation: \n');
87-
fprintf(1, 'up: scroll through A/P angles (for coronal sections)\n');
88-
fprintf(1, 'right: scroll through M/L angles (for coronal sections)\n');
89-
fprintf(1, 'down: scroll through slices \n');
90-
fprintf(1, 'scroll: move between slices \n');
87+
switch plane
88+
case 'coronal'
89+
fprintf(1, 'up: scroll through D/V angles (for coronal sections)\n');
90+
fprintf(1, 'right: scroll through M/L angles (for coronal sections)\n');
91+
fprintf(1, 'down: scroll through A/P atlas slices \n');
92+
fprintf(1, 'left: scroll for Slice Viewer \n');
93+
94+
fprintf(1, 'scroll: move between slices or angles \n');
95+
case 'sagittal'
96+
fprintf(1, 'up: scroll through D/V angles (for sagittal sections)\n');
97+
fprintf(1, 'right: scroll through A/P angles (for sagittal sections)\n');
98+
fprintf(1, 'down: scroll through M/L atlas slices \n');
99+
fprintf(1, 'left: scroll for Slice Viewer \n');
100+
101+
fprintf(1, 'scroll: move between slices or angles \n');
102+
103+
case 'transverse'
104+
fprintf(1, 'up: scroll through M/L angles (for transverse sections)\n');
105+
fprintf(1, 'right: scroll through A/P angles (for transverse sections)\n');
106+
fprintf(1, 'down: scroll through D/V atlas slices \n');
107+
fprintf(1, 'left: scroll for Slice Viewer \n');
108+
109+
fprintf(1, 'scroll: move between slices or angles \n');
110+
111+
end
91112

92113
fprintf(1, '\n Registration: \n');
93114
fprintf(1, 't: toggle mode where clicks are logged for transform \n');
@@ -123,7 +144,7 @@ function hotkeyFcn(f, slice_figure, keydata, allData, save_location, save_suffix
123144
switch key_letter
124145
% space -- display controls
125146
case 'space'
126-
display_controls
147+
display_controls(ud.plane)
127148
% o -- toggle showing brain region overlay
128149
case 'o'
129150
ud.showOverlay = ~ud.showOverlay;

0 commit comments

Comments
 (0)