1
function [Tree,windows]=do_navigator(scs_m,windows)
2
//build the tree representation
5
[xx,yy,lp]=build_scs_tree(scs_m);
7
kw=find(windows(:,1)==100000)
9
windows=[windows;[100000,get_new_window(windows)]]
12
xset('window',windows(kw,2))
13
xbasc();xset('default');xselect();
15
mnx=min(xx)-0.1;mxx=max(xx)+0.1
24
x0=[mnx,mnx+dx/4,mnx+dx/2]
26
bnds=[mnx,min(yy)-0.2, mxx,max(yy)+0.2];
27
xsetech([-1/6 -1/6 8/6 8/6],bnds)
31
xx=[xx(1,1);xx(2,:)'];
32
yy=[yy(1,1);yy(2,:)'];
33
plot2d(xx,yy,-9,'000')
34
xtitle('Navigator window')
38
xstring(xx(k),yy(k),string(k))
41
r=xstringl(x0(1),y0,'X');h=r(4);
44
xrect(x0(kx),bnds(4),x0(kx+1)-x0(kx),bnds(4)-bnds(2))
45
xclip([x0(kx),bnds(4),x0(kx+1)-x0(kx),bnds(4)-bnds(2)])
47
if k==1 then path=[]; else path=lp(k-1);end
50
Path=lstcat(Path,pk,3,8);
52
Path=lstcat(Path,1,2,1);
53
xstring(x0(kx),y0,string(k)+': '+scs_m(Path))
59
xrect(x0(kx),bnds(4),x0(kx+1)-x0(kx),bnds(4)-bnds(2))
60
xclip([x0(kx),bnds(4),x0(kx+1)-x0(kx),bnds(4)-bnds(2)])
64
//build data structure
65
Tree=tlist(['scs_tree','x','y','paths','orig'],xx,yy,lp,super_path)