]> Creatis software - bbtk.git/blobdiff - packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs
SimpleSlicer deals with Orientation, SliderOrientation, SliderReactiveOnTrack
[bbtk.git] / packages / wxvtk / bbs / boxes / bbSimpleSlicer.bbs
index 60db96bcc604d17af9a385c3e4e116bd4cf355a5..634ac051fd349e6ad49ab738decb7e2ba0679281 100644 (file)
@@ -4,16 +4,18 @@ load wxvtk
 
 define SimpleSlicer wxvtk
 
- description "Simple 2D viewer of a slice of a 3D image. The slice is controlled by a slider. See <a href='#DemoSimpleSlicer'>DemoSimpleSlicer.bbs</a>. Screenshot : <center><img src='DemoSimpleSlicer.png'></center>"
- 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 <a href='#exampleSimpleSlicer'>exampleSimpleSlicer.bbs</a>. Screenshot : <center><img src='ExampleSimpleSlicer.png'></center>"
+ author "info-dev@creatis.insa-lyon.fr"
  category "viewer"
 
  new LayoutLine main
  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
@@ -31,7 +33,11 @@ define SimpleSlicer wxvtk
  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