]> 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 62e49a2a9d49b89a6d8e57a2b000308bba249200..d89befd9c0c4a357735eaec4a27dd8eaf2cacfe6 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
-# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
-# - /home/davila/Creatis/All/creatools_source/creaRigidRegistration/PackRecalage/bbs/boxes/CompareImagesSwitcherWidget_3Dp.bbs
+# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
+# - /Users/davila/Creatis/C23/creatools_source/creaRigidRegistration/PackRecalage/bbs/boxes/CompareImagesSwitcherWidget_3Dp.bbs
 # ----------------------------------
 
 include std
@@ -9,6 +9,7 @@ include PackRecalage
 include wx
 include creaMaracasVisu
 include vtk
+include std
 
 define CompareImagesSwitcherWidget_3Dp PackRecalage
 
@@ -17,79 +18,275 @@ description "creatisRecalage"
 
 category "example"
 
-new ImageSwitcherBox switch
+new PackRecalage:ImageSwitcherBox switch
+  set switch.Title "200"
 
-new CheckBox checkS
-  set checkS.In "false"
-  set checkS.Title "On"
+new wx:CheckBox checkS
+  set checkS.In "true"
+  set checkS.Title "Auto"
 
-new Slider sdrT
+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 LayoutSplit switchWindow
-  set switchWindow.Proportion "80"
+new wx:LayoutSplit switchWindow
+  set switchWindow.Proportion "95"
+  set switchWindow.WinTitle "Switcher"
 
-new LayoutLine Box47
+new wx:LayoutLine Box47
   set Box47.Orientation H
 
-new LayoutLine Box48
-
-new ViewerNV Box49
-  set Box49.nTypeView 0
+new wx:LayoutLine Box48
 
-new ViewerNV Box09
-  set Box09.nTypeView 0
+new creaMaracasVisu:ViewerNV Box49
+  set Box49.nTypeView "-1"
 
-new LayoutSplit Box10
+new wx:LayoutSplit Box10
   set Box10.Orientation "H"
 
-new LayoutSplit Box11
+new wx:LayoutSplit Box12
+
+new PackRecalage:ImageSwitcherFilter Box17
+
+new vtk:GetVectorVtkImageDataElement Box19
+  set Box19.I "1"
+
+new vtk:GetVectorVtkImageDataElement Box21
+  set Box21.I "1"
+
+new std:MagicBox Box22
+
+new std:MagicBox Box23
+
+new creaMaracasVisu:ViewerNV Box24
+  set Box24.nTypeView "-1"
+
+new PackRecalage:ImageSwitcherFilter Box25
+
+new vtk:GetVectorVtkImageDataElement Box26
+  set Box26.I "0"
+
+new vtk:GetVectorVtkImageDataElement Box27
+  set Box27.I "0"
+
+new creaMaracasVisu:ViewerNV Box28
+  set Box28.nTypeView "-1"
+
+new wx:LayoutSplit Box29
+
+new PackRecalage:ImageSwitcherFilter Box30
+
+new vtk:GetVectorVtkImageDataElement Box31
+  set Box31.I "2"
+
+new vtk:GetVectorVtkImageDataElement Box32
+  set Box32.I "2"
+
+new creaMaracasVisu:ImageChangeInformation Box37
+
+new creaMaracasVisu:ImageChangeInformation Box38
+
+new creaMaracasVisu:ImageChangeInformation Box39
+
+new wx:LayoutTab Box41
+
+new wx:LayoutLine Box42
+  set Box42.WinTitle "Plane XZ  (rotation/slice Y)"
+
+new wx:LayoutTab Box44
+
+new wx:LayoutLine Box45
+  set Box45.WinTitle "Plane XY  (rotation/slice Z)"
+
+new wx:LayoutTab Box46
+
+new wx:LayoutLine Box50
+  set Box50.WinTitle "Plane YZ  (rotation/slice X)"
+
+new wx:LayoutTab Box51
+
+new wx:LayoutLine Box52
+  set Box52.WinTitle "Viewer help"
+
+new creaMaracasVisu:wxVtkBaseView_Info Box54
+  set Box54.InteractionType "12"
+
+new std:GetVectorDoubleElement Box55
+  set Box55.I "0"
+
+new std:GetVectorDoubleElement Box56
+  set Box56.I "1"
+
+new std:MultipleInputs Box57
+
+new std:MultipleInputs Box59
+
+new creaMaracasVisu:HelpViewerNV Box60
+
+new std:MagicBox Box61
+
+new std:GetVectorDoubleElement Box62
+  set Box62.I "0"
+
+new std:GetVectorDoubleElement Box63
+  set Box63.I "1"
+
+new wx:CheckBox Box64
+  set Box64.In "true"
+  set Box64.Title "Interpolate"
+
+new std:MultipleInputs Box65
+
+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 LayoutSplit Box12
+new vtk:GetVectorVtkImageDataElement Box91
 
