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::ContourVOI box example. "
28 author "eduardo.davila@creatis.insa-lyon.fr"
37 new MetaImageReader reader
38 include std/boxes/bbPrependPackageDataPath.bbs
39 new PrependPackageDataPath prependDatapath
40 set prependDatapath.In "vtk/hola.mhd"
41 connect prependDatapath.Out reader.In
44 set vmA.nTypeView "-1"
45 connect reader.Out vmA.In
47 new ContourVOI countourvoi
48 connect vmA.wxVtkBaseView1 countourvoi.wxVtkBaseView
49 connect reader.Out countourvoi.In
51 new CommandButton commandbutton
52 set commandbutton.Label "RUN VOI"
53 # set commandbutton.In "exec countourvoi; exec viewernv;"
56 set sizerA.Orientation H
57 connect countourvoi.Widget sizerA.Widget1
58 connect commandbutton.Widget sizerA.Widget2
60 new LayoutSplit mainSplit
61 set mainSplit.Proportion 10
62 connect sizerA.Widget mainSplit.Widget1
63 connect vmA.Widget mainSplit.Widget2
66 new ImageRegion imageregion
67 connect countourvoi.Index imageregion.Index
68 connect countourvoi.Size imageregion.Size
70 new ExtractImageFilter extractImagefilter
71 connect reader.Out extractImagefilter.In
72 connect imageregion.Out extractImagefilter.Region
74 new ImageChangeInformation imagechangeinformation
75 connect extractImagefilter.Out imagechangeinformation.In
77 new ViewerMPR viewernv
78 #new Viewer2D viewernv
79 ## new ViewerNV viewernv
80 ## set viewernv.nTypeView "-1"
81 connect imagechangeinformation.Out viewernv.In
82 connect commandbutton.BoxChange countourvoi.BoxExecute
83 connect commandbutton.BoxChange viewernv.BoxExecute