Skip to content

Commit

Permalink
Surface tab: Allow adding any surface in 3D figures
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Apr 4, 2023
1 parent a650763 commit 34dc655
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Expand Up @@ -5,7 +5,7 @@
<body alink="#fff000" link="#fff000" vlink="#fff000">
<h4><span style="font-family: Arial Black; color: #ffffff;"><strong>THERE IS NO UNDO BUTTON!<BR>SET UP A <FONT color=red>BACKUP</FONT> OF YOUR DATABASE</strong></span></h4>
<HR>
<!-- LICENCE_START -->Version: 3.230331 (31-Mar-2023)<br>
<!-- LICENCE_START -->Version: 3.230404 (04-Apr-2023)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2023
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.230331 (31-Mar-2023)
% v. 3.230404 (04-Apr-2023)
10 changes: 10 additions & 0 deletions toolbox/gui/panel_surface.m
Expand Up @@ -770,6 +770,8 @@ function ButtonAddSurfaceCallback(surfaceType)
bst_error('There are no additional anatomy files that you can add to this figure.', 'Add surface', 0);
return;
end
% Add "other", to allow importing all the other surfaces
typesList{end+1} = 'Other';
% Ask user which kind of surface he wants to add to the figure 3DViz
surfaceType = java_dialog('question', 'What kind of surface would you like to display ?', 'Add surface', [], typesList, typesList{1});
end
Expand All @@ -796,6 +798,14 @@ function ButtonAddSurfaceCallback(surfaceType)
SurfaceFile = sSubject.Surface(iSubCortical).FileName;
case 'White'
SurfaceFile = sSubject.Surface(iWhite).FileName;
case 'Other'
% Offer all the other surfaces
Comment = java_dialog('combo', '<HTML>Select the reference channel:<BR><BR>', 'Select surface', [], {sSubject.Surface.Comment});
if isempty(Comment)
return;
end
iSurface = find(strcmp({sSubject.Surface.Comment}, Comment), 1);
SurfaceFile = sSubject.Surface(iSurface).FileName;
otherwise
return;
end
Expand Down

0 comments on commit 34dc655

Please sign in to comment.