![]() 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.30 LE
HANDLE AGREGATION 4.30 THE HANDLE AGREGATION |
Version 4.0.29 du 31 Janvier 2006 / Version 4.0.29, January 31th 2006 |
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.31 LE HANDLE LEGEND / THE HANDLE LEGEND |
4.30.01
Présentation / Presentation |
Agregation |
4.30.02
Liste des champs / Fields list |
// Program Spas43002A
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.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.30.02A"; ha = gca (); xrects (rectangles,colors); hg = gce (), |
4.30.03
Parent et enfants / Parent and children |
// Program Spas43003A
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.03A"); 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.30.03A"; ha = gca (); xrects (rectangles,colors); hg = gce (); hr1 = hg.children (1), hr2 = hg.children (2), |
// Program Spas43003B
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.03B"); 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.30.03B1"; ha = hf.children; xrects (rectangles,colors); hg = gce (); hr1 = hg.children (1), hr2 = hg.children (2), xpause (5000000); hf.figure_name = "4.30.03B2"; hg.children (1).visible = "on"; hg.children (2).visible = "off"; xpause (5000000); hf.figure_name = "4.30.03B3"; hg.children (1).visible = "off"; hg.children (2).visible = "on"; xpause (5000000); delete (hf); |
4.30.04
Déclaration / Declaring |
// Program Spas43004A
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.04A"); hf = scf (1); hf.figure_name = "4.30.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]), |
// Program Spas43004B
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.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 (), |
// Program Spas43004C
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.04C"); 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 = hf.children; xrects (rectangles,colors); hg = ha.children, |
4.30.10
visible |
visible
(Agregation) |
// Program Spas43010A
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.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.30.10A1"; ha = hf.children; ha.axes_visible = "on"; ha.box = "on"; xrects (rectangles,colors); hg = gce (); xpause (5000000); hf.figure_name = "4.30.10A2"; hg.visible = "off"; xpause (5000000); hf.figure_name = "4.30.10A3"; hg.visible = "on"; xpause (5000000); delete (hf); |
// Program Spas43010B
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.10B"); 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.30.10B1"; ha = gca (); ha.axes_visible = "on"; ha.box = "on"; ha.visible = "off"; xrects (rectangles,colors); hg = gce (); xpause (5000000); hf.figure_name = "4.30.10B2"; ha.visible = "on"; hg.visible = "on"; xpause (5000000); hf.figure_name = "4.30.10B3"; hg.children (1).visible = "on"; hg.children (2).visible = "on"; xpause (5000000); delete (hf); |
4.30.50
Function glue |
glue
(Agregation) |
// Program Spas43050A
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.50A"); hf = scf (1); hf.figure_name = "4.30.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.30.50A2"; hg.visible = "off"; xpause (5000000); delete (hf); |
// Program Spas43050B
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.50B"); hf = scf (1); hf.figure_name = "4.30.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), xpause (5000000); delete (hf); |
4.30.51
Function unglue |
unglue
(Agregation) |
// Program Spas43051A
// Designed for Scilab 3.1 // Copyright Jacques-Deric Rouault, CNRS, INRIA disp ("4.30.51A"); hf = scf (1); hf.figure_name = "4.30.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, xpause (5000000); delete (hf); |
ALLER A
L'INDEX GENERAL / GO TO
THE GENERAL INDEX |
ALLER A LA TABLE GENERALE / GO TO THE GENERAL TABLE |
4.31 LE HANDLE LEGEND / THE HANDLE LEGEND |