]> Creatis software - bbtk.git/blob - packages/wxvtk/bbs/appli/exampleIsoSurfaceWithGUI.bbs
Fix awfull mix of MacOS + Linux + Windows line feed + carriage return at end of
[bbtk.git] / packages / wxvtk / bbs / appli / exampleIsoSurfaceWithGUI.bbs
1 description "Example of automatic gui creation for IsoSurfaceExtractor with the command 'newgui'."
2 author "laurent.guigues at creatis.insa-lyon.fr"
3 category "example"
4
5 include vtk
6 include std
7 include wx
8 include wxvtk
9
10 # Pipeline : Reader -> IsoSurfaceExtractor -> Viewer
11 new LoadHola r
12 new IsoSurfaceExtractor i
13 new Viewer3D v
14 connect r.Out i.In
15 connect i.Out v.In1
16
17 # GUI
18 message echo 2
19 newgui    i      ig
20 message echo 0
21
22 # Layout
23 new LayoutLine l
24 connect v.Widget l.Widget1
25 connect ig.Widget l.Widget2
26
27 # Changes in GUI update the view
28 connect ig.BoxChange v.BoxExecute
29
30 # GO !
31 exec l