set viewer.WinHeight 400
exec viewer
+
+
+#Quick and dirty fix for a known bug :
+new CommandButton refresh
+ set refresh.Label "Known bug : Black image, click here to Refresh"
+ set refresh.In "exec viewer"
+
+exec refresh
define SimpleSlicer wxvtk
description "Simple 2D viewer of a slice of a 3D image. The slice is controlled by a slider. See <a href='#exampleSimpleSlicer'>exampleSimpleSlicer.bbs</a>. Screenshot : <center><img src='ExampleSimpleSlicer.png'></center>"
- author "laurent.guigues@creatis.insa-lyon.fr"
+ author "info-dev@creatis.insa-lyon.fr"
category "viewer"
new LayoutLine main
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 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