Skip to content
Snippets Groups Projects
Commit 9995b8ff authored by leprob001's avatar leprob001
Browse files

GPS marker of unapplied soundsources are now displayed in black.

parent 78e408c6
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,9 @@ function [] = plotSoundsourceToaFromGps(pSoundsources) ...@@ -8,6 +8,9 @@ function [] = plotSoundsourceToaFromGps(pSoundsources)
global artoaDataInput artoaWorkspace artoaGui; global artoaDataInput artoaWorkspace artoaGui;
%% Initialize required variables
unappliedSoundsourcesColor = [0 0 0];
if isfield(artoaGui.editTimeOfArrival, 'axesToaFromGps') ... if isfield(artoaGui.editTimeOfArrival, 'axesToaFromGps') ...
&& isvalid(artoaGui.editTimeOfArrival.axesToaFromGps) && isvalid(artoaGui.editTimeOfArrival.axesToaFromGps)
% update color % update color
...@@ -28,12 +31,12 @@ if isfield(artoaGui.editTimeOfArrival, 'axesToaFromGps') ... ...@@ -28,12 +31,12 @@ if isfield(artoaGui.editTimeOfArrival, 'axesToaFromGps') ...
% update text % update text
for t = 1:length(artoaGui.editTimeOfArrival.textToaFromGps.(fnames{o})) for t = 1:length(artoaGui.editTimeOfArrival.textToaFromGps.(fnames{o}))
current = artoaGui.editTimeOfArrival.textToaFromGps.(fnames{o})(t); current = artoaGui.editTimeOfArrival.textToaFromGps.(fnames{o})(t);
current.Color = [1 1 1]; current.Color = unappliedSoundsourcesColor;
end end
clear current; clear current;
% update scatter % update scatter
artoaGui.editTimeOfArrival.scatterToaFromGps.(fnames{o}).MarkerEdgeColor = ... artoaGui.editTimeOfArrival.scatterToaFromGps.(fnames{o}).MarkerEdgeColor = ...
[1 1 1]; unappliedSoundsourcesColor;
end end
end end
return return
...@@ -60,7 +63,7 @@ for o = 1:length(fnames) ...@@ -60,7 +63,7 @@ for o = 1:length(fnames)
artoa.soundsources.colorregister.add(fnames{o}, artoaWorkspace.soundsourceColorRegister); artoa.soundsources.colorregister.add(fnames{o}, artoaWorkspace.soundsourceColorRegister);
soundsourceColor = artoaWorkspace.soundsourceColors(colorIndex, :); soundsourceColor = artoaWorkspace.soundsourceColors(colorIndex, :);
else else
soundsourceColor = [1 1 1]; soundsourceColor = unappliedSoundsourcesColor;
end end
% skip sound source if it went out of the water before the float range, or % skip sound source if it went out of the water before the float range, or
% went in the water after the float range % went in the water after the float range
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment