1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleDoubleSlicer.bbs
4 # ----------------------------------
12 define DoubleSlicer wxvtk
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>."
19 new wx:LayoutSplit main
20 set main.Proportion "80"
22 new wx:LayoutLine slicers
23 set slicers.Orientation "HORIZONTAL"
25 new wxvtk:Viewer2D slicer1
27 new wxvtk:Viewer2D slicer2
30 set slider.Title "Slice"
32 new std:MultipleInputs refresh1
34 new std:MultipleInputs refresh2
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
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 " "
61 # Complex output ports
62 output Widget main.Widget " "