Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LEVER
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
LEVER
Commits
30ed0ebb
Commit
30ed0ebb
authored
Aug 8, 2012
by
Eric Wait
Browse files
Options
Downloads
Patches
Plain Diff
Turn off Labels not on the tree
parent
514c2de8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/MATLAB/+UI/CreateMenuBar.m
+24
-0
24 additions, 0 deletions
src/MATLAB/+UI/CreateMenuBar.m
src/MATLAB/+UI/DrawCells.m
+37
-27
37 additions, 27 deletions
src/MATLAB/+UI/DrawCells.m
with
61 additions
and
27 deletions
src/MATLAB/+UI/CreateMenuBar.m
+
24
−
0
View file @
30ed0ebb
...
...
@@ -138,6 +138,13 @@ labelsMenu = uimenu(...
'Checked'
,
'on'
,
...
'Accelerator'
,
'l'
);
treeLabelsOn
=
uimenu
(
...
'Parent'
,
viewMenu
,
...
'Label'
,
'Show Off Tree Labels'
,
...
'HandleVisibility'
,
'callback'
,
...
'Callback'
,
@
toggleTreeLabels
,
...
'Checked'
,
'on'
);
siblingsMenu
=
uimenu
(
...
'Parent'
,
viewMenu
,
...
'Label'
,
'Show Sister Cell Relationships'
,
...
...
...
@@ -199,6 +206,7 @@ if(strcmp(get(handle,'Tag'),'cells'))
Figures
.
cells
.
menuHandles
.
undoMenu
=
undoMenu
;
Figures
.
cells
.
menuHandles
.
redoMenu
=
redoMenu
;
Figures
.
cells
.
menuHandles
.
labelsMenu
=
labelsMenu
;
Figures
.
cells
.
menuHandles
.
treeLabelsOn
=
treeLabelsOn
;
Figures
.
cells
.
menuHandles
.
playMenu
=
playMenu
;
Figures
.
cells
.
menuHandles
.
siblingsMenu
=
siblingsMenu
;
Figures
.
cells
.
menuHandles
.
imageMenu
=
imageMenu
;
...
...
@@ -208,6 +216,7 @@ else
Figures
.
tree
.
menuHandles
.
undoMenu
=
undoMenu
;
Figures
.
tree
.
menuHandles
.
redoMenu
=
redoMenu
;
Figures
.
tree
.
menuHandles
.
labelsMenu
=
labelsMenu
;
Figures
.
tree
.
menuHandles
.
treeLabelsOn
=
treeLabelsOn
;
Figures
.
tree
.
menuHandles
.
playMenu
=
playMenu
;
Figures
.
tree
.
menuHandles
.
siblingsMenu
=
siblingsMenu
;
Figures
.
tree
.
menuHandles
.
imageMenu
=
imageMenu
;
...
...
@@ -267,6 +276,21 @@ else
end
end
function
toggleTreeLabels
(
src
,
evnt
)
global
Figures
if
(
strcmp
(
get
(
Figures
.
cells
.
menuHandles
.
treeLabelsOn
,
'Checked'
),
'on'
))
set
(
Figures
.
cells
.
menuHandles
.
treeLabelsOn
,
'Checked'
,
'off'
);
set
(
Figures
.
tree
.
menuHandles
.
treeLabelsOn
,
'Checked'
,
'off'
);
UI
.
DrawCells
();
UI
.
DrawTree
(
Figures
.
tree
.
familyID
);
else
set
(
Figures
.
cells
.
menuHandles
.
treeLabelsOn
,
'Checked'
,
'on'
);
set
(
Figures
.
tree
.
menuHandles
.
treeLabelsOn
,
'Checked'
,
'on'
);
UI
.
DrawCells
();
UI
.
DrawTree
(
Figures
.
tree
.
familyID
);
end
end
function
toggleSiblings
(
src
,
evnt
)
global
Figures
if
(
strcmp
(
get
(
Figures
.
cells
.
menuHandles
.
siblingsMenu
,
'Checked'
),
'on'
))
...
...
This diff is collapsed.
Click to expand it.
src/MATLAB/+UI/DrawCells.m
+
37
−
27
View file @
30ed0ebb
...
...
@@ -114,7 +114,7 @@ if(strcmp(get(Figures.cells.menuHandles.labelsMenu, 'Checked'),'on'))
textColor
=
CellTracks
(
curTrackID
)
.
color
.
text
;
fontWeight
=
'bold'
;
shape
=
'o'
;
else
else
if
(
strcmp
(
get
(
Figures
.
cells
.
menuHandles
.
treeLabelsOn
,
'Checked'
),
'on'
))
%if the cell is not on the current tree
backgroundColor
=
CellTracks
(
curTrackID
)
.
color
.
backgroundDark
;
edgeColor
=
CellTracks
(
curTrackID
)
.
color
.
backgroundDark
;
...
...
@@ -122,6 +122,13 @@ if(strcmp(get(Figures.cells.menuHandles.labelsMenu, 'Checked'),'on'))
fontWeight
=
'normal'
;
shape
=
'square'
;
fontSize
=
fontSize
*
0.9
;
else
backgroundColor
=
[
0.5
0.5
0.5
];
edgeColor
=
[
0.5
0.5
0.5
];
textColor
=
[
0.5
0.5
0.5
];
fontWeight
=
'normal'
;
shape
=
'square'
;
fontSize
=
fontSize
*
0.1
;
end
%see if the cell is dead
...
...
@@ -168,6 +175,8 @@ if(strcmp(get(Figures.cells.menuHandles.labelsMenu, 'Checked'),'on'))
%draw label
if
(
isempty
(
Figures
.
tree
.
movingMitosis
))
%don't draw labels if dragging a mitosis
if
(
Figures
.
tree
.
familyID
==
CellTracks
(
curTrackID
)
.
familyID
||
...
strcmp
(
get
(
Figures
.
cells
.
menuHandles
.
treeLabelsOn
,
'Checked'
),
'on'
))
labelBGColor
=
edgeColor
;
if
(
~
Figures
.
cells
.
showInterior
)
labelBGColor
=
'none'
;
...
...
@@ -197,6 +206,7 @@ if(strcmp(get(Figures.cells.menuHandles.labelsMenu, 'Checked'),'on'))
'uicontextmenu'
,
Figures
.
cells
.
contextMenuHandle
);
end
end
end
elseif
(
strcmp
(
get
(
Figures
.
cells
.
menuHandles
.
siblingsMenu
,
'Checked'
),
'on'
))
%just draw sibling lines
for
i
=
1
:
length
(
HashedCells
{
Figures
.
time
})
...
...
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