]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/appli/ExamplePointPicker.bbs
0b66cb65a46d6898e4f904f691e6a09ff087d254
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / ExamplePointPicker.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/ExamplePointPicker.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaVtk
12 include vtk
13 include creaMaracasVisu
14 include wx
15 include std
16
17 author "Author ??"
18 description "Description ??"
19 category "<VOID>"
20
21 new creaVtk:PointPicker Box00
22
23 new vtk:SphereSource Box01
24   set Box01.CenterX "40"
25   set Box01.CenterY "40"
26   set Box01.CenterZ "40"
27   set Box01.PhiResolution "20"
28   set Box01.Radius "20"
29   set Box01.ThetaResolution "20"
30
31 new vtk:PolyDataToActor Box02
32
33 new creaMaracasVisu:ViewerNV Box03
34
35 new wx:OutputText Box04
36   set Box04.Title "Point:"
37
38 new wx:LayoutLine Box05
39
40 new wx:Slider Box07
41   set Box07.Label "true"
42   set Box07.Max "100"
43   set Box07.ReactiveOnTrack "true"
44   set Box07.Title "Opacity"
45
46 new vtk:LoadHola Box08
47
48 new std:MathOperationVector Box09
49   set Box09.Type "3"
50
51 new vtk:ImageVtkProperties Box10
52
53 new creaMaracasVisu:SetPosition Box11
54
55 new std:MathOperationVector Box13
56   set Box13.Type "23"
57
58 new std:Div Box14
59   set Box14.In2 "100"
60
61 new wx:OutputText Box15
62   set Box15.Title "Round Point:"
63
64 new wx:CheckBox Box16
65   set Box16.In "true"
66   set Box16.Title "Point Picker Active"
67
68 new creaVtk:OutputWindow Box17
69
70 new wx:LayoutSplit Box18
71   set Box18.Orientation "H"
72
73 new wx:ComboBox Box19
74   set Box19.In "Nothing MouseMove ClickLeft DoubleClickLeft"
75   set Box19.Selection "2"
76   set Box19.Title "Event"
77
78 new std:MultipleInputs Box20
79
80
81 connect Box01.Out Box02.In
82
83 connect Box04.Widget Box05.Widget2
84
85 connect Box03.Renderer1 Box02.Renderer
86
87 connect Box03.Renderer1 Box00.Renderer
88
89 connect Box07.Widget Box05.Widget1
90
91 connect Box07.BoxChange Box02.BoxExecute
92
93 connect Box08.Out Box03.In
94
95 connect Box00.BoxChange Box04.BoxExecute
96
97 connect Box00.Point Box09.In0
98
99 connect Box08.Out Box10.In
100
101 connect Box10.Spacing Box09.In1
102
103 connect Box09.Out Box04.In
104
105 connect Box03.wxVtkBaseView1 Box11.wxVtkBaseView
106
107 connect Box00.BoxChange Box11.BoxExecute
108
109 connect Box09.Out Box13.In0
110
111 connect Box13.Out Box11.Point
112
113 connect Box07.Out Box14.In1
114
115 connect Box14.Out Box02.Opacity
116
117 connect Box13.Out Box15.In
118
119 connect Box00.BoxChange Box15.BoxExecute
120
121 connect Box15.Widget Box05.Widget3
122
123 connect Box16.Widget Box05.Widget5
124
125 connect Box05.Widget Box18.Widget1
126
127 connect Box03.Widget Box18.Widget2
128
129 connect Box19.Widget Box05.Widget6
130
131 connect Box19.Out Box00.TypeEvent
132
133 connect Box19.BoxChange Box20.In1
134
135 connect Box16.BoxChange Box20.In3
136
137 connect Box20.BoxChange Box00.BoxExecute
138
139
140
141 # Complex input ports
142 exec Box17
143 exec Box18