]> Creatis software - bbtk.git/blob - packages/wxvtk/bbs/appli/ExampleIsoSurfaceWithControls.bbs
*** empty log message ***
[bbtk.git] / packages / wxvtk / bbs / appli / ExampleIsoSurfaceWithControls.bbs
1 description "Example of IsoSurfaceWithControls."
2 author "laurent.guigues at creatis.insa-lyon.fr"
3 category "example"
4
5 include wxvtk/boxes/bbIsoSurfaceWithControls
6 include vtk/boxes/bbLoadHola
7  
8 new IsoSurfaceWithControls surface1
9 new IsoSurfaceWithControls surface2
10
11 load wxvtk
12 new Viewer3D viewer
13 new LoadHola image
14
15 connect image.Out surface1.In
16 connect image.Out surface2.In
17 connect surface1.Out viewer.In1
18 connect surface2.Out viewer.In2
19 new MultipleInputs refresh
20 connect surface1.BoxChange refresh.In1
21 connect surface2.BoxChange refresh.In2
22 connect refresh.Out viewer.BoxExecute
23
24 new LayoutLine main
25 new LayoutLine controls
26 connect viewer.Widget main.Widget1
27 connect controls.Widget main.Widget2 
28 connect surface1.Widget controls.Widget1 
29 connect surface2.Widget controls.Widget2
30
31
32 set surface1.Isovalue 100
33 set surface1.Opacity 100
34 set surface1.Colour "0.5 0 0"
35 set surface1.Title "Iso-surface 1"
36
37 set surface2.Isovalue 200
38 set surface2.Opacity 20
39 set surface2.Title "Iso-surface 2"
40
41
42 #message All 9
43 exec main