]> Creatis software - bbtk.git/blob - packages/wxvtk/bbs/appli/exampleIsoSurfaceWidget.bbs
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / wxvtk / bbs / appli / exampleIsoSurfaceWidget.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaTools2/creatools_source/bbtk/packages/appli/bbs/appli/exampleIsoSurfaceWidget.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include wxvtk
12 include vtk
13 include std
14 include wx
15
16 author "laurent.guigues at creatis.insa-lyon.fr"
17 description "Example of IsoSurfaceWidget."
18 category "example"
19
20 new wxvtk:IsoSurfaceWidget surface1
21   set surface1.Colour "0.5 0 0"
22   set surface1.Isovalue "100"
23   set surface1.Opacity "100"
24   set surface1.Title "Iso-surface 1"
25
26 new wxvtk:IsoSurfaceWidget surface2
27   set surface2.Isovalue "200"
28   set surface2.Opacity "20"
29   set surface2.Title "Iso-surface 2"
30
31 new wxvtk:Viewer3D viewer
32
33 new vtk:LoadHola reader1
34
35 new std:MultipleInputs refresh
36
37 new wx:LayoutLine main
38   set main.WinHeight "800"
39   set main.WinWidth "800"
40
41 new wx:LayoutLine controls
42
43
44 connect reader1.Out surface1.In
45
46 connect reader1.Out surface2.In
47
48 connect surface1.Out viewer.In1
49
50 connect surface2.Out viewer.In2
51
52 connect surface1.BoxChange refresh.In1
53
54 connect surface2.BoxChange refresh.In2
55
56 connect viewer.Widget main.Widget1
57
58 connect controls.Widget main.Widget2
59
60 connect surface1.Widget controls.Widget1
61
62 connect surface2.Widget controls.Widget2
63
64 connect refresh.Out viewer.BoxExecute
65
66
67
68 # Complex input ports
69 exec main