]> Creatis software - bbtk.git/blob - packages/wxvtk/bbs/appli/exampleViewer2D.bbs
2ff41ff45611f318c5b5bf1050b376abb79dd702
[bbtk.git] / packages / wxvtk / bbs / appli / exampleViewer2D.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleViewer2D.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include wxvtk
13 include wx
14
15 author "laurent.guigues@creatis.insa-lyon.fr"
16 description "Example of the box <a href=#Viewer2D>Viewer2D</a>."
17 category "example"
18
19 new vtk:LoadHola reader
20
21 new wxvtk:Viewer2D viewer
22   set viewer.Slice "20"
23
24 new wx:Slider Box02
25
26 new wx:LayoutSplit Box03
27   set Box03.Proportion "90"
28
29
30 connect reader.Out viewer.In
31
32 connect viewer.Widget Box03.Widget1
33
34 connect Box02.Widget Box03.Widget2
35
36 connect Box02.Out viewer.Slice
37
38 connect Box02.BoxChange viewer.BoxExecute
39
40
41
42 # Complex input ports
43 exec Box03