]> Creatis software - creaImageIO.git/blob - bbtk/bbs/appli/exampleGimmick.bbs
bbtk package creation
[creaImageIO.git] / bbtk / bbs / appli / exampleGimmick.bbs
1 load creaImageIO
2
3 description "Example of the Gimmick box"
4 author "laurent.guigues at creatis.insa-lyon.fr"
5 category "example"
6
7 #include vtk/boxes/bbLoadHola
8 include wxvtk/boxes/bbIsoSurfaceWithControls
9 load vtk
10 load itk
11 load itkvtk
12 load wxvtk
13
14 #new LoadHola image
15 new Gimmick reader
16 new ImagePlanes planes
17 new IsoSurfaceWithControls 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 new LayoutLine controls
31 connect viewer.Widget main.Widget1
32 connect controls.Widget main.Widget2 
33 connect surface.Widget controls.Widget1 
34
35 set surface.Isovalue 100
36 set surface.Opacity 100
37 set surface.Colour "0.5 0 0"
38 set surface.Title "Iso-surface"
39
40 load std
41 set viewer.WinTitle "Gimmick! example"
42 set viewer.WinWidth 350
43 set viewer.WinHeight 400
44
45
46 exec viewer
47