-new ViewerNV Box13
-  set Box13.nTypeView 0
+new vtk:GetVectorVtkImageDataElement Box94
 
-new ViewerNV Box14
-  set Box14.nTypeView 0
+new std:Add Box96
 
-new vtkImageDataPointerRelay Box16
+new std:Spin Box97
+  set Box97.End "1"
+  set Box97.Loop "true"
+  set Box97.Start "0"
+  set Box97.Step "1"
 
-new vtkImageDataPointerRelay Box17
+new std:Multiply Box98
+  set Box98.In2 "2"
 
 
 connect checkS.Out switch.On
 connect sdrT.Out switch.Time
 connect sdrT.BoxChange switch.BoxExecute
-connect checkS.Widget Box47.Widget2
 connect switch.Widget Box47.Widget1
 connect sdrT.Widget Box48.Widget2
 connect Box47.Widget Box48.Widget1
 connect Box48.Widget switchWindow.Widget2
-connect switch.Out Box49.In
-connect switch.BoxChange Box49.BoxExecute
 connect Box12.Widget Box10.Widget1
-connect Box11.Widget Box10.Widget2
 connect Box10.Widget switchWindow.Widget1
-connect Box49.Widget Box12.Widget1
-connect Box09.Widget Box12.Widget2
-connect Box13.Widget Box11.Widget1
-connect Box14.Widget Box11.Widget2
-connect Box16.Out switch.In1
-connect Box17.Out switch.In2
-connect switch.Out Box09.In
-connect switch.Out Box14.In
-connect switch.Out Box13.In
-connect switch.BoxChange Box14.BoxExecute
-connect switch.BoxChange Box09.BoxExecute
-connect switch.BoxChange Box13.BoxExecute
+connect Box22.Out Box19.In
+connect Box23.Out Box21.In
+connect Box29.Widget Box10.Widget2
+connect Box22.Out Box26.In
+connect Box23.Out Box27.In
+connect Box22.Out Box31.In
+connect Box23.Out Box32.In
+connect Box17.Out Box37.In
+connect Box37.Out Box49.In
+connect Box25.Out Box38.In
+connect Box38.Out Box24.In
+connect Box30.Out Box39.In
+connect Box39.Out Box28.In
+connect Box41.Widget Box12.Widget1
+connect Box49.Widget Box42.Widget1
+connect Box42.Widget Box41.Widget1
+connect Box45.Widget Box44.Widget1
+connect Box24.Widget Box45.Widget1
+connect Box44.Widget Box12.Widget2
+connect Box50.Widget Box46.Widget1
+connect Box52.Widget Box51.Widget1
+connect Box28.Widget Box50.Widget1
+connect Box46.Widget Box29.Widget1
+connect Box51.Widget Box29.Widget2
+connect Box54.WindowColorLevel Box55.In
+connect Box54.WindowColorLevel Box56.In
+connect Box55.Out Box28.WindowLevel
+connect Box56.Out Box28.ColorLevel
+connect Box30.BoxChange Box57.In1
+connect Box57.BoxChange Box28.BoxExecute
+connect Box54.BoxChange Box57.In2
+connect Box49.wxVtkBaseView1 Box54.wxVtkBaseView
+connect Box25.BoxChange Box59.In1
+connect Box59.BoxChange Box24.BoxExecute
+connect Box54.BoxChange Box59.In2
+connect Box56.Out Box24.ColorLevel
+connect Box55.Out Box24.WindowLevel
+connect Box60.widget Box52.Widget2
+connect Box61.Out Box62.In
+connect Box61.Out Box63.In
+connect Box64.Out Box49.Interpolate
+connect Box64.Out Box28.Interpolate
+connect Box64.Out Box24.Interpolate
+connect Box64.BoxChange Box57.In3
+connect Box64.BoxChange Box59.In3
+connect Box17.BoxChange Box65.In1
+connect Box65.BoxChange Box49.BoxExecute
+connect Box64.BoxChange Box65.In3
+connect switch.BoxChange Box66.In1
+connect Box64.Widget Box47.Widget7
+connect checkS.Widget Box47.Widget5
+connect Box67.Widget Box47.Widget3
+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 Image1 Box16.In " "
-input Image2 Box17.In " "
+input ImageVector1 Box22.In " "
+input ImageVector2 Box23.In " "
+input windowcolorlevel Box61.In " "
 
 # Complex output ports
 output Widget switchWindow.Widget " "