# ----------------------------------
-# - BBTKGEditor v 1.3 BBS BlackBox Script
-# - /home/mouton/Creatis/all/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleColorLayer.bbs
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /home/davila/Creatis/creaTools/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleColorLayer.bbs
# ----------------------------------
# BBTK GEditor Script
new ColorLayerImageView Box00
set Box00.PlainOrGradientColor "false"
- set Box00.lstBaseColor "0 1 0 1 1 0 1 0 0"
- set Box00.lstGreyLevelBoundaries "500 1200 1600 3000"
+ set Box00.lstBaseColor "1 0 0 0 1 0 0 0 1"
+ set Box00.lstGreyLevelBoundaries "500 1200 1600 4500"
new LoadHola Box01
new ViewerNV Box02
- set Box02.nTypeView "0"
new LayoutSplit Box03
set Box03.Orientation "H"
+new vtkImageDataPointerRelay Box04
-connect Box02.Widget Box03.Widget1
-connect Box00.Widget Box03.Widget2
-connect Box01.Out Box00.In
-connect Box02.wxVtkBaseView1 Box00.WxVtkBaseView
-connect Box01.Out Box02.In
+new RescaleSlopeIntercept Box05
+ set Box05.A "0"
+ set Box05.B "1"
+ set Box05.OutputFormat "VTK_FLOAT"
+ set Box05.Type "2"
+
+connect Box02.wxVtkBaseView2 Box00.WxVtkBaseView
+
+connect Box02.wxVtkBaseView3 Box00.WxVtkBaseView1
+
+connect Box02.wxVtkBaseView4 Box00.WxVtkBaseView2
+
+connect Box00.Widget Box03.Widget1
+
+connect Box02.Widget Box03.Widget2
+
+connect Box04.Out Box02.In
+
+connect Box04.Out Box00.In
+
+connect Box01.Out Box05.In
+
+connect Box05.Out Box04.In
+
+
+
+# Complex input ports
+message
exec Box03