From: jean-pierre roux Date: Tue, 25 Nov 2008 13:13:05 +0000 (+0000) Subject: Example (doesn't work, right now -25 Nov 2008-) Viewer In a LayoutTab X-Git-Tag: v0.9.1~75 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7dc9aa34c7c0f69d72638b8169e47f910ea5ddcc;p=bbtk.git Example (doesn't work, right now -25 Nov 2008-) Viewer In a LayoutTab --- diff --git a/packages/wxvtk/bbs/appli/exampleViewerInLayoutTab.bbs b/packages/wxvtk/bbs/appli/exampleViewerInLayoutTab.bbs new file mode 100644 index 0000000..ad5de22 --- /dev/null +++ b/packages/wxvtk/bbs/appli/exampleViewerInLayoutTab.bbs @@ -0,0 +1,34 @@ +description "Example :Viewee in a LayoutTab" +author "jpr@creatis.univ-lyon1.fr" +category "example" + +// WARNING : Doesn't work, right now (25 Nov 2008) +include std +include vtk +include wx +include wxvtk + + +new Slider slider1 + set slider1.Orientation V +new Slider slider2 +new Slider slider3 + +new LoadHola reader + +new Viewer2D viewer2DImageOriginal +connect reader.Out viewer2DImageOriginal.In +set viewer2DImageOriginal.Slice 20 + +new LayoutLine sizer +new LayoutTab main + +connect slider2.Widget sizer.Widget1 +connect slider3.Widget sizer.Widget2 + +connect slider1.Widget main.Widget1 +connect sizer.Widget main.Widget2 +connect viewer2DImageOriginal.Widget main.Widget3 + +exec viewer2DImageOriginal +exec main