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 # ----------------------------------
7 # ----------------------
13 include creaMaracasVisu
18 description "Description ??"
21 new creaVtk:PointPicker Box00
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"
29 set Box01.ThetaResolution "20"
31 new vtk:PolyDataToActor Box02
33 new creaMaracasVisu:ViewerNV Box03
35 new wx:OutputText Box04
36 set Box04.Title "Point"
38 new wx:LayoutLine Box05
41 set Box07.Label "true"
43 set Box07.ReactiveOnTrack "true"
44 set Box07.Title "Opacity"
46 new vtk:LoadHola Box08
48 new std:MathOperationVector Box09
51 new vtk:ImageVtkProperties Box10
53 new creaMaracasVisu:SetPosition Box11
55 new std:MathOperationVector Box13
61 new wx:OutputText Box15
62 set Box15.Title "Round Point"
66 set Box16.Title "Point Picker Active"
68 new creaVtk:OutputWindow Box17
70 new wx:LayoutSplit Box18
71 set Box18.Orientation "H"
74 set Box19.In "Nothing MouseMove ClickLeft DoubleClickLeft"
75 set Box19.Selection "2"
76 set Box19.Title "Event"
78 new std:MultipleInputs Box20
80 new wx:OutputText Box21
81 set Box21.Title "Normal"
84 connect Box01.Out Box02.In
86 connect Box04.Widget Box05.Widget2
88 connect Box03.Renderer1 Box02.Renderer
90 connect Box03.Renderer1 Box00.Renderer
92 connect Box07.Widget Box05.Widget1
94 connect Box07.BoxChange Box02.BoxExecute
96 connect Box08.Out Box03.In
98 connect Box00.BoxChange Box04.BoxExecute
100 connect Box00.Point Box09.In0
102 connect Box08.Out Box10.In
104 connect Box10.Spacing Box09.In1
106 connect Box09.Out Box04.In
108 connect Box03.wxVtkBaseView1 Box11.wxVtkBaseView
110 connect Box00.BoxChange Box11.BoxExecute
112 connect Box09.Out Box13.In0
114 connect Box13.Out Box11.Point
116 connect Box07.Out Box14.In1
118 connect Box14.Out Box02.Opacity
120 connect Box13.Out Box15.In
122 connect Box00.BoxChange Box15.BoxExecute
124 connect Box15.Widget Box05.Widget3
126 connect Box16.Widget Box05.Widget5
128 connect Box05.Widget Box18.Widget1
130 connect Box03.Widget Box18.Widget2
132 connect Box19.Widget Box05.Widget6
134 connect Box19.Out Box00.TypeEvent
136 connect Box19.BoxChange Box20.In1
138 connect Box16.BoxChange Box20.In3
140 connect Box20.BoxChange Box00.BoxExecute
142 connect Box00.Normal Box21.In
144 connect Box00.BoxChange Box21.BoxExecute
146 connect Box21.Widget Box05.Widget4
150 # Complex input ports