]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/bbs/boxes/CompareImagesSwitcherWidget_3Dp.bbs
Clean code
[creaRigidRegistration.git] / PackRecalage / bbs / boxes / CompareImagesSwitcherWidget_3Dp.bbs
index 40fb2a33f66a1208597f3264408828b99c04be07..e7114b28adfaf176225957a860a1c40a574b7139 100644 (file)
@@ -32,7 +32,7 @@ new wx:Slider sdrT
   set sdrT.ReactiveOnTrack "True"
 
 new wx:LayoutSplit switchWindow
-  set switchWindow.Proportion "95"
+  set switchWindow.Proportion "75"
   set switchWindow.WinTitle "Switcher"
 
 new wx:LayoutLine Box47
@@ -149,14 +149,10 @@ new vtk:AddImageToVector Box70
 new vtk:GetVectorVtkImageDataElement Box72
 
 new std:StringSelect Box73
-  set Box73.In0 "0 1"
-  set Box73.In1 "0 0"
-  set Box73.In2 "1 1"
-
-new wx:RadioButton Box74
-  set Box74.In0 "A B"
-  set Box74.In1 "A A"
-  set Box74.In2 "B B"
+  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"
@@ -178,6 +174,85 @@ 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"
+
+new creaMaracasVisu:ColorLayerImageView2 Box95
+  set Box95.lstRangeForColorBar "-10 10"
+
+new wx:Slider Box99
+  set Box99.In "0"
+  set Box99.Label "true"
+  set Box99.Max "100"
+  set Box99.Min "0"
+  set Box99.ReactiveOnTrack "true"
+  set Box99.Title "Opacity Layer"
+
+new vtk:GetVectorVtkImageDataElement Box100
+  set Box100.I "0"
+
+new std:MagicBox Box101
+
+new creaMaracasVisu:ColorLayerImageView2 Box105
+
+new creaMaracasVisu:ColorLayerImageView2 Box106
+
+new vtk:GetVectorVtkImageDataElement Box107
+  set Box107.I "1"
+
+new vtk:GetVectorVtkImageDataElement Box108
+  set Box108.I "2"
+
+new creaMaracasVisu:ImageChangeInformation Box109
+
+new creaMaracasVisu:ImageChangeInformation Box110
+
+new creaMaracasVisu:ImageChangeInformation Box111
+
+new vtk:GetVectorVtkImageDataElement Box113
+  set Box113.I "3"
+
+new std:MultipleInputs Box117
+
+new vtk:ImageVtkProperties Box118
+
+new wx:LayoutLine Box116
+  set Box116.Orientation "H"
+
+new std:ConcatStrings Box120
+
+new std:GetVectorDoubleElement Box121
+  set Box121.I "0"
+
+new std:GetVectorDoubleElement Box122
+  set Box122.I "1"
+
+new std:ConcatStrings Box123
+  set Box123.In2 "  "
+
+new creaMaracasVisu:SliderMinMax-flexible Box124
+  set Box124.showactual "false"
+
+new wx:LayoutLine Box133
+  set Box133.Orientation "V"
+
+new wx:Slider Box134
+  set Box134.Label "true"
+  set Box134.ReactiveOnTrack "true"
+  set Box134.Title "Min color table:"
+
+new wx:Slider Box135
+  set Box135.ReactiveOnTrack "true"
+  set Box135.Title "Max color table:"
+
 
 connect checkS.Out switch.On
 connect sdrT.Out switch.Time
@@ -214,8 +289,6 @@ 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
@@ -223,8 +296,6 @@ 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
@@ -247,8 +318,6 @@ connect Box66.BoxChange Box30.BoxExecute
 connect Box26.Out Box70.In0
 connect Box27.Out Box70.In1
 connect Box70.Out Box72.In
-connect Box74.Widget Box47.Widget4
-connect Box74.Out Box73.In
 connect Box73.Out Box75.In
 connect Box75.Out Box72.I
 connect Box77.Out Box76.I
@@ -272,11 +341,62 @@ 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
+connect Box24.wxVtkBaseView1 Box95.WxVtkBaseView
+connect Box99.Out Box95.Opacity
+connect Box101.Out Box100.In
+connect Box99.Out Box105.Opacity
+connect Box99.Out Box106.Opacity
+connect Box101.Out Box107.In
+connect Box101.Out Box108.In
+connect Box49.wxVtkBaseView1 Box105.WxVtkBaseView
+connect Box28.wxVtkBaseView1 Box106.WxVtkBaseView
+connect Box100.Out Box109.In
+connect Box109.Out Box95.In
+connect Box107.Out Box110.In
+connect Box110.Out Box105.In
+connect Box108.Out Box111.In
+connect Box111.Out Box106.In
+connect Box101.Out Box113.In
+connect Box99.BoxChange Box117.In2
+connect Box117.BoxChange Box95.BoxExecute
+connect Box117.BoxChange Box105.BoxExecute
+connect Box117.BoxChange Box106.BoxExecute
+connect Box113.Out Box118.In
+connect Box57.BoxChange Box117.In3
+connect Box55.Out Box24.WindowLevel
+connect Box56.Out Box24.ColorLevel
+connect Box55.Out Box28.WindowLevel
+connect Box56.Out Box28.ColorLevel
+connect Box99.Widget Box116.Widget4
+connect Box118.MinMax Box120.In1
+connect Box120.Out Box121.In
+connect Box120.Out Box122.In
+connect Box123.Out Box95.lstRangeForColorBar
+connect Box123.Out Box105.lstRangeForColorBar
+connect Box123.Out Box106.lstRangeForColorBar
+connect Box116.Widget Box48.Widget4
+connect Box134.Widget Box133.Widget1
+connect Box135.Widget Box133.Widget2
+connect Box121.Out Box134.Min
+connect Box121.Out Box135.Min
+connect Box122.Out Box135.Max
+connect Box122.Out Box134.Max
+connect Box133.Widget Box116.Widget2
+connect Box134.Out Box123.In1
+connect Box135.Out Box123.In3
+connect Box57.BoxChange Box135.BoxExecute
+connect Box57.BoxChange Box134.BoxExecute
 
 # Complex input ports
 input ImageVector1 Box22.In " "
 input ImageVector2 Box23.In " "
 input windowcolorlevel Box61.In " "
+input _VecImageLayer Box101.In " "
 
 # Complex output ports
 output Widget switchWindow.Widget " "