-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDrawSigns.m
More file actions
29 lines (29 loc) · 959 Bytes
/
DrawSigns.m
File metadata and controls
29 lines (29 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%% Draw evacualation signs and corridor's boundary
hold on;
p1 = plot(boundPos(:, 1), boundPos(:, 2), 'color', [217, 83, 25] / 255, 'linewidth', 1.4);
p2 = scatter(signPos(:, 1), signPos(:, 2), 's');
set(get(get(p1,'Annotation'),'LegendInformation'),'IconDisplayStyle','off');
% set(get(get(p2,'Annotation'),'LegendInformation'),'IconDisplayStyle','off');
legend('Evacuation Sign');
for cnt = 1: length(signPos)
switch signType(cnt)
case 0
showTypeText = 'Exit';
offset = 30;
case 1
showTypeText = 'Left';
if(cnt ~= length(signPos))
offset = -30;
else
offset = 30;
end
case 2
showTypeText = 'right';
offset = -30;
case 3
showTypeText= 'two-way';
offset = -30;
end
text(signPos(cnt, 1) - 25, signPos(cnt, 2) + offset, showTypeText, 'FontSize', 15);
end
hold off;