]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/bbs/appli/ExampleRecalage.bbs
Feature #1766 Add licence terms for all files.
[creaRigidRegistration.git] / PackRecalage / bbs / appli / ExampleRecalage.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 #
7 #  This software is governed by the CeCILL-B license under French law and 
8 #  abiding by the rules of distribution of free software. You can  use, 
9 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
10 #  license as circulated by CEA, CNRS and INRIA at the following URL 
11 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
12 #  or in the file LICENSE.txt.
13 #
14 #  As a counterpart to the access to the source code and  rights to copy,
15 #  modify and redistribute granted by the license, users are provided only
16 #  with a limited warranty  and the software's author,  the holder of the
17 #  economic rights,  and the successive licensors  have only  limited
18 #  liability. 
19 #
20 #  The fact that you are presently reading this means that you have had
21 #  knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------   
23
24 # ----------------------------------
25 # - BBTKGEditor v 1.2 BBS BlackBox Script
26 # - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage.bbs
27 # ----------------------------------
28
29 # BBTK GEditor Script
30 # ----------------------
31
32 include std
33 include itkvtk
34 include creaMaracasVisu
35 include PackRecalage
36 include wx
37 include vtk
38 include creaImageIO
39
40 author "jn.trillos44@uniandes.edu.co"
41 description "Example of posible Recalage implementation"
42 category "demo"
43
44 new ViewerNV viewer
45   set viewer.nTypeView "5"
46
47 new ShowNPoints showNpoints
48   set showNpoints.Radio "10"
49
50 new ViewerNV viewer2
51   set viewer2.nTypeView "5"
52
53 new ShowNPoints showNpoints2
54   set showNpoints2.Radio "10"
55
56 new CalculateVectorBox vector1
57
58 new Transform2DBox transform
59   set transform.CenterPoint "0,0,0"
60
61 new ReSlicerBox reslice1
62   set reslice1.Origin "0,0,0"
63
64 new ViewerNV viewer3
65   set viewer3.nTypeView "5"
66
67 new CommandButton butExec
68
69 new LayoutSplit tab1
70   set tab1.Orientation "H"
71
72 new LayoutSplit hello
73   set hello.Orientation "V"
74
75 new LayoutSplit tab2
76   set tab2.Orientation "H"
77
78 new LayoutTab main
79   set main.Orientation "H"
80
81 new vtkImageDataPointerRelay Box17
82
83 new ImagesChooserDialogBox Box18
84
85 new ImagesChooserDialogBox Box19
86
87 new vtkImageDataPointerRelay Box20
88
89
90 connect viewer.Renderer1 showNpoints.Renderer
91 connect viewer.Point showNpoints.In
92 connect viewer.BoxChange showNpoints.BoxExecute
93 connect viewer2.Renderer1 showNpoints2.Renderer
94 connect viewer2.Point showNpoints2.In
95 connect viewer2.BoxChange showNpoints2.BoxExecute
96 connect showNpoints.lstPointsX vector1.PointsX1
97 connect showNpoints2.lstPointsX vector1.PointsX2
98 connect showNpoints.lstPointsY vector1.PointsY1
99 connect showNpoints2.lstPointsY vector1.PointsY2
100 connect showNpoints.lstPointsZ vector1.PointsZ1
101 connect showNpoints2.lstPointsZ vector1.PointsZ2
102 connect transform.Out reslice1.Transform
103 connect reslice1.Out viewer3.In
104 connect showNpoints.Widget hello.Widget1
105 connect butExec.Widget hello.Widget2
106 connect hello.Widget tab1.Widget1
107 connect viewer.Widget tab1.Widget2
108 connect showNpoints2.Widget tab2.Widget1
109 connect viewer2.Widget tab2.Widget2
110 connect butExec.BoxChange viewer3.BoxExecute
111 connect tab1.Widget main.Widget1
112 connect tab2.Widget main.Widget2
113 connect Box17.Out viewer2.In
114 connect Box17.Out reslice1.In
115 connect Box17.Out showNpoints2.Image
116 connect Box18.Out Box17.In
117 connect Box20.Out viewer.In
118 connect Box20.Out showNpoints.Image
119 connect Box19.Out Box20.In
120
121 exec main