Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
artoa4argo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
argoTools
artoa4argo
Commits
4779bcf9
Commit
4779bcf9
authored
5 years ago
by
leprob001
Browse files
Options
Downloads
Patches
Plain Diff
Updated CloseRequestFcn functions.
parent
f64acf12
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/+artoa/+controller/+track/+parameter/close.m
+17
-16
17 additions, 16 deletions
lib/+artoa/+controller/+track/+parameter/close.m
lib/+artoa/+controller/+track/+trajectoryOutput/close.m
+17
-15
17 additions, 15 deletions
lib/+artoa/+controller/+track/+trajectoryOutput/close.m
with
34 additions
and
31 deletions
lib/+artoa/+controller/+track/+parameter/close.m
+
17
−
16
View file @
4779bcf9
function
[
]
=
close
(
~
,
~
)
%CLOSE
REQ
Cleans up all variables that are used by the trackParameter GUI.
% Changes to the data
are dropp
ed.
function
[
]
=
close
(
pSource
,
~
)
%CLOSE Cleans up all variables that are used by the trackParameter GUI.
% Changes to the data
is not being modifi
ed.
global
artoaGui
;
%% Close the figure
%% Setup variables
figureName
=
'trackParameter'
;
try
delete
(
artoaGui
.
figures
.
trackParameter
);
catch
delete
(
gcf
);
%% Close the figure
if
nargin
>
1
&&
isvalid
(
pSource
)
delete
(
pSource
);
elseif
isfield
(
artoaGui
.
figures
,
figureName
)
&&
isvalid
(
artoaGui
.
figures
.
(
figureName
))
delete
(
artoaGui
.
figures
.
(
figureName
));
end
%% Clean up variables
try
artoaGui
=
rmfield
(
artoaGui
,
'trackParameter'
);
catch
if
artoa
.
data
.
hasMember
(
artoaGui
,
{
figureName
})
artoaGui
=
rmfield
(
artoaGui
,
figureName
);
end
try
artoa
Gui
.
figures
=
rmfield
(
artoaGui
.
figures
,
'trackParameter'
);
catch
if
artoa
.
data
.
hasMember
(
artoaGui
,
{
'
figures
'
,
figureName
})
artoaGui
.
figures
=
rmfield
(
artoaGui
.
figures
,
figureName
);
end
% Workspace is not cleaned, because we need the values after closing the
% window
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib/+artoa/+controller/+track/+trajectoryOutput/close.m
+
17
−
15
View file @
4779bcf9
function
[
]
=
close
(
~
,
~
)
%CLOSE
REQ
Cleans up all variables that are used by the trajectoryOutput GUI.
% Changes to the data
are dropp
ed.
function
[
]
=
close
(
pSource
,
~
)
%CLOSE Cleans up all variables that are used by the trajectoryOutput GUI.
% Changes to the data
is not being modifi
ed.
global
artoaGui
;
%% Close the figure
%% Setup variables
figureName
=
'trajectoryOutput'
;
try
delete
(
artoaGui
.
figures
.
trajectoryOutput
);
catch
delete
(
gcf
);
%% Close the figure
if
nargin
>
1
&&
isvalid
(
pSource
)
delete
(
pSource
);
elseif
isfield
(
artoaGui
.
figures
,
figureName
)
&&
isvalid
(
artoaGui
.
figures
.
(
figureName
))
delete
(
artoaGui
.
figures
.
(
figureName
));
end
%% Clean up variables
try
artoaGui
=
rmfield
(
artoaGui
,
'trajectoryOutput'
);
catch
if
artoa
.
data
.
hasMember
(
artoaGui
,
{
figureName
})
artoaGui
=
rmfield
(
artoaGui
,
figureName
);
end
try
artoa
Gui
.
figures
=
rmfield
(
artoaGui
.
figures
,
'trajectoryOutput'
);
catch
if
artoa
.
data
.
hasMember
(
artoaGui
,
{
'
figures
'
,
figureName
})
artoaGui
.
figures
=
rmfield
(
artoaGui
.
figures
,
figureName
);
end
% Workspace is not cleaned, because we need the values after closing the
% window
end
end
\ No newline at end of file
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