]> Creatis software - creaMiniTools.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 12 May 2011 09:17:40 +0000 (09:17 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 12 May 2011 09:17:40 +0000 (09:17 +0000)
bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbg
bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbg
bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbs
bbtk_package_creaMiniToolsBase/bbs/boxes/rescaleSlopeInterceptMenu.bbg
bbtk_package_creaMiniToolsBase/bbs/boxes/rescaleSlopeInterceptMenu.bbs

index d50fb9d8e9dd6556d16373c0b725e25e8e21ccbd..dabc00b94261d604c59642771e1a1579e5425acd 100755 (executable)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.2 BBG BlackBox Diagram file
-# - /home/pechan/Documents/courses/development/creatis/dev/src/creaMiniTools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept0.bbg
+# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbg
 # ----------------------------------
 
 APP_START
@@ -8,101 +8,239 @@ CATEGORY:<VOID>
 DESCRIPTION:Description ??
 AUTHOR:Author ??
 COMPLEXBOX:FALSE
-BOXES:9
+BOXES:17
 BOX
-creaImageIO:ImagesChooserDialogBox:Box00
+vtk:RescaleSlopeIntercept:Box03
+ISEXEC:FALSE
+-74.017840:-40.362994:900.000000
+-2.842840:-50.362994:900.000000
+PORT
+Type:0
+FIN_BOX
+BOX
+creaMiniTools:ImagePropertiesWidget:Box06
+ISEXEC:FALSE
+-291.160470:-39.687049:900.000000
+-219.985470:-49.687049:900.000000
+FIN_BOX
+BOX
+creaMiniTools:ImagePropertiesWidget:Box07
+ISEXEC:FALSE
+-9.156032:-87.828145:900.000000
+62.018968:-97.828145:900.000000
+FIN_BOX
+BOX
+wx:FileSelector:Box10
+ISEXEC:FALSE
+-76.471787:160.454710:900.000000
+-30.896787:150.454710:900.000000
+FIN_BOX
+BOX
+itk:ImageReader:Box11
+ISEXEC:FALSE
+-77.970586:138.696535:900.000000
+-32.395586:128.696535:900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:Box12
+ISEXEC:FALSE
+-210.993106:-38.951379:900.000000
+-153.433106:-48.951379:900.000000
+FIN_BOX
+BOX
+wx:InputText:Box13
 ISEXEC:FALSE
--72.843408:176.342921:900.000000
--1.668408:166.342921:900.000000
+-212.203291:92.382137:900.000000
+-166.628291:82.382137:900.000000
+PORT
+In:0
+PORT
+Title:Slope
 FIN_BOX
 BOX
-creaMaracasVisu:ViewerNV:Box01
+wx:InputText:Box14
 ISEXEC:FALSE
--184.070991:90.448195:900.000000
--123.430991:80.448195:900.000000
+-255.610893:107.943563:900.000000
+-210.035893:97.943563:900.000000
 PORT
-WinTitle:"View"
+In:1
+PORT
+Title:"Rescale"
 FIN_BOX
 BOX
-creaMaracasVisu:ViewerNV:Box02
+wx:OutputText:Box15
 ISEXEC:FALSE
--13.781185:28.406117:900.000000
-46.858815:18.406117:900.000000
+-266.576289:123.067790:900.000000
+-221.001289:113.067790:900.000000
+PORT
+In:"NewPixel = Rescale * Pixel + Slope"
 FIN_BOX
 BOX
-vtk:RescaleSlopeIntercept:Box03
+wx:LayoutLine:Box16
 ISEXEC:FALSE
--4.218730:107.155746:900.000000
-66.956270:97.155746:900.000000
+-187.834685:-113.990491:900.000000
+-130.274685:-123.990491:900.000000
 PORT
-Type:0
+Orientation:H
 FIN_BOX
 BOX
-wx:LayoutTab:Box04
+wx:CommandButton:Box17
 ISEXEC:FALSE
--137.052530:-32.197745:900.000000
--79.492530:-42.197745:900.000000
+-118.719205:-113.734070:900.000000
+-73.144205:-123.734070:900.000000
 PORT
-WinTitle:"View"
+Label:"Run RescaleSlopeIntercept"
+FIN_BOX
+BOX
+creaMiniToolsBase:SaveMHD-Button:Box20
+ISEXEC:FALSE
+-73.123485:-89.855485:900.000000
+-27.548485:-99.855485:900.000000
 FIN_BOX
 BOX
-wx:LayoutTab:Box05
+wx:RadioButton:Box25
 ISEXEC:FALSE
--14.906180:-27.843619:900.000000
-42.653820:-37.843619:900.000000
+-53.103788:71.205646:900.000000
+10.616212:61.205646:900.000000
+PORT
+In:2
+PORT
+In0:VTK_UNSIGNED_CHAR
+PORT
+In1:VTK_SIGNED_CHAR
+PORT
+In2:VTK_UNSIGNED_SHORT
+PORT
+In3:VTK_SHORT
+PORT
+In4:VTK_UNSIGNED_INT
+PORT
+In5:VTK_SIGNED_INT
+PORT
+In6:VTK_UNSIGNED_LONG
+PORT
+In7:VTK_SIGNED_LONG
+PORT
+In8:VTK_FLOAT
+PORT
+In9:VTK_DOUBLE
+PORT
+Title:"Output Data Format"
 FIN_BOX
 BOX
-creaMiniTools:ImagePropertiesComplexBox:Box06
+std:StringSelect:Box26
 ISEXEC:FALSE
--102.862997:84.348209:900.000000
--31.687997:74.348209:900.000000
+-56.013914:39.801062:900.000000
+-10.438914:29.801062:900.000000
+PORT
+In0:"VTK_UNSIGNED_CHAR"
+PORT
+In1:"VTK_SIGNED_CHAR"
+PORT
+In2:"VTK_UNSIGNED_SHORT"
+PORT
+In3:"VTK_SIGNED_SHORT"
+PORT
+In4:"VTK_UNSIGNED_INT"
+PORT
+In5:"VTK_SIGNED_INT"
+PORT
+In6:"VTK_UNSIGNED_LONG"
+PORT
+In7:"VTK_SIGNED_LONG"
+PORT
+In8:"VTK_FLOAT"
+PORT
+In9:"VTK_DOUBLE"
 FIN_BOX
 BOX
-creaMiniTools:ImagePropertiesComplexBox:Box07
+wx:LayoutSplit:Box27
 ISEXEC:FALSE
-69.148136:33.159909:900.000000
-140.323136:23.159909:900.000000
+-50.224898:-147.099582:900.000000
+-4.649898:-157.099582:900.000000
+PORT
+Proportion:15
+PORT
+WinHeight:300
+PORT
+WinWidth:300
 FIN_BOX
 BOX
-wx:LayoutSplit:Box08
+wx:LayoutSplit:Box33
 ISEXEC:TRUE
--60.436659:-88.124080:900.000000
--14.861659:-98.124080:900.000000
+-148.878714:-166.830345:900.000000
+-103.303714:-176.830345:900.000000
 PORT
-WinTitle:"RescaleSlopeIntercept 1"
+Proportion:90
 FIN_BOX
-CONNECTIONS:11
+BOX
+wx:LayoutSplit:Box34
+ISEXEC:FALSE
+-177.327722:-63.587979:900.000000
+-131.752722:-73.587979:900.000000
+FIN_BOX
+CONNECTIONS:21
 CONNECTION
-Box00:Out:Box01:In
+Box03:Out:Box07:in
 NumberOfControlPoints:0
 CONNECTION
-Box00:Out:Box03:In
+Box10:Out:Box11:In
 NumberOfControlPoints:0
 CONNECTION
-Box03:Out:Box02:In
+Box15:Widget:Box12:Widget1
 NumberOfControlPoints:0
 CONNECTION
-Box01:Widget:Box04:Widget1
+Box06:widget:Box16:Widget1
 NumberOfControlPoints:0
 CONNECTION
-Box02:Widget:Box05:Widget1
+Box03:Out:Box20:In
 NumberOfControlPoints:0
 CONNECTION
-Box00:Out:Box06:in
+Box26:Out:Box03:OutputFormat
 NumberOfControlPoints:0
 CONNECTION
-Box06:widget:Box04:Widget2
+Box25:Out:Box26:In
 NumberOfControlPoints:0
 CONNECTION
-Box03:Out:Box07:in
+Box14:Out:Box03:A
+NumberOfControlPoints:0
+CONNECTION
+Box13:Out:Box03:B
+NumberOfControlPoints:0
+CONNECTION
+Box07:widget:Box27:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box20:Widget:Box27:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box14:Widget:Box12:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box13:Widget:Box12:Widget3
+NumberOfControlPoints:0
+CONNECTION
+Box11:Out:Box03:In
+NumberOfControlPoints:0
+CONNECTION
+Box17:BoxChange:Box27:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box11:Out:Box06:in
+NumberOfControlPoints:0
+CONNECTION
+Box17:Widget:Box33:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box16:Widget:Box33:Widget1
 NumberOfControlPoints:0
 CONNECTION
-Box07:widget:Box05:Widget2
+Box25:Widget:Box34:Widget2
 NumberOfControlPoints:0
 CONNECTION
-Box04:Widget:Box08:Widget1
+Box12:Widget:Box34:Widget1
 NumberOfControlPoints:0
 CONNECTION
-Box05:Widget:Box08:Widget2
+Box34:Widget:Box16:Widget2
 NumberOfControlPoints:0
 APP_END
index af202007c1cd5320d552a97d9dbdd95f298e191d..dc7928c748d0fdb9ac6f62626b2a1a641ebab3d9 100755 (executable)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.2 BBS BlackBox Script
-# - /home/pechan/Documents/courses/development/creatis/dev/src/creaMiniTools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept0.bbs
+# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
 # ----------------------------------
 
 # BBTK GEditor Script
 
 include std
 include itkvtk
-include creaImageIO
-include creaMaracasVisu
 include vtk
-include wx
 include creaMiniTools
+include wx
+include itk
+include creaMiniToolsBase
+include std
 
 author "Author ??"
 description "Description ??"
 category "<VOID>"
 
-new ImagesChooserDialogBox Box00
+new RescaleSlopeIntercept Box03
+  set Box03.Type 0
+
+new ImagePropertiesWidget Box06
 
-new ViewerNV Box01
-  set Box01.WinTitle "View"
+new ImagePropertiesWidget Box07
 
-new ViewerNV Box02
+new FileSelector Box10
 
-new RescaleSlopeIntercept Box03
-  set Box03.Type 0
+new ImageReader Box11
+
+new LayoutLine Box12
+
+new InputText Box13
+  set Box13.In 0
+  set Box13.Title Slope
+
+new InputText Box14
+  set Box14.In 1
+  set Box14.Title "Rescale"
+
+new OutputText Box15
+  set Box15.In "NewPixel = Rescale * Pixel + Slope"
+
+new LayoutLine Box16
+  set Box16.Orientation H
+
+new CommandButton Box17
+  set Box17.Label "Run RescaleSlopeIntercept"
+
+new SaveMHD-Button Box20
 
-new LayoutTab Box04
-  set Box04.WinTitle "View"
+new RadioButton Box25
+  set Box25.In 2
+  set Box25.In0 VTK_UNSIGNED_CHAR
+  set Box25.In1 VTK_SIGNED_CHAR
+  set Box25.In2 VTK_UNSIGNED_SHORT
+  set Box25.In3 VTK_SHORT
+  set Box25.In4 VTK_UNSIGNED_INT
+  set Box25.In5 VTK_SIGNED_INT
+  set Box25.In6 VTK_UNSIGNED_LONG
+  set Box25.In7 VTK_SIGNED_LONG
+  set Box25.In8 VTK_FLOAT
+  set Box25.In9 VTK_DOUBLE
+  set Box25.Title "Output Data Format"
 
-new LayoutTab Box05
+new StringSelect Box26
+  set Box26.In0 "VTK_UNSIGNED_CHAR"
+  set Box26.In1 "VTK_SIGNED_CHAR"
+  set Box26.In2 "VTK_UNSIGNED_SHORT"
+  set Box26.In3 "VTK_SIGNED_SHORT"
+  set Box26.In4 "VTK_UNSIGNED_INT"
+  set Box26.In5 "VTK_SIGNED_INT"
+  set Box26.In6 "VTK_UNSIGNED_LONG"
+  set Box26.In7 "VTK_SIGNED_LONG"
+  set Box26.In8 "VTK_FLOAT"
+  set Box26.In9 "VTK_DOUBLE"
 
-new ImagePropertiesComplexBox Box06
+new LayoutSplit Box27
+  set Box27.Proportion 15
+  set Box27.WinHeight 300
+  set Box27.WinWidth 300
 
-new ImagePropertiesComplexBox Box07
+new LayoutSplit Box33
+  set Box33.Proportion 90
 
-new LayoutSplit Box08
-  set Box08.WinTitle "RescaleSlopeIntercept 1"
+new LayoutSplit Box34
 
 
-connect Box00.Out Box01.In
-connect Box00.Out Box03.In
-connect Box03.Out Box02.In
-connect Box01.Widget Box04.Widget1
-connect Box02.Widget Box05.Widget1
-connect Box00.Out Box06.in
-connect Box06.widget Box04.Widget2
 connect Box03.Out Box07.in
-connect Box07.widget Box05.Widget2
-connect Box04.Widget Box08.Widget1
-connect Box05.Widget Box08.Widget2
+connect Box10.Out Box11.In
+connect Box15.Widget Box12.Widget1
+connect Box06.widget Box16.Widget1
+connect Box03.Out Box20.In
+connect Box26.Out Box03.OutputFormat
+connect Box25.Out Box26.In
+connect Box14.Out Box03.A
+connect Box13.Out Box03.B
+connect Box07.widget Box27.Widget2
+connect Box20.Widget Box27.Widget1
+connect Box14.Widget Box12.Widget2
+connect Box13.Widget Box12.Widget3
+connect Box11.Out Box03.In
+connect Box17.BoxChange Box27.BoxExecute
+connect Box11.Out Box06.in
+connect Box17.Widget Box33.Widget2
+connect Box16.Widget Box33.Widget1
+connect Box25.Widget Box34.Widget2
+connect Box12.Widget Box34.Widget1
+connect Box34.Widget Box16.Widget2
 
-exec Box08
+exec Box33
index f42f424fd1201a0b910063ba389e20636669e372..f3ea14be6f4edb083614a28904e79f9a89c16a60 100644 (file)
@@ -16,7 +16,7 @@ COMPLEX_PORT
 widget
 -51.964761:24.988519:900.000000
 FIN_COMPLEX_PORT
-BOXES:3
+BOXES:5
 BOX
 wx:LayoutLine:Box01
 ISEXEC:FALSE
@@ -31,7 +31,7 @@ ISEXEC:FALSE
 -41.013084:77.943418:900.000000
 4.561916:67.943418:900.000000
 PORT
-In:"http://www.creatis.insa-lyon.fr/site/fr/CreatoolsDocumentation"
+In:"www.creatis.insa-lyon.fr/site/fr/CreatoolsDocumentation"
 FIN_BOX
 BOX
 wx:CommandButton:Box03
@@ -41,7 +41,23 @@ ISEXEC:FALSE
 PORT
 Label:"www.creatis.insta-lyon.fr/site/creatools  ->  Documentation -> Getting started"
 FIN_BOX
-CONNECTIONS:3
+BOX
+wx:CommandButton:Box04
+ISEXEC:FALSE
+-114.436058:135.165171:900.000000
+-68.861058:125.165171:900.000000
+PORT
+Label:"creaTools Web Site  -  www.creatis.insta-lyon.fr/site/creatools"
+FIN_BOX
+BOX
+wx:LaunchBrowser:Box05
+ISEXEC:FALSE
+-144.535865:114.152098:900.000000
+-98.960865:104.152098:900.000000
+PORT
+In:"www.creatis.insa-lyon.fr"
+FIN_BOX
+CONNECTIONS:5
 CONNECTION
 Box01:Widget:widget:widget
 NumberOfControlPoints:0
@@ -49,6 +65,12 @@ CONNECTION
 Box03:BoxChange:Box02:BoxExecute
 NumberOfControlPoints:0
 CONNECTION
-Box03:Widget:Box01:Widget1
+Box04:BoxChange:Box05:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box03:Widget:Box01:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box04:Widget:Box01:Widget1
 NumberOfControlPoints:0
 APP_END
index c6504553085f211248d29074d9965c00ae6a68a2..33a1e68a36d6f758f27b1638a77677ef607dbd04 100644 (file)
@@ -18,14 +18,22 @@ new LayoutLine Box01
   set Box01.WinTitle "Help"
 
 new LaunchBrowser Box02
-  set Box02.In "http://www.creatis.insa-lyon.fr/site/fr/CreatoolsDocumentation"
+  set Box02.In "www.creatis.insa-lyon.fr/site/fr/CreatoolsDocumentation"
 
 new CommandButton Box03
   set Box03.Label "www.creatis.insta-lyon.fr/site/creatools  ->  Documentation -> Getting started"
 
+new CommandButton Box04
+  set Box04.Label "creaTools Web Site  -  www.creatis.insta-lyon.fr/site/creatools"
+
+new LaunchBrowser Box05
+  set Box05.In "www.creatis.insa-lyon.fr"
+
 
 connect Box03.BoxChange Box02.BoxExecute
-connect Box03.Widget Box01.Widget1
+connect Box04.BoxChange Box05.BoxExecute
+connect Box03.Widget Box01.Widget2
+connect Box04.Widget Box01.Widget1
 
 
 # Complex input ports
index 64bf14ccbe0e9b5acf97f490f9b468f088ba94a1..678cd6b986e0356527f6a72e0319c5c08461726c 100644 (file)
@@ -23,7 +23,7 @@ ISEXEC:FALSE
 1.000616:117.698250:900.000000
 46.575616:107.698250:900.000000
 PORT
-Label:"rescaleSlopeIntercept0"
+Label:"NewPixel = Rescale * pixel + Slope  AND   Data Format"
 FIN_BOX
 BOX
 wx:CommandButton:Box01
@@ -92,8 +92,8 @@ FIN_BOX
 BOX
 wx:LayoutLine:Box09
 ISEXEC:FALSE
-81.745617:17.912386:900.000000
-139.305617:7.912386:900.000000
+44.838022:-11.086439:900.000000
+102.398022:-21.086439:900.000000
 PORT
 WinTitle:"RescaleSlopeIntercept"
 FIN_BOX
index 57d7b8264bff62aa0321c93f44d8e08edd02bfae..cff7e7b97a6e29d0726e05bb3ccdfc4b4d741a18 100644 (file)
@@ -16,7 +16,7 @@ description "Description ??"
 category "<VOID>"
 
 new CommandButton Box00
-  set Box00.Label "rescaleSlopeIntercept0"
+  set Box00.Label "NewPixel = Rescale * pixel + Slope  AND   Data Format"
 
 new CommandButton Box01
   set Box01.Label "rescaleSlopeIntercept1"