]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/appli/exampleCutter.bbs
e69385aa3eaa70a0565d5e4a2fc2f86a79f7de4e
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / exampleCutter.bbs
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 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaVtk
12 include vtk
13 include creaMaracasVisu
14 include wx
15
16 author "Author ??"
17 description "Description ??"
18 category "<VOID>"
19
20 new creaVtk:Cutter Box00
21
22 new vtk:SphereSource Box01
23   set Box01.CenterX "0"
24   set Box01.CenterY "0"
25   set Box01.CenterZ "0"
26   set Box01.PhiResolution "15"
27   set Box01.Radius "40"
28   set Box01.ThetaResolution "15"
29
30 new creaMaracasVisu:ViewerNV Box02
31
32 new vtk:LoadHola Box03
33
34 new vtk:PolyDataToActor Box04
35   set Box04.Colour "1 0 0"
36   set Box04.Opacity "1"
37   set Box04.Representation "1"
38
39 new wx:LayoutSplit Box05
40   set Box05.Orientation "H"
41
42 new wx:LayoutLine Box07
43
44 new vtk:PolyDataToActor Box09
45   set Box09.Opacity "0.2"
46   set Box09.Representation "2"
47
48 new vtk:UpdateRender Box13
49   set Box13.Active "true"
50
51 new wx:CommandButton Box15
52   set Box15.Label "Refresh"
53
54
55 connect Box03.Out Box02.In
56
57 connect Box00.Out Box04.In
58
59 connect Box02.Renderer1 Box04.Renderer
60
61 connect Box02.Widget Box05.Widget2
62
63 connect Box07.Widget Box05.Widget1
64
65 connect Box02.Renderer1 Box09.Renderer
66
67 connect Box02.Renderer1 Box13.Renderer
68
69 connect Box15.BoxChange Box04.BoxExecute
70
71 connect Box15.Widget Box07.Widget2
72
73 connect Box04.BoxChange Box09.BoxExecute
74
75 connect Box09.BoxChange Box13.BoxExecute
76
77 connect Box01.Out Box00.In
78
79 connect Box01.Out Box09.In
80
81
82
83 # Complex input ports
84 exec Box05