X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fwxvtk%2Fbbs%2Fboxes%2FbbSimpleSlicer.bbs;h=89796ae7f5dd8c1ece81f783527e6c0ded894bbc;hb=22eae0242d8e2c1eb8a25a735289f609b17e103f;hp=d1a3235fc5cf908e32ba2f220c3bba2d2f7e0b38;hpb=141959873bfc3610f427de9a7690458a8b18bd2a;p=bbtk.git
diff --git a/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs b/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs
index d1a3235..89796ae 100644
--- a/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs
+++ b/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs
@@ -2,18 +2,21 @@ load std
load wx
load wxvtk
-define SimpleSlicer
+define SimpleSlicer wxvtk
- description "Simple 2D viewer of a slice of a 3D image. The slice is controlled by a slider. See DemoSimpleSlicer.bbs. Screenshot :
"
- author "laurent.guigues@creatis.insa-lyon.fr"
+ description "Simple 2D viewer of a slice of a 3D image. The slice is controlled by a slider. See exampleSimpleSlicer.bbs. Screenshot :
"
+ author "info-dev@creatis.insa-lyon.fr"
category "viewer"
- new LayoutLine main
+ new LayoutSplit main
+ set main.Proportion 80
new Viewer2D viewer2D
new Slider slider
- # WE NEED A MultipleInputs BOX TO CONNECT BOTH
- # slider.BoxChange AND THE INPUT BoxExecute
- # OF THE COMPLEX BOX TO viewer2D.BoxExecute
+
+ # WE NEED a MultipleInputs Box to connect BOTH
+ # slider.BoxChange AND the input BoxExecute
+ # of the Complex box to viewer2D.BoxExecute
+
new MultipleInputs refresh
connect viewer2D.Widget main.Widget1
@@ -24,14 +27,18 @@ define SimpleSlicer
connect refresh.Out viewer2D.BoxExecute
#set main.Proportion 80
- set slider.Title "Slice"
input In viewer2D.In "Input image"
input WinTitle main.WinTitle "Title of the window"
input WinWidth main.WinWidth "Width of the window"
input WinHeight main.WinHeight "Height of the window"
input BoxExecute refresh.In2 "Execute the box"
+ input Orientation viewer2D.Orientation "Slicing orientation : 0:yz / 1:xz / 2:xy"
input Slice slider.In "Initial slice"
+ input SliderSize slider.Max "Slider Size"
+ input SliderTitle slider.Title "Slider Title"
+ input SliderOrientation slider.Orientation "Slider Orientation (H/V)"
+ input SliderReactiveOnTrack slider.ReactiveOnTrack "Reactive On track (default : 0)"
output Widget main.Widget "Widget"
# EXECUTING THE COMPLEX BOX EXECUTES main