]> Creatis software - creaImageIO.git/blob - bbtk/bbs/appli/demoGimmick.bbs
d8f1d59de2f1bbde0d0a9c9d05391a5f5af1ebc0
[creaImageIO.git] / bbtk / bbs / appli / demoGimmick.bbs
1 load creaImageIO
2
3 description "Demo of the <a href=#Gimmick>Gimmick</a> image reader"
4 author "laurent.guigues at creatis.insa-lyon.fr"
5 category "demo"
6
7 #include vtk/boxes/bbLoadHola
8 include wxvtk/boxes/bbIsoSurfaceWidget
9 load vtk
10 load itk
11 load itkvtk
12 load wxvtk
13
14 #new LoadHola reader
15 new Gimmick reader
16 new ImagePlanes planes
17 new IsoSurfaceWidget surface
18 new Viewer3D viewer
19
20 connect reader.Out planes.In
21 connect planes.PlaneX viewer.Obs1
22 connect planes.PlaneY viewer.Obs2
23 connect planes.PlaneZ viewer.Obs3
24
25 connect reader.Out surface.In
26 connect surface.Out viewer.In1
27 connect surface.BoxChange viewer.BoxExecute
28
29 new LayoutSplit main
30 connect viewer.Widget  main.Widget1
31 connect surface.Widget main.Widget2 
32
33 set surface.Isovalue 100
34 set surface.Opacity 100
35 set surface.Colour "0.5 0 0"
36 set surface.Title "Iso-surface"
37
38 load std
39 set main.WinTitle "Gimmick! example"
40 set main.WinWidth 350
41 set main.WinHeight 400
42
43
44 exec main
45