![]() 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.29 LE HANDLE COMPOUND 4.29 THE HANDLE COMPOUND |
Version 4.0.29 du 31 Janvier 2006 Version 4.0.29, January 31th 2006 |
Scilab 4.0 / Windows - Linux |
4.24 LE HANDLE LABEL 4.24 THE HANDLE LABEL |
ALLER A L'INDEX GENERAL GO TO THE GENERAL INDEX |
ALLER A LA TABLE GENERALE GO TO THE GENERAL TABLE |
4.30 LE HANDLE AGREGATION 4.30 THE HANDLE AGREGATION |
4.29.01 Présentation 4.29.01 Presentation |
Compound |
4.29.02 Liste des champs 4.29.02 Fields list |
type (Compound) |
// Program Spas42902A // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.02A"); rect1 = [0.0; 1.0; 1.0; 1.0]; rect2 = [0.1; 0.9; 0.8; 0.8]; rectangles = []; rectangles (1,1) = rect1 (1); rectangles (2,1) = rect1 (2); rectangles (3,1) = rect1 (3); rectangles (4,1) = rect1 (4); rectangles (:,2) = rect2 (:); colors = []; colors (1) = -2; colors (2) = -3; hf = scf (1); hf.figure_name = "4.29.02A"; ha = gca (); xrects (rectangles,colors); hg = gce (), |
// Program Spas42902B // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.02B"); rect1 = [0.0; 1.0; 1.0; 1.0]; rect2 = [0.1; 0.9; 0.8; 0.8]; rectangles = []; rectangles (1,1) = rect1 (1); rectangles (2,1) = rect1 (2); rectangles (3,1) = rect1 (3); rectangles (4,1) = rect1 (4); rectangles (:,2) = rect2 (:); colors = []; colors (1) = -2; colors (2) = -3; hf = scf (1); ha = gca (); xrects (rectangles,colors); hg = gce (); hg.type, |
4.29.03 Parent et enfants 4.29.03 Parent and children |
parent (Compound) |
4.29.04 Déclaration 4.29.04 Declaring |
glue (Compound) parent (Compound) |
// Program Spas42904A // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.04A"); hf = scf (1); hf.figure_name = "4.29.04A"; ha = gca (); ha.axes_visible = "on"; ha.box = "on"; xrect (0.1, 0.9, 0.8, 0.8); hr1 = gce (); xrect (0.2, 0.8, 0.6, 0.6); hr2 = gce (); hg = glue ([hr1, hr2]), delete (hf); |
// Program Spas42904B // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.04B"); rect1 = [0.0; 1.0; 1.0; 1.0]; rect2 = [0.1; 0.9; 0.8; 0.8]; rectangles = []; rectangles (1,1) = rect1 (1); rectangles (2,1) = rect1 (2); rectangles (3,1) = rect1 (3); rectangles (4,1) = rect1 (4); rectangles (:,2) = rect2 (:); colors = []; colors (1) = -2; colors (2) = -3; hf = scf (1); xrects (rectangles,colors); hg = gce (), delete (hf); |
4.29.10 visible |
visible (Compound) |
// Program Spas42910A // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.10A"); rect1 = [0.1; 0.9; 0.8; 0.8]; rect2 = [0.2; 0.8; 0.6; 0.6]; rectangles = []; rectangles (1,1) = rect1 (1); rectangles (2,1) = rect1 (2); rectangles (3,1) = rect1 (3); rectangles (4,1) = rect1 (4); rectangles (:,2) = rect2 (:); colors = []; colors (1) = -2; colors (2) = -3; hf = scf (1); hf.figure_name = "4.29.10A1"; ha = gca (); ha.axes_visible = "on"; ha.box = "on"; xrects (rectangles,colors); hg = gce (); xpause (5000000); hf.figure_name = "4.29.10A2"; hg.visible = "off"; xpause (5000000); hf.figure_name = "4.29.10A3"; hg.visible = "on"; xpause (5000000); delete (hf); |
// Program Spas42910B // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.10A"); rect1 = [0.1; 0.9; 0.8; 0.8]; rect2 = [0.2; 0.8; 0.6; 0.6]; rectangles = []; rectangles (1,1) = rect1 (1); rectangles (2,1) = rect1 (2); rectangles (3,1) = rect1 (3); rectangles (4,1) = rect1 (4); rectangles (:,2) = rect2 (:); colors = []; colors (1) = -2; colors (2) = -3; hf = scf (1); hf.figure_name = "4.29.10B1"; ha = gca (); ha.axes_visible = "on"; ha.box = "on"; ha.visible = "off"; xrects (rectangles,colors); hg = gce (); xpause (5000000); hf.figure_name = "4.29.10B2"; ha.visible = "on"; hg.visible = "on"; xpause (5000000); hf.figure_name = "4.29.10B3"; hg.children (1).visible = "on"; hg.children (2).visible = "on"; xpause (5000000); delete (hf); |
4.29.20 user_data |
user_data (Compound) |
// Program Spas42920A // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.20A"); rect1 = [0.1; 0.9; 0.8; 0.8]; rect2 = [0.2; 0.8; 0.6; 0.6]; rectangles = []; rectangles (1,1) = rect1 (1); rectangles (2,1) = rect1 (2); rectangles (3,1) = rect1 (3); rectangles (4,1) = rect1 (4); rectangles (:,2) = rect2 (:); colors = []; colors (1) = -2; colors (2) = -3; hf = scf (1); ha = gca (); ha.axes_visible = "on"; ha.box = "on"; xrects (rectangles,colors); hg = gce (); hf.figure_name = "4.29.20A1"; xpause (5000000); hf.figure_name = "4.29.20A2"; hg.user_data = [hg.children(1).foreground, hg.children(2).foreground]; hg.user_data, hg.children(1).foreground = 4; hg.children(2).foreground = 5; xpause (5000000); hf.figure_name = "4.29.20A3"; hg.children(1).foreground = hg.user_data (1); hg.children(2).foreground = hg.user_data (2); xpause (5000000); delete (hf); |
4.29.50 Fonction glue 4.29.50 Function glue |
glue (Compound) |
// Program Spas42950A // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.50A"); hf = scf (1); hf.figure_name = "4.29.50A1"; xrect (0.1, 0.9, 0.8, 0.8); hr1 = gce (); xrect (0.2, 0.8, 0.6, 0.6); hr2 = gce (); xsegs ([0, 1], [0, 1]); hs1 = gce (); hh = [hr1, hr2, hs1], hg = glue (hh), xpause (5000000); hf.figure_name = "4.29.50A2"; hg.visible = "off"; |
// Program Spas42950B // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.50BA"); hf = scf (1); hf.figure_name = "4.29.50B"; ha = gce (); xrect (0.1, 0.9, 0.8, 0.8); hr1 = gce (); xrect (0.2, 0.8, 0.6, 0.6); hr2 = gce (); xsegs ([0, 1], [0, 1]); hs1 = gce (); xsegs ([0, 1], [1, 0]); hs2 = gce (); hh1 = [hr1, hs1]; hg1 = glue (hh1); hh2 = [hr2, hs2]; hg2 = glue (hh2); ha.children (1), ha.children (2), |
4.29.51 Fonction unglue 4.29.51 Function unglue |
unglue (Compound) |
// Program Spas42951A // Designed for Scilab 4.0 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.29.51A"); hf = scf (1); hf.figure_name = "4.29.51A1"; ha = gca (); xrect (0.1, 0.9, 0.8, 0.8); hr = gce (); xrect (0.2, 0.8, 0.6, 0.6); hs = gce (); ha.children, xpause (5000000); hh = [hr,hs]; hg = glue (hh); ha.children, xpause (5000000); vh = unglue (hg); ha.children, |
4.24 LE HANDLE LABEL 4.24 THE HANDLE LABEL |
ALLER A L'INDEX GENERAL GO TO THE GENERAL INDEX |
ALLER A LA TABLE GENERALE GO TO THE GENERAL TABLE |
4.30 LE HANDLE AGREGATION 4.30 THE HANDLE AGREGATION |