]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/bbs/boxes/CompareImagesSwitcherWidget_3Dp.bbs
#3471 Add manual option to CompareImageSwitcherWidget
[creaRigidRegistration.git] / PackRecalage / bbs / boxes / CompareImagesSwitcherWidget_3Dp.bbs
index c64b9a6dd3ccc5cfe5e54efb3308938c5f36ef73..d89befd9c0c4a357735eaec4a27dd8eaf2cacfe6 100644 (file)
@@ -19,6 +19,7 @@ description "creatisRecalage"
 category "example"
 
 new PackRecalage:ImageSwitcherBox switch
+  set switch.Title "200"
 
 new wx:CheckBox checkS
   set checkS.In "true"
@@ -27,7 +28,7 @@ new wx:CheckBox checkS
 new wx:Slider sdrT
   set sdrT.In "500"
   set sdrT.Max "1000"
-  set sdrT.Min "0"
+  set sdrT.Min "200"
   set sdrT.ReactiveOnTrack "True"
 
 new wx:LayoutSplit switchWindow
@@ -143,6 +144,47 @@ new std:MultipleInputs Box66
 new wx:CommandButton Box67
   set Box67.Label "Switch"
 
+new vtk:AddImageToVector Box70
+
+new vtk:GetVectorVtkImageDataElement Box72
+
+new std:StringSelect Box73
+  set Box73.In0 "0 0"
+  set Box73.In1 "1 1"
+  set Box73.In2 "0 1"
+  set Box73.In3 "0 1"
+
+new std:GetVectorIntElement Box75
+  set Box75.I "0"
+
+new vtk:GetVectorVtkImageDataElement Box76
+
+new std:GetVectorIntElement Box77
+  set Box77.I "1"
+
+new vtk:AddImageToVector Box84
+
+new vtk:GetVectorVtkImageDataElement Box85
+
+new vtk:GetVectorVtkImageDataElement Box88
+
+new vtk:AddImageToVector Box90
+
+new vtk:GetVectorVtkImageDataElement Box91
+
+new vtk:GetVectorVtkImageDataElement Box94
+
+new std:Add Box96
+
+new std:Spin Box97
+  set Box97.End "1"
+  set Box97.Loop "true"
+  set Box97.Start "0"
+  set Box97.Step "1"
+
+new std:Multiply Box98
+  set Box98.In2 "2"
+
 
 connect checkS.Out switch.On
 connect sdrT.Out switch.Time
@@ -155,12 +197,6 @@ connect Box12.Widget Box10.Widget1
 connect Box10.Widget switchWindow.Widget1
 connect Box22.Out Box19.In
 connect Box23.Out Box21.In
-connect Box19.Out Box17.In1
-connect Box21.Out Box17.In2
-connect Box26.Out Box25.In1
-connect Box27.Out Box25.In2
-connect Box31.Out Box30.In1
-connect Box32.Out Box30.In2
 connect Box29.Widget Box10.Widget2
 connect Box22.Out Box26.In
 connect Box23.Out Box27.In
@@ -215,6 +251,37 @@ connect Box67.BoxChange Box66.In2
 connect Box66.BoxChange Box25.BoxExecute
 connect Box66.BoxChange Box17.BoxExecute
 connect Box66.BoxChange Box30.BoxExecute
+connect Box26.Out Box70.In0
+connect Box27.Out Box70.In1
+connect Box70.Out Box72.In
+connect Box73.Out Box75.In
+connect Box75.Out Box72.I
+connect Box77.Out Box76.I
+connect Box73.Out Box77.In
+connect Box72.Out Box25.In1
+connect Box76.Out Box25.In2
+connect Box70.Out Box76.In
+connect Box84.Out Box85.In
+connect Box84.Out Box88.In
+connect Box90.Out Box91.In
+connect Box90.Out Box94.In
+connect Box31.Out Box90.In0
+connect Box32.Out Box90.In1
+connect Box91.Out Box30.In1
+connect Box94.Out Box30.In2
+connect Box75.Out Box85.I
+connect Box77.Out Box88.I
+connect Box75.Out Box91.I
+connect Box77.Out Box94.I
+connect Box85.Out Box17.In1
+connect Box88.Out Box17.In2
+connect Box19.Out Box84.In0
+connect Box21.Out Box84.In1
+connect Box97.Out Box96.In1
+connect Box96.Out Box73.In
+connect Box66.BoxChange Box97.BoxExecute
+connect checkS.Out Box98.In1
+connect Box98.Out Box96.In2
 
 # Complex input ports
 input ImageVector1 Box22.In " "