![]() BIOSCILAB
|
SCILAB 4.0 PAS-A-PAS SCILAB 4.0 STEP-BY-STEP Jacques-Deric Rouault CNRS / INRIA |
Volume
4
LE GRAPHISME Volume 4 GRAPHISM |
4.17
LA SOURIS GRAPHIQUE 4.17 THE GRAPHIC MOUSE |
Version 4.0.19 du 23 Décembre 2005 / Version 4.0.19, December 23th 2005 |
Scilab 3.1 - Scilab 4.0 / Windows - Linux |
ALLER A
L'INDEX GENERAL / GO TO
THE GENERAL INDEX |
ALLER A LA TABLE GENERALE / GO TO THE GENERAL TABLE |
4.18 LES CARACTERISTIQUES GRAPHIQUES / GRAPHIC CHARACTERISTICS |
4.17.01 Introduction / Introduction |
Graphic mouse Mouse Souris graphique |
4.17.10
xclick (P1) |
xclick (P1, Première forme,
First
form) |
// Program Spas41710A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.10A"); hf = scf (1); hf.figure_name = "4.17.10A"; xclick; disp ("Fin/end"); |
4.17.11
xclick (F2) |
xclick (F2 Seconde forme, Second
form) |
// Program Spas41711A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.11A"); hf = scf (1); hf.figure_name = "4.17.11A"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; [nb, x, y] = xclick (), |
// Program Spas41711B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.11B"); hf1 = scf (1); hf1.figure_name = "4.17.11B1"; ha1 = gca (); ha1.axes_visible="on"; ha1.grid = [2, 3]; hf2 = scf (2); hf2.figure_name = "4.17.11B2"; ha2 = gca (); ha2.axes_visible="on"; ha2.grid = [4, 5]; [nb, x, y] = xclick (), |
4.17.12
xclick (F3) |
xclick (F3 Troisième forme,
Third
form) |
// Program Spas41712A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.12A"); hf1 = scf (1); hf1.figure_name = "4.17.12A1"; ha1 = gca (); ha1.axes_visible="on"; ha1.grid = [2, 3]; hf2 = scf (2); hf2.figure_name = "4.17.12A2"; ha2 = gca (); ha2.axes_visible="on"; ha2.grid = [4, 5]; [nb, x, y, nf, nn] = xclick (), |
4.17.13
xclick (F4) |
xclick (F4 Quatrième forme,
Fourth
form) |
// Program Spas41713A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.13A"); hf = scf (1); hf.figure_name = "4.17.13A"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; [nb, x, y] = xclick (0); |
4.17.20
xgetmouse (P1) |
xgetmouse (P1 Première forme,
First
form) |
// Program Spas41720A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.20A"); hf = scf (1); hf.figure_name = "4.17.20A"; xgetmouse, disp ("Fin/end"); |
4.17.21
xgetmouse (F2) |
xgetmouse (F2 Seconde forme, Second
form) |
// Program Spas41721A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.21A"); hf = scf (1); hf.figure_name = "4.17.21A"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; v = xgetmouse ([%F, %F]), |
// Program Spas41721B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.21B"); hf = scf (1); hf.figure_name = "4.17.21B"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; for i = 1:10 do v = xgetmouse ([%F, %F]), end; delete (hf); |
-100 |
La fenetre
graphique a été fermée The graphic window is closed |
0 |
Le bouton
principal (gauche) a été enfoncé. The main button (left) is pressed |
1 |
Le bouton
central (molette) a été enfoncé. The central button (toothed wheel) is pressed |
2 |
Le bouton
secondaire (droit) a été enfoncé. The secondary button (right) is pressed |
3 |
Click rapide du
bouton principal (gauche) Quick click on the main button (left) |
4 |
Click rapide du
bouton central (molette) Quick click on the central button (toothed wheel) |
5 |
Click rapide du
bouton secondaire (droit) Quick click on the secondary button (right) |
10 |
Double
click du bouton principal (gauche) Double-click on the main button (left) |
11 |
Double
click du bouton central (molette) Double-click on the central button (toothed wheel) |
12 |
Double
click du bouton secondaire (droit) Double-click on the secondary button (right) |
4.17.22
xgetmouse (F3) |
xgetmouse (F3 Troisième
forme, Third
form) |
// Program Spas41722A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.22A"); hf = scf (1); hf.figure_name = "4.17.22A"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; v = xgetmouse ([%T, %F]), |
// Program Spas41722B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.22B"); lines (0); hf = scf (1); hf.figure_name = "4.17.22B"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; for i=1:100 do v = xgetmouse ([%T, %F]), end; |
-100 |
La fenetre
graphique a été fermée The graphic window is closed |
-1 |
Déplacement
de la souris Moving the mouse |
0 |
Le bouton
principal (gauche) a été enfoncé. The main button (left) is pressed |
1 |
Le bouton
central (molette) a été enfoncé. The central button (toothed wheel) is pressed |
2 |
Le bouton
secondaire (droit) a été enfoncé. The secondary button (right) is pressed |
3 |
Click rapide du
bouton principal (gauche) Quick click on the main button (left) |
4 |
Click rapide du
bouton central (molette) Quick click on the central button (toothed wheel) |
5 |
Click rapide du
bouton secondaire (droit) Quick click on the secondary button (right) |
10 |
Double
click du bouton principal (gauche) Double-click on the main button (left) |
11 |
Double
click du bouton central (molette) Double-click on the central button (toothed wheel) |
12 |
Double
click du bouton secondaire (droit) Double-click on the secondary button (right) |
4.17.23
xgetmouse (F4) |
xgetmouse (F4 Quatrième
forme, Fourth
form) |
// Program Spas41723A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.23A"); lines (0); hf = scf (1); hf.figure_name = "4.17.23A"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; xrects ([0; 0.1; 0.1; 0.1], 5); while 1==1 do v = xgetmouse ([%T, %T]), if (v(1)>0) & (v(1)<0.1) & (v(2)>0) & (v(2)<0.1) then break; end; end; |
-100 |
La fenetre
graphique a été fermée The graphic window is closed |
-5 |
Le bouton
secondaire (droit) a été relaché. The secondary button (right) is released |
-4 |
Le bouton
central (molette) a été relaché. The central button (toothed wheel) is released |
-3 |
Le bouton
principal (gauche) a été relaché. The main button (left) is released |
-1 |
Déplacement
de la souris Moving the mouse |
0 |
Le bouton
principal (gauche) a été enfoncé. The main button (left) is pressed |
1 |
Le bouton
central (molette) a été enfoncé. The central button (toothed wheel) is pressed |
2 |
Le bouton
secondaire (droit) a été enfoncé. The secondary button (right) is pressed |
3 |
Click rapide du
bouton principal (gauche) Quick click on the main button (left) |
4 |
Click rapide du
bouton central (molette) Quick click on the central button (toothed wheel) |
5 |
Click rapide du
bouton secondaire (droit) Quick click on the secondary button (right) |
10 |
Double
click du bouton principal (gauche) Double-click on the main button (left) |
11 |
Double
click du bouton central (molette) Double-click on the central button (toothed wheel) |
12 |
Double
click du bouton secondaire (droit) Double-click on the secondary button (right) |
4.17.24
xgetmouse (F5) |
Clavier
(xgetmouse, lecture) Keyboard (xgetmouse, reading) xgetmouse (F5 Cinquième forme, Fifth form) |
// Program Spas41724A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.24A"); lines (0); hf = scf (1); hf.figure_name = "4.17.24A"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; xrects ([0; 0.1; 0.1; 0.1], 5); while 1==1 do v = xgetmouse (0,[%F, %T]), if (v(1)>0) & (v(1)<0.1) & (v(2)>0) & (v(2)<0.1) then break; end; end; delete (hf); |
-1032..-1122 |
Relache de CTRL
+ de la
touche du clavier donnant le code Ascii Release of CTRL + the keyboard key corrresponding to the Ascii code. |
-975 |
Relache de
ALTGR + la
touche ç^ Release of ALTGR + the key ç^ |
-968 |
Relache de
ALTGR + la
touche @ Release of ALTGR + the key @ |
-224, -231..-233, -249 | Relache de
SHIFT + la
touche à ç è é ù Release of SHIFT + the key à ç è é ù |
-100 |
La fenetre
graphique a été fermée ou relache de la touche <d> The graphic window is closed or release of the key <d> |
-33..-122
|
Relache de la
touche du clavier donnant le code Ascii Release of the keyboard key corrresponding to the Ascii code. |
-32 |
Relache de la
touche espace ou à Release of the key space or à |
-27 |
Relache de la
touche Echap Release of the key Escape |
-23..25 |
Relache des
touches é è ç Release of the keys é è ç |
-13 |
Relache de la
touche Entrée Release of the key Enter |
-9 |
Relache de la
touche Tabulation Release of the key Tab |
-8 |
Relache de la
touche <-- Release== of the key Backspace |
-7 |
Relache de la
touche ù Release of the key ù |
7 |
Frappe de la
touche ù Strike of the key ù |
8 |
Frappe de la
touche <-- Strike of the key Backspace |
9 |
Frappe de la
touche Tabulation Strike of the key Tab |
13 |
Frappe de la
touche Entrée Strike of the key Enter |
23..25 |
Frappe des
touches é è ç Strike of the keys é è ç |
27 |
Frappe de la
touche Echap Strike of the key Esc |
32 |
Frappe de la
touche espace ou à Strike of the key space or à |
33..122 |
Frappe de la
touche du clavier donnant le code Ascii Strike of the keyboard key corrresponding to the Ascii code. |
224,
231..233,
249 |
Frappe de SHIFT
+ la
touche à ç è é ù Strike of SHIFT + the key à ç è é ù |
968 |
Frappe de ALTGR
+ la
touche @ Strike of ALTGR + the key @ |
975 |
Frappe de ALTGR
+ la
touche ç^ Strike of ALTGR + the key ç^ |
1008..1122 |
Frappe de CTRL
+ de la
touche du clavier donnant le code Ascii Strike of CTRL + the keyboard key corrresponding to the Ascii code. |
0 |
Frappe, relache de la
touche Impr écran Strike, relaesa of the key Screen Print |
13, -13 |
Frappe, relache de la
touche Entrée Strike, release of the key Enter |
32, -32 |
Frappe, relache de la
touche espace Strike, relaesa of the key space |
33..122 |
Frappe, relache de la
touche du clavier donnant le code Ascii Strike, release of the keyboard key corrresponding to the Ascii code. |
163, -163 |
Frappe, relache de la
touche £ Strike, release of the key £ |
167, -167 |
Frappe, relache de la
touche § Strike, release of the key § |
176, -176 |
Frappe, relache de la
touche ° Strike, release of the key ° |
178, -178 |
Frappe, relache de la
touche ² Strike, release of the key ² |
181, -181 |
Frappe, relache de la
touche µ Strike, release of the key µ |
224, -224 |
Frappe, relache de la
touche à Strike, release of the key à |
231, -231 |
Frappe, relache de la
touche ç Strike, release of the key ç |
232, -232 |
Frappe, relache de la
touche è Strike, release of the key è |
233, -233 |
Frappe, relache de la
touche é Strike, release of the key é |
249, -249 |
Frappe, relache de la
touche ù Strike, release of the key ù |
1000, -1000 |
Frappe, relache de la
touche <Ctrl><à> Strike, release of the key <Ctrl><à> |
1001..1126 -1026...-1001 |
Frappe, relache de CTRL
+ de la
touche du clavier A..Z donnant le code Ascii Strike, release of CTRL + the keyboard key A..Z corrresponding to the Ascii code. |
1035, -1035 |
Frappe, relache de la
touche # Strike, release of the key # |
1064, -1064 |
Frappe, relache de la
touche @ Strike, release of the key @ |
1091, -1091 |
Frappe, relache de la
touche [ Strike, release of the key [ |
1092, -1092 |
Frappe, relache de la
touche \ Strike, release of the key \ |
1093, -1093 |
Frappe, relache de la
touche ] Strike, release of the key ] |
1094, -1094 |
Frappe, relache de la
touche ^ (<AltGr><ç>) Strike, release of the key ^ (<AltGr><ç>) |
1096, -25672 25672, -1096 |
Frappe, relache de la
touche ` Strike, release of the key ` |
1123, -1123 |
Frappe, relache de la
touche { Strike, release of the key { |
1124, -1124 |
Frappe, relache de la
touche | Strike, release of the key | |
1125, -1125 |
Frappe, relache de la
touche } Strike, release of the key } |
1126, -33382 33382, -1126 |
Frappe, relache de la
touche ~ Strike, release of the key ~ |
65289, -65289 |
Frappe, relache des
touches Pause Strike, release of the key Pause |
65299, -65299 |
Frappe, relache de la
touche <--, tabulation Strike, release of the keys BackSpace, Tab |
65300, -65300 |
Frappe, relache des
touches Pause Strike, release of the key Pause |
65307, -65307 |
Frappe, relache de la
touche Arret défill Strike, release of the key Scrolling |
65360, -65360 |
Frappe, relache de la
touche Home (fléche en haut à gauche) Strike, release of the key Home |
65361, -65361 |
Frappe, relache de la
touche déplacement à gauche Strike, release of the key Move left |
65362, -65362 |
Frappe, relache de la
touche déplacement en haut Strike, release of the key Move up |
65363, -65363 |
Frappe, relache de la
touche déplacement à droite Strike, release of the key Move right |
65364, -65364 |
Frappe, relache de la
touche déplacement en bas Strike, release of the key Move down |
65365, -65365 |
Frappe, relache de la
touche déplacement tout en haut Strike, release of the key Move top |
65366, -65366 |
Frappe, relache de la
touche déplacement tout en bas Strike, release of the key Move bottom |
65367, -65367 |
Frappe, relache de la
touche Fin Strike, release of the key End |
65379, -65379 |
Frappe, relache de la
touche Inser Strike, release of the key Insert |
65408, -65408 |
Frappe, relache de la
touche 5 du pavé numérique désactivé Strike, release of the key 5 of the numeric keypad desactivated |
65470..65481 -65481..-65470 |
Frappe, relache des
touches <F1> ... <F12> Strike, release of the keys <F1> ... <F12> |
65538, -65535 |
Frappe, relache de la
touche Suppr Strike, release of the key Del |
// Program Spas41724B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.24B"); lines (0); hf = scf (1); hf.figure_name = "4.17.24B"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; xrects ([0; 0.1; 0.1; 0.1],5); while 1==1 do v = xgetmouse (0,[%F, %F]), if (v(1)>0) & (v(1)<0.1) & (v(2)>0) & (v(2)<0.1) then break; end; end; delete (hf); |
4.17.25
xgetmouse (F6) |
xgetmouse (F6 Sixième
forme, Sixth
form) |
// Program Spas41725A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.25A"); lines (0); hf = scf (1); hf.figure_name = "4.17.25A"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; xrects ([0; 0.1; 0.1; 0.1],5); while 1==1 do v = xgetmouse (0,[%F, %F]), if (v(1)>0) & (v(1)<0.1) & (v(2)>0) & (v(2)<0.1) then break; end; end; delete (hf); |
4.17.30
setevenhandler |
seteventhandler |
// Program Spas41730A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.30A"); //-------------------------------------------- function manage_event (win,mx,my,event); mprintf ("win = %d - mx = %f - my = %f event = %d\n", win, mx, my, event); endfunction; //-------------------------------------------- manage_event (5, 2.1, 3.2, 10); |
// Program Spas41730B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.30B"); //-------------------------------------------- function manage_event (win,mx,my,event); [x,y]=xchange(mx,my,'i2f'); mprintf ("win = %d - x = %f - y = %f event = %d\n", win, x, y, event); endfunction; //-------------------------------------------- global finend; lines (0); hf = scf (1); hf.figure_name = "4.17.30B"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; xrects ([0; 0.1; 0.1; 0.1],5); seteventhandler ("manage_event"); seteventhandler (""); delete (hf); |
// Program Spas41730C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.30C"); //-------------------------------------------- function manage_event (win,mx,my,event); global finend; [x,y]=xchange(mx,my,'i2f'); mprintf ("win = %d - x = %f - y = %f event = %d\n", win, x, y, event); if (x>0) & (x<0.1) & (y>0) & (y<0.1) then finend=%T; return; else finend=%F; return; end; endfunction; //-------------------------------------------- global finend; lines (0); hf = scf (1); hf.figure_name = "4.17.30C"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; xrects ([0; 0.1; 0.1; 0.1],5); while 1==1 do seteventhandler ("manage_event"); finend, if finend then abort; end; end; seteventhandler (""); delete (hf); |
4.17.40
locate (P1) |
locate
(F1 Première forme, First
form) |
// Program Spas41740A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.40A"); hf = scf (1); hf.figure_name = "4.17.40A"; ha = gca (); ha.axes_visible="on"; ha.grid = [2, 3]; points = locate (), delete (hf); |
4.17.41
locate (F2) |
locate (F2 Seconde forme, Second
form) |
// Program Spas41741A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.41A"); hf = scf (1); hf.figure_name = "4.17.41A"; ha = gca (); ha.axes_visible="on"; ha.box = "on"; points = locate (4,1), xpause (5000000); delete (hf); |
// Program Spas41741B
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.41B"); hf = scf (1); hf.figure_name = "4.17.41B"; ha = gca (); ha.axes_visible="on"; ha.box = "on"; points = locate (4,1), hh = gce (), delete (hf); |
// Program Spas41741C
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.41C"); hf = scf (1); hf.figure_name = "4.17.41C"; ha = gca (); ha.axes_visible="on"; ha.box = "on"; points = locate (4,0), xpause (5000000); delete (hf); |
4.17.42
locate (F3) |
locate (F3 Troisième forme,
Third
form) |
// Program Spas41742A
// Designed for Scilab 3.1 & 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.17.42A"); hf = scf (1); hf.figure_name = "4.17.42A"; ha = gca (); ha.axes_visible="on"; ha.box = "on"; points = locate (-1,1), xpause (5000000); delete (hf); |
4.17.98
Mon point de vue /
My viewpoint |
4.17.99
Zones d'ombre /
Shadowy areas |
ALLER A
L'INDEX GENERAL / GO TO
THE GENERAL INDEX |
ALLER A LA TABLE GENERALE / GO TO THE GENERAL TABLE |
4.18 LES CARACTERISTIQUES GRAPHIQUES / GRAPHIC CHARACTERISTICS |