|
8 | 8 | % |
9 | 9 |
|
10 | 10 | % print instructions |
11 | | -display_controls |
| 11 | +display_controls(plane) |
12 | 12 |
|
13 | 13 | % create figure and adjust to user's screen size |
14 | 14 | % f = figure('Name','Atlas Viewer'); |
|
80 | 80 | set(f, 'WindowButtonMotionFcn',@(f,k)fh_wbmfcn(f, allData, slice_figure, save_location)); % Set the motion detector. |
81 | 81 |
|
82 | 82 | % display user controls in the console |
83 | | -function display_controls |
| 83 | +function display_controls(plane) |
84 | 84 | fprintf(1, '\n Controls: \n'); |
85 | 85 | fprintf(1, '--------- \n'); |
86 | 86 | 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 |
91 | 112 |
|
92 | 113 | fprintf(1, '\n Registration: \n'); |
93 | 114 | 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 |
123 | 144 | switch key_letter |
124 | 145 | % space -- display controls |
125 | 146 | case 'space' |
126 | | - display_controls |
| 147 | + display_controls(ud.plane) |
127 | 148 | % o -- toggle showing brain region overlay |
128 | 149 | case 'o' |
129 | 150 | ud.showOverlay = ~ud.showOverlay; |
|
0 commit comments