include wxvtk/boxes/bbSimpleSlicer
new LayoutX4 main
-new LayoutLine upright
-new LayoutLine upleft
-new LayoutLine downleft
-connect upright.Widget main.Widget1
-connect upleft.Widget main.Widget2
-connect downleft.Widget main.Widget3
+new LayoutLine upright
+new LayoutLine upleft
+new LayoutLine downleft
+new LayoutSplit downright
+ set downright.Proportion 85
+
+connect upright.Widget main.Widget1
+connect upleft.Widget main.Widget2
+connect downleft.Widget main.Widget3
+connect downright.Widget main.Widget4
# Here loads hola.mhd
# -------------------
new GetVectorIntElement gveZ
connect mc.Size gveZ.In
set gveZ.I 2
-print "Dim Z $gveZ.Out"
+//print "Dim Z $gveZ.Out"
#Compute the number of the 'middle' slice on X axis
new Div div0
connect planes.PlaneY viewer.Obs2
connect planes.PlaneZ viewer.Obs3
- connect viewer.Widget main.Widget4
+new CheckBox chkbox
+ set chkbox.Title "Interpolate Pixels (in '2D' images)"
+ set chkbox.In 1
+ connect chkbox.BoxChange viewerUL.BoxExecute
+ connect chkbox.BoxChange viewerUR.BoxExecute
+ connect chkbox.BoxChange viewerTD.BoxExecute
+
+ connect viewer.Widget downright.Widget1
+ connect chkbox.Widget downright.Widget2
+
+ connect chkbox.Out viewerUL.Interpolate
+ connect chkbox.Out viewerUR.Interpolate
+ connect chkbox.Out viewerTD.Interpolate
set main.WinTitle "demoViewing1"
exec main
exec viewerTD
-