]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/appli/exampleVOI_02.bbs
Support #1768 CREATIS Licence insertion
[creaMaracasVisu.git] / bbtk / bbs / appli / exampleVOI_02.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::ContourVOI box example. "
27 category "example"
28 author "eduardo.davila@creatis.insa-lyon.fr"
29
30 load wx
31 load std
32 load creaMaracasVisu
33 load vtk
34 load itk
35 load itkvtk
36
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
42
43 new ViewerNV vmA
44   set vmA.nTypeView "-1"
45   connect reader.Out vmA.In
46
47 new ContourVOI countourvoi
48   connect vmA.wxVtkBaseView1    countourvoi.wxVtkBaseView
49   connect reader.Out                            countourvoi.In
50
51 new CommandButton commandbutton
52   set commandbutton.Label  "RUN VOI"
53 #  set commandbutton.In "exec countourvoi;  exec  viewernv;"
54
55 new LayoutLine sizerA
56   set sizerA.Orientation H
57   connect countourvoi.Widget            sizerA.Widget1
58   connect commandbutton.Widget  sizerA.Widget2
59
60 new LayoutSplit mainSplit
61   set mainSplit.Proportion 10
62   connect sizerA.Widget                 mainSplit.Widget1 
63   connect vmA.Widget                            mainSplit.Widget2 
64
65
66 new ImageRegion imageregion
67   connect countourvoi.Index  imageregion.Index
68   connect countourvoi.Size  imageregion.Size
69   
70 new ExtractImageFilter extractImagefilter
71   connect reader.Out  extractImagefilter.In
72   connect imageregion.Out  extractImagefilter.Region
73
74 new ImageChangeInformation imagechangeinformation
75   connect  extractImagefilter.Out  imagechangeinformation.In
76
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
84
85
86 exec mainSplit