1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/example_BoxWidget_ClipPolydata.bbs
4 # ----------------------------------
7 # ----------------------
12 include creaMaracasVisu
17 description "Description ??"
20 new vtk:LoadHola Box00
22 new creaMaracasVisu:ViewerNV Box01
24 new creaVtk:BoxWidget Box02
26 new wx:LayoutSplit Box03
27 set Box03.Orientation "H"
29 new wx:CommandButton Box04
30 set Box04.Label "Refresh"
32 new vtk:SphereSource Box05
33 set Box05.CenterX "50"
34 set Box05.CenterY "50"
35 set Box05.CenterZ "50"
38 new creaVtk:ClipPolyData Box06
40 new vtk:PolyDataToActor Box07
43 connect Box00.Out Box01.In
45 connect Box01.Renderer1 Box02.Renderer
47 connect Box01.Widget Box03.Widget2
49 connect Box04.Widget Box03.Widget1
51 connect Box04.BoxChange Box02.BoxExecute
53 connect Box05.Out Box06.In
55 connect Box02.ImplicitFunction Box06.ImplicitFunction
57 connect Box06.Out Box07.In
59 connect Box01.Renderer1 Box07.Renderer
61 connect Box06.BoxChange Box07.BoxExecute