]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/appli/exampleBars.bbs
a402b752c8a8bc2e514a3323206443de6d3f7f79
[creaMaracasVisu.git] / bbtk / bbs / appli / exampleBars.bbs
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and 
10 #  abiding by the rules of distribution of free software. You can  use, 
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
12 #  license as circulated by CEA, CNRS and INRIA at the following URL 
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability. 
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */ 
25
26 description "creaMaracasVisu::ColorBar box example. "
27 category "example"
28 author "eduardo.davila@creatis.insa-lyon.fr"
29
30 load std
31 load wx
32 load creaMaracasVisu
33
34 new LayoutSplit s
35         set s.Orientation H
36 new LayoutSplit ss
37         set ss.Orientation H
38
39 new LayoutLine s1
40 new LayoutLine s2
41
42 set s1.Orientation V
43 set ss.Orientation H
44 set s2.Orientation V
45
46 new SliderMinMax sliderMM_h
47 set sliderMM_h.Orientation 1
48 set sliderMM_h.InW 300
49 set sliderMM_h.InH 90
50 set sliderMM_h.InMax 350
51 set sliderMM_h.InMin 0
52 set sliderMM_h.ShowLabels 1
53
54 new SliderMinMax sliderMM_v
55 set sliderMM_v.Orientation 0
56 set sliderMM_v.InW 300
57 set sliderMM_v.InH 30
58 set sliderMM_v.InMax 350
59 set sliderMM_v.InMin 0
60 set sliderMM_v.ShowLabels 1
61
62 new ColorBar colorB_h
63 set colorB_h.Orientation 1
64 set colorB_h.InW 300
65 set colorB_h.InH 50
66 set colorB_h.InMax 350
67 set colorB_h.InMin 0
68 set colorB_h.Reds " 0 255 0 255 220 30"
69 set colorB_h.Greens " 0 220 220 100 240 55"
70 set colorB_h.Blues " 255 0 15 0 0 0"
71 set colorB_h.Values " 0 30 70 130 250 310"
72
73
74 new ColorBar colorB_v
75 set colorB_v.Orientation 0
76 set colorB_v.InW 300
77 set colorB_v.InH 50
78 set colorB_v.InMax 350
79 set colorB_v.InMin 0
80 set colorB_v.Reds " 0 255 0 255 220 30"
81 set colorB_v.Greens " 0 220 220 100 240 55"
82 set colorB_v.Blues " 255 0 15 0 0 0"
83 set colorB_v.Values " 0 30 70 130 250 310"
84
85
86 connect s1.Widget                               s.Widget1
87 connect  s2.Widget                              s.Widget2
88 connect sliderMM_h.Widget               s1.Widget1 
89 connect colorB_h.Widget                 s1.Widget2 
90 connect ss.Widget                               s2.Widget1 
91 connect sliderMM_v.Widget               ss.Widget1 
92 connect colorB_v.Widget                 ss.Widget2 
93
94 exec s