1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleCutter.bbs
4 # ----------------------------------
7 # ----------------------
13 include creaMaracasVisu
17 description "Description ??"
20 new creaVtk:Cutter Box00
22 new vtk:SphereSource Box01
26 set Box01.PhiResolution "15"
28 set Box01.ThetaResolution "15"
30 new creaMaracasVisu:ViewerNV Box02
32 new vtk:LoadHola Box03
34 new vtk:PolyDataToActor Box04
35 set Box04.Colour "1 0 0"
37 set Box04.Representation "1"
39 new wx:LayoutSplit Box05
40 set Box05.Orientation "H"
42 new wx:LayoutLine Box07
44 new vtk:PolyDataToActor Box09
45 set Box09.Opacity "0.2"
46 set Box09.Representation "2"
48 new vtk:UpdateRender Box13
49 set Box13.Active "true"
51 new wx:CommandButton Box15
52 set Box15.Label "Refresh"
55 connect Box03.Out Box02.In
57 connect Box00.Out Box04.In
59 connect Box02.Renderer1 Box04.Renderer
61 connect Box02.Widget Box05.Widget2
63 connect Box07.Widget Box05.Widget1
65 connect Box02.Renderer1 Box09.Renderer
67 connect Box02.Renderer1 Box13.Renderer
69 connect Box15.BoxChange Box04.BoxExecute
71 connect Box15.Widget Box07.Widget2
73 connect Box04.BoxChange Box09.BoxExecute
75 connect Box09.BoxChange Box13.BoxExecute
77 connect Box01.Out Box00.In
79 connect Box01.Out Box09.In