]> Creatis software - bbtk.git/commitdiff
Move to "toolsbbtk" boxes that shouldn't be in "CreaMiniTool"
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 10 Jun 2011 09:53:07 +0000 (09:53 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 10 Jun 2011 09:53:07 +0000 (09:53 +0000)
packages/toolsbbtk/bbs/boxes/SaveMHD-Button.bbg [new file with mode: 0644]
packages/toolsbbtk/bbs/boxes/SaveMHD-Button.bbs [new file with mode: 0644]
packages/toolsbbtk/bbs/boxes/imagePropertiesWidget.bbg [new file with mode: 0644]
packages/toolsbbtk/bbs/boxes/imagePropertiesWidget.bbs [new file with mode: 0644]

diff --git a/packages/toolsbbtk/bbs/boxes/SaveMHD-Button.bbg b/packages/toolsbbtk/bbs/boxes/SaveMHD-Button.bbg
new file mode 100644 (file)
index 0000000..28b2161
--- /dev/null
@@ -0,0 +1,75 @@
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/All3/creatools_source/bbs/package/toolsbbtk/bbs/boxes/SaveMHD-Button.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:read/write widget
+DESCRIPTION:Button that saves the input vtkImageData as a MHD file
+AUTHOR:info-team at creatis.insa-lyon.fr
+COMPLEXBOX:TRUE
+COMPLEXBOXNAME:SaveMHD-Button
+PACKAGENAME:toolsbbtk
+COMPLEXINPUTS:1
+COMPLEX_PORT
+In
+-75.009417:12.908981:900.000000
+FIN_COMPLEX_PORT
+COMPLEXOUTPUTS:1
+COMPLEX_PORT
+Widget
+-111.247984:-117.548664:900.000000
+FIN_COMPLEX_PORT
+BOXES:4
+BOX
+wx:CommandButton:Box00
+ISEXEC:FALSE
+-118.250801:-14.140786:900.000000
+-72.675801:-24.140786:900.000000
+PORT
+Label:"Save Image"
+PORT
+WinTitle:"Save Img."
+FIN_BOX
+BOX
+vtk:MetaImageWriter:Box01
+ISEXEC:FALSE
+-102.332504:-77.410838:900.000000
+-56.757504:-87.410838:900.000000
+FIN_BOX
+BOX
+wx:FileSelector:Box02
+ISEXEC:FALSE
+-95.626639:-48.941097:900.000000
+-50.051639:-58.941097:900.000000
+PORT
+BoxProcessMode:Always
+PORT
+OpenSave:Save
+FIN_BOX
+BOX
+wx:LayoutLine:Box03
+ISEXEC:FALSE
+-133.745102:-96.440218:900.000000
+-76.185102:-106.440218:900.000000
+PORT
+WinTitle:"Save MHD"
+FIN_BOX
+CONNECTIONS:5
+CONNECTION
+Box00:BoxChange:Box01:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box02:Out:Box01:Filename
+NumberOfControlPoints:0
+CONNECTION
+In:In:Box01:In
+NumberOfControlPoints:1
+-43.197277:-54.220032:900.000000
+CONNECTION
+Box03:Widget:Widget:Widget
+NumberOfControlPoints:0
+CONNECTION
+Box00:Widget:Box03:Widget1
+NumberOfControlPoints:0
+APP_END
diff --git a/packages/toolsbbtk/bbs/boxes/SaveMHD-Button.bbs b/packages/toolsbbtk/bbs/boxes/SaveMHD-Button.bbs
new file mode 100644 (file)
index 0000000..d5797f5
--- /dev/null
@@ -0,0 +1,43 @@
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
+# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniToolsBase/bbs/boxes/SaveMHD-Button.bbs
+# ----------------------------------
+
+include std
+include itkvtk
+include wx
+include vtk
+
+define SaveMHD-Button toolsbbtk
+
+author "info-team at creatis.insa-lyon.fr"
+description "Button that saves the input vtkImageData as a MHD file"
+
+category "read/write widget"
+
+new CommandButton Box00
+  set Box00.Label "Save Image"
+  set Box00.WinTitle "Save Img."
+
+new MetaImageWriter Box01
+
+new FileSelector Box02
+  set Box02.BoxProcessMode Always
+  set Box02.OpenSave Save
+
+new LayoutLine Box03
+  set Box03.WinTitle "Save MHD"
+
+
+connect Box00.BoxChange Box01.BoxExecute
+connect Box02.Out Box01.Filename
+connect Box00.Widget Box03.Widget1
+
+
+# Complex input ports
+input In Box01.In " "
+
+# Complex output ports
+output Widget Box03.Widget " "
+
+endefine
diff --git a/packages/toolsbbtk/bbs/boxes/imagePropertiesWidget.bbg b/packages/toolsbbtk/bbs/boxes/imagePropertiesWidget.bbg
new file mode 100644 (file)
index 0000000..47ec8a3
--- /dev/null
@@ -0,0 +1,249 @@
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/creaMiniTools/boxes/imagePropertiesWidget.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:<VOID>
+DESCRIPTION:Description ??
+AUTHOR:Author ??
+COMPLEXBOX:TRUE
+COMPLEXBOXNAME:ImagePropertiesWidget
+PACKAGENAME:toolsbbtk
+COMPLEXINPUTS:1
+COMPLEX_PORT
+in
+-144.093287:169.589652:900.000000
+FIN_COMPLEX_PORT
+COMPLEXOUTPUTS:1
+COMPLEX_PORT
+widget
+-157.349696:-124.813097:900.000000
+FIN_COMPLEX_PORT
+BOXES:20
+BOX
+itk:ImageProperties:Box00
+ISEXEC:FALSE
+-145.686815:129.093143:900.000000
+-100.111815:119.093143:900.000000
+FIN_BOX
+BOX
+wx:OutputText:Box01
+ISEXEC:FALSE
+-392.060658:73.405905:900.000000
+-346.485658:63.405905:900.000000
+PORT
+Title:"Dimension"
+FIN_BOX
+BOX
+wx:OutputText:Box02
+ISEXEC:FALSE
+-358.426846:55.730693:900.000000
+-312.851846:45.730693:900.000000
+FIN_BOX
+BOX
+wx:OutputText:Box13
+ISEXEC:FALSE
+-290.466136:70.718935:900.000000
+-244.891136:60.718935:900.000000
+PORT
+Title:"Index"
+FIN_BOX
+BOX
+wx:OutputText:Box14
+ISEXEC:FALSE
+-261.191566:53.043723:900.000000
+-215.616566:43.043723:900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:Box15
+ISEXEC:FALSE
+-163.425550:-86.148571:900.000000
+-105.865550:-96.148571:900.000000
+PORT
+WinTitle:"Image Properties"
+FIN_BOX
+BOX
+wx:OutputText:Box16
+ISEXEC:FALSE
+-208.718281:69.061884:900.000000
+-163.143281:59.061884:900.000000
+PORT
+Title:"Size"
+FIN_BOX
+BOX
+wx:OutputText:Box17
+ISEXEC:FALSE
+-161.016548:69.336371:900.000000
+-115.441548:59.336371:900.000000
+FIN_BOX
+BOX
+wx:OutputText:Box20
+ISEXEC:FALSE
+-85.658882:43.696190:900.000000
+-40.083882:33.696190:900.000000
+FIN_BOX
+BOX
+wx:OutputText:Box21
+ISEXEC:FALSE
+-132.637209:44.388190:900.000000
+-87.062209:34.388190:900.000000
+PORT
+Title:"Spacing"
+FIN_BOX
+BOX
+wx:OutputText:Box22
+ISEXEC:FALSE
+1.493239:61.750233:900.000000
+47.068239:51.750233:900.000000
+FIN_BOX
+BOX
+wx:OutputText:Box23
+ISEXEC:FALSE
+-46.555398:62.040267:900.000000
+-0.980398:52.040267:900.000000
+PORT
+Title:"TypeName"
+FIN_BOX
+BOX
+wx:LayoutLine:Box12
+ISEXEC:FALSE
+-384.394436:14.157149:900.000000
+-326.834436:4.157149:900.000000
+PORT
+Orientation:H
+FIN_BOX
+BOX
+wx:LayoutLine:Box18
+ISEXEC:FALSE
+-294.131087:14.551719:900.000000
+-236.571087:4.551719:900.000000
+PORT
+Orientation:H
+FIN_BOX
+BOX
+wx:LayoutLine:Box19
+ISEXEC:FALSE
+-198.879494:13.671538:900.000000
+-141.319494:3.671538:900.000000
+PORT
+Orientation:H
+FIN_BOX
+BOX
+wx:LayoutLine:Box24
+ISEXEC:FALSE
+-113.821521:15.746123:900.000000
+-56.261521:5.746123:900.000000
+PORT
+Orientation:H
+FIN_BOX
+BOX
+wx:LayoutLine:Box25
+ISEXEC:FALSE
+-25.305907:11.596953:900.000000
+32.254093:1.596953:900.000000
+PORT
+Orientation:H
+FIN_BOX
+BOX
+wx:OutputText:Box26
+ISEXEC:FALSE
+100.840399:46.469549:900.000000
+146.415399:36.469549:900.000000
+FIN_BOX
+BOX
+wx:OutputText:Box27
+ISEXEC:FALSE
+50.820496:45.520067:900.000000
+96.395496:35.520067:900.000000
+PORT
+Title:"Min Max"
+FIN_BOX
+BOX
+wx:LayoutLine:Box28
+ISEXEC:FALSE
+68.532791:11.077398:900.000000
+126.092791:1.077398:900.000000
+PORT
+Orientation:H
+FIN_BOX
+CONNECTIONS:26
+CONNECTION
+Box00:Dimension:Box02:In
+NumberOfControlPoints:0
+CONNECTION
+Box00:Index:Box14:In
+NumberOfControlPoints:0
+CONNECTION
+Box00:Size:Box17:In
+NumberOfControlPoints:0
+CONNECTION
+Box00:Spacing:Box20:Title
+NumberOfControlPoints:0
+CONNECTION
+Box00:TypeName:Box22:In
+NumberOfControlPoints:0
+CONNECTION
+in:in:Box00:In
+NumberOfControlPoints:0
+CONNECTION
+Box15:Widget:widget:widget
+NumberOfControlPoints:0
+CONNECTION
+Box01:Widget:Box12:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box02:Widget:Box12:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box12:Widget:Box15:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box13:Widget:Box18:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box14:Widget:Box18:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box18:Widget:Box15:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box19:Widget:Box15:Widget3
+NumberOfControlPoints:0
+CONNECTION
+Box24:Widget:Box15:Widget4
+NumberOfControlPoints:0
+CONNECTION
+Box25:Widget:Box15:Widget5
+NumberOfControlPoints:0
+CONNECTION
+Box16:Widget:Box19:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box17:Widget:Box19:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box20:Widget:Box24:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box21:Widget:Box24:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box22:Widget:Box25:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box23:Widget:Box25:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box26:Widget:Box28:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box27:Widget:Box28:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box00:MinMax:Box26:In
+NumberOfControlPoints:0
+CONNECTION
+Box28:Widget:Box15:Widget6
+NumberOfControlPoints:0
+APP_END
diff --git a/packages/toolsbbtk/bbs/boxes/imagePropertiesWidget.bbs b/packages/toolsbbtk/bbs/boxes/imagePropertiesWidget.bbs
new file mode 100644 (file)
index 0000000..638d0e0
--- /dev/null
@@ -0,0 +1,104 @@
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
+# - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/tools/boxes/imagePropertiesWidget.bbs
+# ----------------------------------
+
+include std
+include itkvtk
+include itk
+include wx
+
+define ImagePropertiesWidget toolsbbtk
+
+author "Author ??"
+description "Description ??"
+
+category "<VOID>"
+
+new ImageProperties Box00
+
+new OutputText Box01
+  set Box01.Title "Dimension"
+
+new OutputText Box02
+
+new OutputText Box13
+  set Box13.Title "Index"
+
+new OutputText Box14
+
+new LayoutLine Box15
+  set Box15.WinTitle "Image Properties"
+
+new OutputText Box16
+  set Box16.Title "Size"
+
+new OutputText Box17
+
+new OutputText Box20
+
+new OutputText Box21
+  set Box21.Title "Spacing"
+
+new OutputText Box22
+
+new OutputText Box23
+  set Box23.Title "TypeName"
+
+new LayoutLine Box12
+  set Box12.Orientation H
+
+new LayoutLine Box18
+  set Box18.Orientation H
+
+new LayoutLine Box19
+  set Box19.Orientation H
+
+new LayoutLine Box24
+  set Box24.Orientation H
+
+new LayoutLine Box25
+  set Box25.Orientation H
+
+new OutputText Box26
+
+new OutputText Box27
+  set Box27.Title "Min Max"
+
+new LayoutLine Box28
+  set Box28.Orientation H
+
+
+connect Box00.Dimension Box02.In
+connect Box00.Index Box14.In
+connect Box00.Size Box17.In
+connect Box00.Spacing Box20.Title
+connect Box00.TypeName Box22.In
+connect Box01.Widget Box12.Widget1
+connect Box02.Widget Box12.Widget2
+connect Box12.Widget Box15.Widget1
+connect Box13.Widget Box18.Widget1
+connect Box14.Widget Box18.Widget2
+connect Box18.Widget Box15.Widget2
+connect Box19.Widget Box15.Widget3
+connect Box24.Widget Box15.Widget4
+connect Box25.Widget Box15.Widget5
+connect Box16.Widget Box19.Widget1
+connect Box17.Widget Box19.Widget2
+connect Box20.Widget Box24.Widget2
+connect Box21.Widget Box24.Widget1
+connect Box22.Widget Box25.Widget2
+connect Box23.Widget Box25.Widget1
+connect Box26.Widget Box28.Widget2
+connect Box27.Widget Box28.Widget1
+connect Box00.MinMax Box26.In
+connect Box28.Widget Box15.Widget6
+
+
+# Complex input ports
+input in Box00.In " "
+
+# Complex output ports
+output widget Box15.Widget " "
+
+endefine