]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/appli/example_BoxWidget_ClipPolydata.bbs
#3274 creaVtk Feature New Normal - BooleanOperationPolyDataFilter BoxWidget ClipPol...
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / example_BoxWidget_ClipPolydata.bbs
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 # ----------------------------------
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
26 new wx:LayoutSplit Box03
27   set Box03.Orientation "H"
28
29 new wx:CommandButton Box04
30   set Box04.Label "Refresh"
31
32 new vtk:SphereSource Box05
33   set Box05.CenterX "50"
34   set Box05.CenterY "50"
35   set Box05.CenterZ "50"
36   set Box05.Radius "20"
37
38 new creaVtk:ClipPolyData Box06
39
40 new vtk:PolyDataToActor Box07
41
42
43 connect Box00.Out Box01.In
44
45 connect Box01.Renderer1 Box02.Renderer
46
47 connect Box01.Widget Box03.Widget2
48
49 connect Box04.Widget Box03.Widget1
50
51 connect Box04.BoxChange Box02.BoxExecute
52
53 connect Box05.Out Box06.In
54
55 connect Box02.ImplicitFunction Box06.ImplicitFunction
56
57 connect Box06.Out Box07.In
58
59 connect Box01.Renderer1 Box07.Renderer
60
61 connect Box06.BoxChange Box07.BoxExecute
62
63
64
65 # Complex input ports
66 exec Box03