Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
74c82e7d
Commit
74c82e7d
authored
10 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
gtGuiGrainMontage: moved to the new graphics system in uiextras
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
16545439
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zUtil_GUI/gtGuiGrainMontage.m
+8
-8
8 additions, 8 deletions
zUtil_GUI/gtGuiGrainMontage.m
with
8 additions
and
8 deletions
zUtil_GUI/gtGuiGrainMontage.m
+
8
−
8
View file @
74c82e7d
...
...
@@ -87,18 +87,18 @@ function selected = gtGuiGrainMontage(gr, selected, use_blobs, det_ind)
'HandleVisibility'
,
'off'
);
% Boxes to help with the formatting of the window
gui_data
.
main_boxes
=
ui
extras
.
VBox
(
'Parent'
,
gui_data
.
window
);
gui_data
.
main_boxes
=
ui
x
.
VBox
(
'Parent'
,
gui_data
.
window
);
% Will contain the images
gui_data
.
imgs_panel
=
ui
extras
.
Panel
(
'Parent'
,
gui_data
.
main_boxes
);
gui_data
.
imgs_panel
=
ui
x
.
Panel
(
'Parent'
,
gui_data
.
main_boxes
);
% Will contain the buttons
gui_data
.
buttons_panel
=
ui
extras
.
Panel
(
'Parent'
,
gui_data
.
main_boxes
);
gui_data
.
buttons_panel
=
ui
x
.
Panel
(
'Parent'
,
gui_data
.
main_boxes
);
set
(
gui_data
.
main_boxes
,
'
Size
s'
,
[
-
1
40
]);
set
(
gui_data
.
main_boxes
,
'
Height
s'
,
[
-
1
40
]);
% Layout for the buttons
gui_data
.
butt_boxes
=
ui
extras
.
HButtonBox
(
'Parent'
,
gui_data
.
buttons_panel
);
gui_data
.
butt_boxes
=
ui
x
.
HButtonBox
(
'Parent'
,
gui_data
.
buttons_panel
);
gui_data
.
guiOkButton
=
uicontrol
(
'Style'
,
'PushButton'
,
...
'Parent'
,
gui_data
.
butt_boxes
,
...
...
...
@@ -114,14 +114,14 @@ function selected = gtGuiGrainMontage(gr, selected, use_blobs, det_ind)
'Callback'
,
@
onResetButton
);
% Grid that holds the images
gui_data
.
imgs_grid
=
ui
extras
.
Grid
(
'Parent'
,
gui_data
.
imgs_panel
);
gui_data
.
imgs_grid
=
ui
x
.
Grid
(
'Parent'
,
gui_data
.
imgs_panel
);
% I expect a matrix like this stack(:,:,1,n) which will have n images.
% For each of these images, we will display them in proper boxes
%%% Kind of a hack - presetting the values to zeros, forces the handles
%%% to be doubles, which then forces the use of the
%%% hg.uicontrol/{get,set} methods instead of the overloaded ui
extras
.
%%% hg.uicontrol/{get,set} methods instead of the overloaded ui
x
.
%%% This makes it possible to assign the 'ButtonDownFcn' callback on the
%%% panel, while with the uiextras/{get,set} would not be accessible
gui_data
.
listOfPlainPanels
=
zeros
(
length
(
selected
));
...
...
@@ -210,7 +210,7 @@ function selected = gtGuiGrainMontage(gr, selected, use_blobs, det_ind)
function
gui_data
=
createDiffSpotPanel
(
gui
,
img
,
active
,
ii
,
num
,
omega
,
intensity
)
% It creates the panel that contains the difspot.
text
=
sprintf
(
'w: %2.1f, I: %2.1g, Id: %d'
,
omega
,
intensity
,
num
);
panel
=
ui
extras
.
BoxPanel
(
'Parent'
,
gui
.
imgs_grid
,
'Title'
,
text
);
panel
=
ui
x
.
BoxPanel
(
'Parent'
,
gui
.
imgs_grid
,
'Title'
,
text
);
if
(
active
),
set
(
panel
,
'TitleColor'
,
'g'
);
else
set
(
panel
,
'TitleColor'
,
'y'
);
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment