]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/appli/ExamplePointPicker.bbs
#3476 Export Normal in PointPicker box
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / ExamplePointPicker.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/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 new wx:OutputText Box21
81   set Box21.Title "Normal"
82
83
84 connect Box01.Out Box02.In
85
86 connect Box04.Widget Box05.Widget2
87
88 connect Box03.Renderer1 Box02.Renderer
89
90 connect Box03.Renderer1 Box00.Renderer
91
92 connect Box07.Widget Box05.Widget1
93
94 connect Box07.BoxChange Box02.BoxExecute
95
96 connect Box08.Out Box03.In
97
98 connect Box00.BoxChange Box04.BoxExecute
99
100 connect Box00.Point Box09.In0
101
102 connect Box08.Out Box10.In
103
104 connect Box10.Spacing Box09.In1
105
106 connect Box09.Out Box04.In
107
108 connect Box03.wxVtkBaseView1 Box11.wxVtkBaseView
109
110 connect Box00.BoxChange Box11.BoxExecute
111
112 connect Box09.Out Box13.In0
113
114 connect Box13.Out Box11.Point
115
116 connect Box07.Out Box14.In1
117
118 connect Box14.Out Box02.Opacity
119
120 connect Box13.Out Box15.In
121
122 connect Box00.BoxChange Box15.BoxExecute
123
124 connect Box15.Widget Box05.Widget3
125
126 connect Box16.Widget Box05.Widget5
127
128 connect Box05.Widget Box18.Widget1
129
130 connect Box03.Widget Box18.Widget2
131
132 connect Box19.Widget Box05.Widget6
133
134 connect Box19.Out Box00.TypeEvent
135
136 connect Box19.BoxChange Box20.In1
137
138 connect Box16.BoxChange Box20.In3
139
140 connect Box20.BoxChange Box00.BoxExecute
141
142 connect Box00.Normal Box21.In
143
144 connect Box00.BoxChange Box21.BoxExecute
145
146 connect Box21.Widget Box05.Widget4
147
148
149
150 # Complex input ports
151 exec Box17
152 exec Box18