]> Creatis software - bbtk.git/blob - packages/wxvtk/bbs/appli/exampleDoubleSlicer.bbs
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / wxvtk / bbs / appli / exampleDoubleSlicer.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleDoubleSlicer.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include wxvtk
10 include std
11
12 define DoubleSlicer wxvtk
13
14 author "laurent.guigues at creatis.insa-lyon.fr"
15 description "Simple viewer displaying the same slice of two images. The slice is controlled by a slider. See <a href='#exampleDoubleSlicer'>exampleDoubleSlicer.bbs</a>."
16
17 category "<VOID>"
18
19 new wx:LayoutSplit main
20   set main.Proportion "80"
21
22 new wx:LayoutLine slicers
23   set slicers.Orientation "HORIZONTAL"
24
25 new wxvtk:Viewer2D slicer1
26
27 new wxvtk:Viewer2D slicer2
28
29 new wx:Slider slider
30   set slider.Title "Slice"
31
32 new std:MultipleInputs refresh1
33
34 new std:MultipleInputs refresh2
35
36
37 connect slicers.Widget main.Widget1
38 connect slicer1.Widget slicers.Widget1
39 connect slicer2.Widget slicers.Widget2
40 connect slider.Widget main.Widget2
41 connect slider.Out slicer1.Slice
42 connect slider.Out slicer2.Slice
43 connect refresh1.Out slicer1.BoxExecute
44 connect refresh2.Out slicer2.BoxExecute
45 connect slider.BoxChange refresh2.In1
46 connect slider.BoxChange refresh1.In1
47
48 # Complex input ports
49 input In1 slicer1.In " "
50 input In2 slicer2.In " "
51 input WinDialog main.WinDialog " "
52 input WinTitle main.WinTitle " "
53 input WinWidth main.WinWidth " "
54 input WinHeight main.WinHeight " "
55 input Orientation slicers.Orientation " "
56 input RefreshSlicer1 refresh1.In2 " "
57 input RefreshSlicer2 refresh2.In2 " "
58 input BoxProcessModeSlicer1 slicer1.BoxProcessMode " "
59 input BoxProcessModeSlicer2 slicer2.BoxProcessMode " "
60
61 # Complex output ports
62 output Widget main.Widget " "
63
64 exec main
65
66 endefine