1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
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.
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
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 # ------------------------------------------------------------------------
24 # ----------------------------------
25 # - BBTKGEditor v 1.2 BBS BlackBox Script
26 # - /Users/davila/Creatis/All5/creatools_source/creaRigidRegistration/PackRecalage/bbs/appli/ExampleRecalage3D2Points.bbs
27 # ----------------------------------
30 # ----------------------
34 include creaMaracasVisu
40 author "info-dev@creatis.insa-lyon.fr"
41 description "Recalage3D 2-point"
45 set viewer.nTypeView "5"
47 new ShowNPoints showNpoints
48 set showNpoints.Radio "10"
51 set viewer2.nTypeView "5"
53 new ShowNPoints showNpoints2
54 set showNpoints2.Radio "10"
56 new Transform3D2PointsBox transform
58 new ReSlicerBox reslice1
59 set reslice1.Origin "0,0,0"
62 set viewer3.nTypeView "5 0"
64 new CommandButton butExec
65 set butExec.Label "Execute"
73 set tab1.Orientation "H"
76 set hello.Orientation "V"
78 new LayoutSplit hello2
81 set tab2.Orientation "H"
84 set main.Orientation "H"
86 new ImagesChooserDialogBox Box18
88 new ImagesChooserDialogBox Box19
90 new vtkImageDataPointerRelay Box20
92 new vtkImageDataPointerRelay Box21
95 connect viewer.Renderer1 showNpoints.Renderer
96 connect viewer.Point showNpoints.In
97 connect viewer.BoxChange showNpoints.BoxExecute
98 connect viewer2.Renderer1 showNpoints2.Renderer
99 connect viewer2.Point showNpoints2.In
100 connect viewer2.BoxChange showNpoints2.BoxExecute
101 connect showNpoints.lstPointsX transform.InX1
102 connect showNpoints2.lstPointsX transform.InX2
103 connect showNpoints.lstPointsY transform.InY1
104 connect showNpoints2.lstPointsY transform.InY2
105 connect showNpoints.lstPointsZ transform.InZ1
106 connect showNpoints2.lstPointsZ transform.InZ2
107 connect showNpoints.lstLabels transform.Labels1
108 connect showNpoints2.lstLabels transform.Labels2
109 connect transform.Out reslice1.Transform
110 connect reslice1.Out viewer3.In
111 connect angle.Out transform.SecondAngle
112 connect showNpoints.Widget hello.Widget1
113 connect butExec.Widget hello2.Widget1
114 connect angle.Widget hello2.Widget2
115 connect hello2.Widget hello.Widget2
116 connect hello.Widget tab1.Widget1
117 connect viewer.Widget tab1.Widget2
118 connect showNpoints2.Widget tab2.Widget1
119 connect viewer2.Widget tab2.Widget2
120 connect butExec.BoxChange transform.BoxExecute
121 connect butExec.BoxChange reslice1.BoxExecute
122 connect butExec.BoxChange viewer3.BoxExecute
123 connect tab1.Widget main.Widget1
124 connect tab2.Widget main.Widget2
125 connect Box18.Out Box20.In
126 connect Box20.Out reslice1.In
127 connect Box20.Out viewer2.In
128 connect Box19.Out Box21.In
129 connect Box21.Out showNpoints.Image
130 connect Box21.Out viewer.In