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 # ----------------------------------
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
81 connect Box01.Out Box02.In
83 connect Box04.Widget Box05.Widget2
85 connect Box03.Renderer1 Box02.Renderer
87 connect Box03.Renderer1 Box00.Renderer
89 connect Box07.Widget Box05.Widget1
91 connect Box07.BoxChange Box02.BoxExecute
93 connect Box08.Out Box03.In
95 connect Box00.BoxChange Box04.BoxExecute
97 connect Box00.Point Box09.In0
99 connect Box08.Out Box10.In
101 connect Box10.Spacing Box09.In1
103 connect Box09.Out Box04.In
105 connect Box03.wxVtkBaseView1 Box11.wxVtkBaseView
107 connect Box00.BoxChange Box11.BoxExecute
109 connect Box09.Out Box13.In0
111 connect Box13.Out Box11.Point
113 connect Box07.Out Box14.In1
115 connect Box14.Out Box02.Opacity
117 connect Box13.Out Box15.In
119 connect Box00.BoxChange Box15.BoxExecute
121 connect Box15.Widget Box05.Widget3
123 connect Box16.Widget Box05.Widget5
125 connect Box05.Widget Box18.Widget1
127 connect Box03.Widget Box18.Widget2
129 connect Box19.Widget Box05.Widget6
131 connect Box19.Out Box00.TypeEvent
133 connect Box19.BoxChange Box20.In1
135 connect Box16.BoxChange Box20.In3
137 connect Box20.BoxChange Box00.BoxExecute
141 # Complex input ports