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
31 set Box02.nTypeView "7"
33 new vtk:PolyDataToActor Box04
34 set Box04.Colour "1 0 0"
35 set Box04.LineWidth "2"
37 set Box04.Representation "1"
39 new wx:LayoutSplit Box05
40 set Box05.Orientation "H"
42 new vtk:PolyDataToActor Box09
43 set Box09.Opacity "0.2"
44 set Box09.Representation "2"
46 new vtk:UpdateRender Box13
47 set Box13.Active "true"
49 new wx:CommandButton Box15
50 set Box15.Label "Refresh"
52 new creaVtk:Plane Box10
53 set Box10.Normal "0 0 1"
54 set Box10.Origin "0 0 30"
56 new vtk:LoadHola Box11
59 connect Box00.Out Box04.In
61 connect Box02.Renderer1 Box04.Renderer
63 connect Box02.Widget Box05.Widget2
65 connect Box02.Renderer1 Box09.Renderer
67 connect Box02.Renderer1 Box13.Renderer
69 connect Box15.BoxChange Box04.BoxExecute
71 connect Box04.BoxChange Box09.BoxExecute
73 connect Box09.BoxChange Box13.BoxExecute
75 connect Box01.Out Box00.In
77 connect Box01.Out Box09.In
79 connect Box15.Widget Box05.Widget1
81 connect Box10.Out Box00.ImplicitFunction
83 connect Box11.Out Box02.In