1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
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
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.
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
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 # ------------------------------------------------------------------------ */
26 description "creaMaracasVisu::ColorBar box example. "
28 author "eduardo.davila@creatis.insa-lyon.fr"
46 new SliderMinMax sliderMM_h
47 set sliderMM_h.Orientation 1
48 set sliderMM_h.InW 300
50 set sliderMM_h.InMax 350
51 set sliderMM_h.InMin 0
52 set sliderMM_h.ShowLabels 1
54 new SliderMinMax sliderMM_v
55 set sliderMM_v.Orientation 0
56 set sliderMM_v.InW 300
58 set sliderMM_v.InMax 350
59 set sliderMM_v.InMin 0
60 set sliderMM_v.ShowLabels 1
63 set colorB_h.Orientation 1
66 set colorB_h.InMax 350
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"
75 set colorB_v.Orientation 0
78 set colorB_v.InMax 350
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"
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