]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/appli/example_BoxWidget_ClipPolydata.bbs
Clean code
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / example_BoxWidget_ClipPolydata.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.5 BBS BlackBox Script
3 # - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/example_BoxWidget_ClipPolydata.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include creaMaracasVisu
13 include creaVtk
14 include wx
15
16 author "Author ??"
17 description "Description ??"
18 category "<VOID>"
19
20 new vtk:LoadHola Box00
21
22 new creaMaracasVisu:ViewerNV Box01
23
24 new creaVtk:BoxWidget Box02
25   set Box02.Active "true"
26
27 new wx:LayoutSplit Box03
28   set Box03.Orientation "H"
29
30 new wx:CommandButton Box04
31   set Box04.Label "Refresh"
32
33 new vtk:SphereSource Box05
34   set Box05.CenterX "50"
35   set Box05.CenterY "50"
36   set Box05.CenterZ "50"
37   set Box05.Radius "20"
38
39 new creaVtk:ClipPolyData Box06
40
41 new vtk:PolyDataToActor Box07
42
43
44 connect Box00.Out Box01.In
45
46 connect Box01.Renderer1 Box02.Renderer
47
48 connect Box01.Widget Box03.Widget2
49
50 connect Box04.Widget Box03.Widget1
51
52 connect Box04.BoxChange Box02.BoxExecute
53
54 connect Box05.Out Box06.In
55
56 connect Box02.ImplicitFunction Box06.ImplicitFunction
57
58 connect Box06.Out Box07.In
59
60 connect Box01.Renderer1 Box07.Renderer
61
62 connect Box06.BoxChange Box07.BoxExecute
63
64
65
66 # Complex input ports
67 exec Box03