X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=packages%2Fwxvtk%2Fbbs%2Fboxes%2FbbSimpleSlicer.bbs;h=08b72380a4e403f0a15f3d4b54b72e5d28959107;hb=f9b730b93d4a2731f365094735bd435a35d5bc90;hp=e21e7105aba395c1c9122ecf5e6091a98554dd4e;hpb=6909e186f8053f2567184d69881c0dad5ea6355c;p=bbtk.git
diff --git a/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs b/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs
index e21e710..08b7238 100644
--- a/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs
+++ b/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs
@@ -4,13 +4,14 @@ load wxvtk
define SimpleSlicer wxvtk
- description "Simple 2D viewer of a slice of a 3D image. The slice is controlled by a slider. See exampleSimpleSlicer.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
+ new Slider slider
# WE NEED a MultipleInputs Box to connect BOTH
# slider.BoxChange AND the input BoxExecute
@@ -18,25 +19,32 @@ define SimpleSlicer wxvtk
new MultipleInputs refresh
- connect viewer2D.Widget main.Widget1
- connect slider.Widget main.Widget2
- connect slider.Out viewer2D.Slice
+ connect viewer2D.Widget main.Widget1
+ connect slider.Widget main.Widget2
+ connect slider.Out viewer2D.Slice
connect slider.BoxChange refresh.In1
- connect refresh.Out viewer2D.BoxExecute
+ 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 Slice slider.In "Initial slice"
- input SliderSize slider.Max "Slider Size"
+
+ input In viewer2D.In "Input image"
+ input WinDialog main.WinDialog "Execute in dialog mode"
+ 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 Interpolate viewer2D.Interpolate "Pixels Interpolation (true/false)"
+ 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
exec main
+
endefine