From eafedb040993e52ecb94bb9508501d1444ace6d8 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Fri, 17 Jun 2011 08:31:26 +0000 Subject: [PATCH] no message --- .../bbs/boxes/imageItkPropertiesWidget.bbg | 171 ++++++++++++++++++ .../bbs/boxes/imageItkPropertiesWidget.bbs | 68 +++++++ .../bbs/boxes/imageVtkPropertiesWidget.bbg | 171 ++++++++++++++++++ .../bbs/boxes/imageVtkPropertiesWidget.bbs | 68 +++++++ ...erties.cxx => bbvtkImageVtkProperties.cxx} | 14 +- ...Properties.h => bbvtkImageVtkProperties.h} | 30 +-- 6 files changed, 500 insertions(+), 22 deletions(-) create mode 100644 packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbg create mode 100644 packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbs create mode 100644 packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbg create mode 100644 packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbs rename packages/vtk/src/{bbvtkImageProperties.cxx => bbvtkImageVtkProperties.cxx} (90%) rename packages/vtk/src/{bbvtkImageProperties.h => bbvtkImageVtkProperties.h} (58%) diff --git a/packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbg b/packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbg new file mode 100644 index 0000000..4dd4760 --- /dev/null +++ b/packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbg @@ -0,0 +1,171 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All3/creatools_source/bbtk/packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ImageItkPropertiesWidget +PACKAGENAME:toolsbbtk +COMPLEXINPUTS:1 +COMPLEX_PORT +in +-80.663770:148.604993:900.000000 +FIN_COMPLEX_PORT +COMPLEXOUTPUTS:7 +COMPLEX_PORT +widget +-142.967861:-58.247376:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Dimensions +-124.883681:-57.175644:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Index +-108.940640:-56.720128:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +MinMax +-92.628104:-54.898845:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Size +-81.734224:-56.500886:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Spacing +-70.199528:-56.180478:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +TypeName +-57.383199:-56.821294:900.000000 +FIN_COMPLEX_PORT +BOXES:8 +BOX +itk:ImageProperties:Box00 +ISEXEC:FALSE +-86.392715:120.167267:900.000000 +-40.817715:110.167267:900.000000 +FIN_BOX +BOX +wx:OutputText:Box02 +ISEXEC:FALSE +-348.493528:57.422012:900.000000 +-302.918528:47.422012:900.000000 +PORT +Title:"Dimension" +FIN_BOX +BOX +wx:OutputText:Box14 +ISEXEC:FALSE +-306.197846:44.988878:900.000000 +-260.622846:34.988878:900.000000 +PORT +Title:"Index" +FIN_BOX +BOX +wx:LayoutLine:Box15 +ISEXEC:FALSE +-196.596247:-31.096236:900.000000 +-139.036247:-41.096236:900.000000 +PORT +WinTitle:"Image Properties" +FIN_BOX +BOX +wx:OutputText:Box17 +ISEXEC:FALSE +-262.616712:54.641899:900.000000 +-217.041712:44.641899:900.000000 +PORT +Title:"Size" +FIN_BOX +BOX +wx:OutputText:Box20 +ISEXEC:FALSE +-232.876715:39.300084:900.000000 +-187.301715:29.300084:900.000000 +PORT +Title:"Spacing" +FIN_BOX +BOX +wx:OutputText:Box22 +ISEXEC:FALSE +-191.029461:30.782065:900.000000 +-145.454461:20.782065:900.000000 +PORT +Title:"TypeName" +FIN_BOX +BOX +wx:OutputText:Box26 +ISEXEC:FALSE +-166.067448:13.413901:900.000000 +-120.492448:3.413901:900.000000 +PORT +Title:"Min Max" +FIN_BOX +CONNECTIONS:20 +CONNECTION +Box00:Dimension:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box00:Index:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box00:Size:Box17:In +NumberOfControlPoints:0 +CONNECTION +Box00:TypeName:Box22:In +NumberOfControlPoints:0 +CONNECTION +in:in:Box00:In +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:widget:widget +NumberOfControlPoints:0 +CONNECTION +Box00:MinMax:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box00:Spacing:Box20:In +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box15:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box20:Widget:Box15:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box22:Widget:Box15:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box26:Widget:Box15:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box00:Dimension:Dimensions:Dimensions +NumberOfControlPoints:0 +CONNECTION +Box00:Index:Index:Index +NumberOfControlPoints:0 +CONNECTION +Box00:MinMax:MinMax:MinMax +NumberOfControlPoints:0 +CONNECTION +Box00:Size:Size:Size +NumberOfControlPoints:0 +CONNECTION +Box00:Spacing:Spacing:Spacing +NumberOfControlPoints:0 +CONNECTION +Box00:TypeName:TypeName:TypeName +NumberOfControlPoints:0 +APP_END diff --git a/packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbs b/packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbs new file mode 100644 index 0000000..470517d --- /dev/null +++ b/packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbs @@ -0,0 +1,68 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All3/creatools_source/bbtk/packages/toolsbbtk/bbs/boxes/imageItkPropertiesWidget.bbs +# ---------------------------------- + +include std +include itkvtk +include itk +include wx + +define ImageItkPropertiesWidget toolsbbtk + +author "Author ??" +description "Description ??" + +category "" + +new ImageProperties Box00 + +new OutputText Box02 + set Box02.Title "Dimension" + +new OutputText Box14 + set Box14.Title "Index" + +new LayoutLine Box15 + set Box15.WinTitle "Image Properties" + +new OutputText Box17 + set Box17.Title "Size" + +new OutputText Box20 + set Box20.Title "Spacing" + +new OutputText Box22 + set Box22.Title "TypeName" + +new OutputText Box26 + set Box26.Title "Min Max" + + +connect Box00.Dimension Box02.In +connect Box00.Index Box14.In +connect Box00.Size Box17.In +connect Box00.TypeName Box22.In +connect Box00.MinMax Box26.In +connect Box00.Spacing Box20.In +connect Box02.Widget Box15.Widget1 +connect Box14.Widget Box15.Widget2 +connect Box17.Widget Box15.Widget3 +connect Box20.Widget Box15.Widget4 +connect Box22.Widget Box15.Widget5 +connect Box26.Widget Box15.Widget6 + + +# Complex input ports +input in Box00.In " " + +# Complex output ports +output widget Box15.Widget " " +output Dimensions Box00.Dimension " " +output Index Box00.Index " " +output MinMax Box00.MinMax " " +output Size Box00.Size " " +output Spacing Box00.Spacing " " +output TypeName Box00.TypeName " " + +endefine diff --git a/packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbg b/packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbg new file mode 100644 index 0000000..53b5cf1 --- /dev/null +++ b/packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbg @@ -0,0 +1,171 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBG BlackBox Diagram file +# - /Users/davila/Creatis/All3/creatools_source/bbtk/packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:ImageVtkPropertiesWidget +PACKAGENAME:toolsbbtk +COMPLEXINPUTS:1 +COMPLEX_PORT +in +-80.663770:148.604993:900.000000 +FIN_COMPLEX_PORT +COMPLEXOUTPUTS:7 +COMPLEX_PORT +widget +-142.967861:-58.247376:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Dimensions +-124.883681:-57.175644:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Index +-108.940640:-56.720128:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +MinMax +-92.628104:-54.898845:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Size +-81.734224:-56.500886:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +Spacing +-70.199528:-56.180478:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +TypeName +-57.383199:-56.821294:900.000000 +FIN_COMPLEX_PORT +BOXES:8 +BOX +itk:ImageProperties:Box00 +ISEXEC:FALSE +-86.392715:120.167267:900.000000 +-40.817715:110.167267:900.000000 +FIN_BOX +BOX +wx:OutputText:Box02 +ISEXEC:FALSE +-348.493528:57.422012:900.000000 +-302.918528:47.422012:900.000000 +PORT +Title:"Dimension" +FIN_BOX +BOX +wx:OutputText:Box14 +ISEXEC:FALSE +-306.197846:44.988878:900.000000 +-260.622846:34.988878:900.000000 +PORT +Title:"Index" +FIN_BOX +BOX +wx:LayoutLine:Box15 +ISEXEC:FALSE +-196.596247:-31.096236:900.000000 +-139.036247:-41.096236:900.000000 +PORT +WinTitle:"Image Properties" +FIN_BOX +BOX +wx:OutputText:Box17 +ISEXEC:FALSE +-262.616712:54.641899:900.000000 +-217.041712:44.641899:900.000000 +PORT +Title:"Size" +FIN_BOX +BOX +wx:OutputText:Box20 +ISEXEC:FALSE +-232.876715:39.300084:900.000000 +-187.301715:29.300084:900.000000 +PORT +Title:"Spacing" +FIN_BOX +BOX +wx:OutputText:Box22 +ISEXEC:FALSE +-191.029461:30.782065:900.000000 +-145.454461:20.782065:900.000000 +PORT +Title:"TypeName" +FIN_BOX +BOX +wx:OutputText:Box26 +ISEXEC:FALSE +-166.067448:13.413901:900.000000 +-120.492448:3.413901:900.000000 +PORT +Title:"Min Max" +FIN_BOX +CONNECTIONS:20 +CONNECTION +Box00:Dimension:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box00:Index:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box00:Size:Box17:In +NumberOfControlPoints:0 +CONNECTION +Box00:TypeName:Box22:In +NumberOfControlPoints:0 +CONNECTION +in:in:Box00:In +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:widget:widget +NumberOfControlPoints:0 +CONNECTION +Box00:MinMax:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box00:Spacing:Box20:In +NumberOfControlPoints:0 +CONNECTION +Box02:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box15:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box20:Widget:Box15:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box22:Widget:Box15:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box26:Widget:Box15:Widget6 +NumberOfControlPoints:0 +CONNECTION +Box00:Dimension:Dimensions:Dimensions +NumberOfControlPoints:0 +CONNECTION +Box00:Index:Index:Index +NumberOfControlPoints:0 +CONNECTION +Box00:MinMax:MinMax:MinMax +NumberOfControlPoints:0 +CONNECTION +Box00:Size:Size:Size +NumberOfControlPoints:0 +CONNECTION +Box00:Spacing:Spacing:Spacing +NumberOfControlPoints:0 +CONNECTION +Box00:TypeName:TypeName:TypeName +NumberOfControlPoints:0 +APP_END diff --git a/packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbs b/packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbs new file mode 100644 index 0000000..edd9475 --- /dev/null +++ b/packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbs @@ -0,0 +1,68 @@ +# ---------------------------------- +# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) +# - /Users/davila/Creatis/All3/creatools_source/bbtk/packages/toolsbbtk/bbs/boxes/imageVtkPropertiesWidget.bbs +# ---------------------------------- + +include std +include itkvtk +include itk +include wx + +define ImageVtkPropertiesWidget toolsbbtk + +author "Author ??" +description "Description ??" + +category "" + +new ImageProperties Box00 + +new OutputText Box02 + set Box02.Title "Dimension" + +new OutputText Box14 + set Box14.Title "Index" + +new LayoutLine Box15 + set Box15.WinTitle "Image Properties" + +new OutputText Box17 + set Box17.Title "Size" + +new OutputText Box20 + set Box20.Title "Spacing" + +new OutputText Box22 + set Box22.Title "TypeName" + +new OutputText Box26 + set Box26.Title "Min Max" + + +connect Box00.Dimension Box02.In +connect Box00.Index Box14.In +connect Box00.Size Box17.In +connect Box00.TypeName Box22.In +connect Box00.MinMax Box26.In +connect Box00.Spacing Box20.In +connect Box02.Widget Box15.Widget1 +connect Box14.Widget Box15.Widget2 +connect Box17.Widget Box15.Widget3 +connect Box20.Widget Box15.Widget4 +connect Box22.Widget Box15.Widget5 +connect Box26.Widget Box15.Widget6 + + +# Complex input ports +input in Box00.In " " + +# Complex output ports +output widget Box15.Widget " " +output Dimensions Box00.Dimension " " +output Index Box00.Index " " +output MinMax Box00.MinMax " " +output Size Box00.Size " " +output Spacing Box00.Spacing " " +output TypeName Box00.TypeName " " + +endefine diff --git a/packages/vtk/src/bbvtkImageProperties.cxx b/packages/vtk/src/bbvtkImageVtkProperties.cxx similarity index 90% rename from packages/vtk/src/bbvtkImageProperties.cxx rename to packages/vtk/src/bbvtkImageVtkProperties.cxx index f21bd70..aac617b 100644 --- a/packages/vtk/src/bbvtkImageProperties.cxx +++ b/packages/vtk/src/bbvtkImageVtkProperties.cxx @@ -1,17 +1,17 @@ //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== -#include "bbvtkImageProperties.h" +#include "bbvtkImageVtkProperties.h" #include "bbvtkPackage.h" namespace bbvtk { -BBTK_ADD_BLACK_BOX_TO_PACKAGE(vtk,ImageProperties) -BBTK_BLACK_BOX_IMPLEMENTATION(ImageProperties,bbtk::AtomicBlackBox); +BBTK_ADD_BLACK_BOX_TO_PACKAGE(vtk,ImageVtkProperties) +BBTK_BLACK_BOX_IMPLEMENTATION(ImageVtkProperties,bbtk::AtomicBlackBox); //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== -void ImageProperties::Process() +void ImageVtkProperties::Process() { unsigned int dim; int ext[6]; @@ -80,7 +80,7 @@ void ImageProperties::Process() //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== -void ImageProperties::bbUserSetDefaultValues() +void ImageVtkProperties::bbUserSetDefaultValues() { // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX @@ -91,7 +91,7 @@ void ImageProperties::bbUserSetDefaultValues() //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== -void ImageProperties::bbUserInitializeProcessing() +void ImageVtkProperties::bbUserInitializeProcessing() { // THE INITIALIZATION METHOD BODY : @@ -104,7 +104,7 @@ void ImageProperties::bbUserInitializeProcessing() //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== -void ImageProperties::bbUserFinalizeProcessing() +void ImageVtkProperties::bbUserFinalizeProcessing() { // THE FINALIZATION METHOD BODY : diff --git a/packages/vtk/src/bbvtkImageProperties.h b/packages/vtk/src/bbvtkImageVtkProperties.h similarity index 58% rename from packages/vtk/src/bbvtkImageProperties.h rename to packages/vtk/src/bbvtkImageVtkProperties.h index dfdefe0..d1e7084 100644 --- a/packages/vtk/src/bbvtkImageProperties.h +++ b/packages/vtk/src/bbvtkImageVtkProperties.h @@ -1,8 +1,8 @@ //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== -#ifndef __bbvtkImageProperties_h_INCLUDED__ -#define __bbvtkImageProperties_h_INCLUDED__ +#ifndef __bbvtkImageVtkProperties_h_INCLUDED__ +#define __bbvtkImageVtkProperties_h_INCLUDED__ #include "bbvtk_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include "iostream" @@ -12,11 +12,11 @@ namespace bbvtk { -class bbvtk_EXPORT ImageProperties +class bbvtk_EXPORT ImageVtkProperties : public bbtk::AtomicBlackBox { - BBTK_BLACK_BOX_INTERFACE(ImageProperties,bbtk::AtomicBlackBox); + BBTK_BLACK_BOX_INTERFACE(ImageVtkProperties,bbtk::AtomicBlackBox); //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== @@ -34,24 +34,24 @@ class bbvtk_EXPORT ImageProperties //===== }; -BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageProperties,bbtk::AtomicBlackBox); - BBTK_NAME("ImageProperties"); +BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageVtkProperties,bbtk::AtomicBlackBox); + BBTK_NAME("ImageVtkProperties"); BBTK_AUTHOR("Info-Dev Creatis"); BBTK_DESCRIPTION("Image information Dim, Spc, Type, MinMax"); BBTK_CATEGORY("filter"); - BBTK_INPUT(ImageProperties,In,"Input image (vtk)",vtkImageData*,""); - BBTK_OUTPUT(ImageProperties,Dimension,"Dimensions 1D 2D 3D",unsigned int,""); - BBTK_OUTPUT(ImageProperties,MinMax,"Gray level range min and max",std::vector,""); - BBTK_OUTPUT(ImageProperties,Size,"Size of the image",std::vector,""); - BBTK_OUTPUT(ImageProperties,Spacing,"Spacing of the image",std::vector,""); - BBTK_OUTPUT(ImageProperties,TypeName,"Type format of the image",std::string,""); - BBTK_OUTPUT(ImageProperties,Components,"Number of scalar components",int,""); -BBTK_END_DESCRIBE_BLACK_BOX(ImageProperties); + BBTK_INPUT(ImageVtkProperties,In,"Input image (vtk)",vtkImageData*,""); + BBTK_OUTPUT(ImageVtkProperties,Dimension,"Dimensions 1D 2D 3D",unsigned int,""); + BBTK_OUTPUT(ImageVtkProperties,MinMax,"Gray level range min and max",std::vector,""); + BBTK_OUTPUT(ImageVtkProperties,Size,"Size of the image",std::vector,""); + BBTK_OUTPUT(ImageVtkProperties,Spacing,"Spacing of the image",std::vector,""); + BBTK_OUTPUT(ImageVtkProperties,TypeName,"Type format of the image",std::string,""); + BBTK_OUTPUT(ImageVtkProperties,Components,"Number of scalar components",int,""); +BBTK_END_DESCRIBE_BLACK_BOX(ImageVtkProperties); //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== } // EO namespace bbvtk -#endif // __bbvtkImageProperties_h_INCLUDED__ +#endif // __bbvtkImageVtkProperties_h_INCLUDED__ -- 2.45.0