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 # ------------------------------------------------------------------------ */
32 new FileSelector filselect0
33 set filselect0.Message "Select image"
34 set filselect0.Wildcard "*.mhd"
35 #set filselect0.DefaultDir "C:\Creatis\creaAppli\Data\Images"
36 new MetaImageReader gimm
37 connect filselect0.Out gimm.In
38 new ImageCastToUShort image
39 connect gimm.Out image.In
41 new VolumeRendering volrend
42 connect image.Out volrend.In1
43 new SurfaceRendering surrend
44 # connect image.Out surrend.In0
48 connect gimm.Out view1.In
51 connect view1.Interactor1 cut.Interactor
52 connect view1.Renderer1 cut.Renderer
53 connect image.Out cut.In
57 connect image.Out view2.In
59 connect view1.BoxChange cut.BoxExecute
61 new LayoutSplit layoutsplit1
62 set layoutsplit1.Orientation V
63 connect volrend.Widget layoutsplit1.Widget1
64 connect surrend.Widget layoutsplit1.Widget2
66 new LayoutSplit layoutsplit2
67 set layoutsplit2.Orientation H
68 connect layoutsplit1.Widget layoutsplit2.Widget1
69 #connect view1.Widget layoutsplit2.Widget2
72 connect laytab.Widget layoutsplit2.Widget2
73 connect view1.Widget laytab.Widget2
74 connect view2.Widget laytab.Widget1
76 new LayoutLine layoutline1
77 connect cut.Widget layoutline1.Widget1
79 new LayoutSplit layoutsplit3
80 set layoutsplit3.Orientation H
81 set layoutsplit3.Proportion 80
82 set layoutsplit3.WinTitle "Cutting Tool"
83 connect layoutline1.Widget layoutsplit3.Widget2
84 connect layoutsplit2.Widget layoutsplit3.Widget1
91 connect view2.Renderer1 volrend.Renderer
92 connect view2.Renderer1 surrend.Renderer
97 #connect cut.BoxChange volrend.BoxExecute
98 #connect cut.BoxChange volrend.BoxExecute