From: Eduardo Davila Date: Fri, 17 Jun 2011 16:18:28 +0000 (+0000) Subject: no message X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a81d67e23f83eb069c72ed1e65b3c238c9548c2c;p=creaMiniTools.git no message --- diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg index 859fadb..98890c2 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg @@ -10,18 +10,26 @@ AUTHOR:info-team at creatis.insa-lyon.fr COMPLEXBOX:TRUE COMPLEXBOXNAME:ConnectivityWidget PACKAGENAME:creaMiniTools -COMPLEXINPUTS:3 +COMPLEXINPUTS:5 COMPLEX_PORT In -83.125447:107.057133:900.000000 +69.817062:199.192016:900.000000 FIN_COMPLEX_PORT COMPLEX_PORT vtkRenderer -154.447042:106.947864:900.000000 +153.090489:198.246205:900.000000 FIN_COMPLEX_PORT COMPLEX_PORT point -26.760850:107.225946:900.000000 +27.791804:197.151441:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +start +-22.117167:197.253008:900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +end +-37.858942:197.000374:900.000000 FIN_COMPLEX_PORT COMPLEXOUTPUTS:3 COMPLEX_PORT @@ -36,7 +44,7 @@ COMPLEX_PORT OutImage 83.625384:-167.071281:900.000000 FIN_COMPLEX_PORT -BOXES:21 +BOXES:24 BOX wx:CommandButton:Box00 ISEXEC:FALSE @@ -100,14 +108,14 @@ FIN_BOX BOX std:MagicBox:Box17 ISEXEC:FALSE -35.870409:66.718961:900.000000 -81.445409:56.718961:900.000000 +-21.699620:142.606015:900.000000 +23.875380:132.606015:900.000000 FIN_BOX BOX creaMaracasVisu:SliderMinMax:Box18 ISEXEC:FALSE --103.887760:114.381379:900.000000 --49.407760:104.381379:900.000000 +-116.360469:78.437024:900.000000 +-61.880469:68.437024:900.000000 PORT InMax:2000 PORT @@ -116,16 +124,16 @@ FIN_BOX BOX std:ConcatStrings:Box19 ISEXEC:FALSE --69.573855:93.652334:900.000000 --23.998855:83.652334:900.000000 +-12.577511:28.012704:900.000000 +32.997489:18.012704:900.000000 PORT In2:" " FIN_BOX BOX creaMaracasVisu:ShowNPoints:Box21 ISEXEC:FALSE --64.763943:58.411425:900.000000 --19.188943:48.411425:900.000000 +-7.379394:58.574155:900.000000 +38.195606:48.574155:900.000000 PORT Opacity:100 PORT @@ -134,14 +142,14 @@ FIN_BOX BOX std:MagicBox:Box23 ISEXEC:FALSE -160.989712:70.408267:900.000000 -206.564712:60.408267:900.000000 +147.728134:110.856080:900.000000 +193.303134:100.856080:900.000000 FIN_BOX BOX vtk:vtkImageDataPointerRelay:Box24 ISEXEC:FALSE -85.683125:77.580323:900.000000 -156.858125:67.580323:900.000000 +65.337573:173.920223:900.000000 +136.512573:163.920223:900.000000 FIN_BOX BOX std:GetVectorIntElement:Box25 @@ -170,8 +178,8 @@ FIN_BOX BOX std:ConcatStrings:Box28 ISEXEC:FALSE --172.076286:-10.830719:900.000000 --126.501286:-20.830719:900.000000 +-177.858797:-5.369459:900.000000 +-132.283797:-15.369459:900.000000 PORT In2:" " PORT @@ -180,8 +188,10 @@ FIN_BOX BOX wx:OutputText:Box29 ISEXEC:FALSE --112.788806:-49.860621:900.000000 --67.213806:-59.860621:900.000000 +-123.983129:-40.139235:900.000000 +-78.408129:-50.139235:900.000000 +PORT +Title:"3D Point" FIN_BOX BOX wx:LayoutLine:Box30 @@ -190,14 +200,36 @@ ISEXEC:FALSE -24.424077:-82.900687:900.000000 FIN_BOX BOX -std:ConcatStrings:Box31 +vtk:ImageVtkProperties:Box32 +ISEXEC:FALSE +-114.027534:148.929836:900.000000 +-68.452534:138.929836:900.000000 +FIN_BOX +BOX +std:GetVectorFloatElement:Box35 ISEXEC:FALSE --148.765440:-26.212710:900.000000 --103.190440:-36.212710:900.000000 +-155.939584:112.009005:900.000000 +-84.764584:102.009005:900.000000 PORT -In1:"3D Point: " +I:0 +FIN_BOX +BOX +std:GetVectorFloatElement:Box36 +ISEXEC:FALSE +-238.627008:111.689614:900.000000 +-167.452008:101.689614:900.000000 +PORT +I:1 FIN_BOX -CONNECTIONS:40 +BOX +wx:OutputText:Box37 +ISEXEC:FALSE +-59.965601:-30.127589:900.000000 +-14.390601:-40.127589:900.000000 +PORT +In:"Min. Max gray level" +FIN_BOX +CONNECTIONS:46 CONNECTION Box00:BoxChange:Box03:BoxExecute NumberOfControlPoints:0 @@ -298,24 +330,42 @@ CONNECTION Box30:Widget:Box15:Widget2 NumberOfControlPoints:0 CONNECTION -Box29:Widget:Box30:Widget2 +Box15:Widget:Box11:Widget1 NumberOfControlPoints:0 CONNECTION -Box00:Widget:Box30:Widget3 +Box28:Out:Box29:In NumberOfControlPoints:0 CONNECTION -Box18:Widget:Box30:Widget1 +Box24:Out:Box32:In NumberOfControlPoints:0 CONNECTION -Box15:Widget:Box11:Widget1 +Box32:MinMax:Box35:In +NumberOfControlPoints:0 +CONNECTION +Box32:MinMax:Box36:In +NumberOfControlPoints:0 +CONNECTION +Box36:Out:Box18:InMax +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box18:InMin +NumberOfControlPoints:0 +CONNECTION +end:end:Box18:InMaxShow +NumberOfControlPoints:0 +CONNECTION +start:start:Box18:InMinShow +NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Box30:Widget4 NumberOfControlPoints:0 CONNECTION -Box28:Out:Box31:In2 +Box18:Widget:Box30:Widget2 NumberOfControlPoints:0 CONNECTION -Box31:Out:Box29:In +Box29:Widget:Box30:Widget1 NumberOfControlPoints:0 CONNECTION -Box00:BoxChange:Box18:BoxExecute +Box37:Widget:Box30:Widget3 NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs index f2ef48b..049669e 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs @@ -73,11 +73,20 @@ new ConcatStrings Box28 set Box28.In4 " " new OutputText Box29 + set Box29.Title "3D Point" new LayoutLine Box30 -new ConcatStrings Box31 - set Box31.In1 "3D Point: " +new ImageVtkProperties Box32 + +new GetVectorFloatElement Box35 + set Box35.I 0 + +new GetVectorFloatElement Box36 + set Box36.I 1 + +new OutputText Box37 + set Box37.In "Min. Max gray level" connect Box00.BoxChange Box03.BoxExecute @@ -107,19 +116,25 @@ connect Box27.Out Box28.In5 connect Box28.Out Box07.PositionXYZ connect Box21.BoxChange Box29.BoxExecute connect Box30.Widget Box15.Widget2 -connect Box29.Widget Box30.Widget2 -connect Box00.Widget Box30.Widget3 -connect Box18.Widget Box30.Widget1 connect Box15.Widget Box11.Widget1 -connect Box28.Out Box31.In2 -connect Box31.Out Box29.In -connect Box00.BoxChange Box18.BoxExecute +connect Box28.Out Box29.In +connect Box24.Out Box32.In +connect Box32.MinMax Box35.In +connect Box32.MinMax Box36.In +connect Box36.Out Box18.InMax +connect Box35.Out Box18.InMin +connect Box00.Widget Box30.Widget4 +connect Box18.Widget Box30.Widget2 +connect Box29.Widget Box30.Widget1 +connect Box37.Widget Box30.Widget3 # Complex input ports input point Box17.In " " input vtkRenderer Box23.In " " input In Box24.In " " +input end Box18.InMaxShow " " +input start Box18.InMinShow " " # Complex output ports output Widget Box05.Widget " " diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbg index aa6bbc8..57fe206 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbg @@ -32,7 +32,7 @@ COMPLEX_PORT OutImage 91.343074:-154.321721:900.000000 FIN_COMPLEX_PORT -BOXES:11 +BOXES:14 BOX wx:CommandButton:Box00 ISEXEC:FALSE @@ -52,8 +52,8 @@ FIN_BOX BOX itk:BinaryThresholdImageFilter:Box02 ISEXEC:FALSE -96.797606:-19.801987:900.000000 -167.972606:-29.801987:900.000000 +108.161053:-38.440569:900.000000 +179.336053:-48.440569:900.000000 PORT InsideValue:255 PORT @@ -82,8 +82,8 @@ FIN_BOX BOX creaMaracasVisu:SliderMinMax:Box07 ISEXEC:FALSE -91.193051:19.869765:900.000000 -145.673051:9.869765:900.000000 +111.749978:-6.422702:900.000000 +166.229978:-16.422702:900.000000 PORT InMax:5000 PORT @@ -94,18 +94,6 @@ PORT InMinShow:1000 FIN_BOX BOX -wx:Slider:Box08 -ISEXEC:FALSE --70.769347:22.610906:900.000000 --19.369347:12.610906:900.000000 -PORT -Label:true -PORT -Max:5000 -PORT -Title:"Iso Min" -FIN_BOX -BOX wx:LayoutTab:Box09 ISEXEC:FALSE -23.353929:-110.866779:900.000000 @@ -133,7 +121,35 @@ ISEXEC:FALSE PORT Title:"Iso Surface" FIN_BOX -CONNECTIONS:20 +BOX +vtk:vtkImageDataPointerRelay:Box13 +ISEXEC:FALSE +69.626597:60.594274:900.000000 +140.801597:50.594274:900.000000 +FIN_BOX +BOX +vtk:ImageVtkProperties:Box14 +ISEXEC:FALSE +110.504364:42.256584:900.000000 +156.079364:32.256584:900.000000 +FIN_BOX +BOX +std:GetVectorFloatElement:Box15 +ISEXEC:FALSE +115.470822:22.390753:900.000000 +186.645822:12.390753:900.000000 +PORT +I:0 +FIN_BOX +BOX +std:GetVectorFloatElement:Box16 +ISEXEC:FALSE +201.428744:22.390753:900.000000 +272.603744:12.390753:900.000000 +PORT +I:1 +FIN_BOX +CONNECTIONS:27 CONNECTION Box00:Widget:Box01:Widget5 NumberOfControlPoints:0 @@ -150,9 +166,6 @@ CONNECTION Box05:Widget:Widget:Widget NumberOfControlPoints:0 CONNECTION -Box08:Out:Box02:LowerThreshold -NumberOfControlPoints:0 -CONNECTION Box01:Widget:Box09:Widget1 NumberOfControlPoints:0 CONNECTION @@ -168,9 +181,6 @@ CONNECTION Box07:Widget:Box01:Widget2 NumberOfControlPoints:0 CONNECTION -Box08:Widget:Box01:Widget4 -NumberOfControlPoints:0 -CONNECTION vtkRenderer:vtkRenderer:Box12:vtkRenderer NumberOfControlPoints:0 CONNECTION @@ -180,9 +190,6 @@ CONNECTION Box02:Out:Box12:In NumberOfControlPoints:0 CONNECTION -In:In:Box02:In -NumberOfControlPoints:0 -CONNECTION Box00:BoxChange:Box12:BoxExecute NumberOfControlPoints:0 CONNECTION @@ -194,4 +201,34 @@ NumberOfControlPoints:0 CONNECTION Box02:Out:OutImage:OutImage NumberOfControlPoints:0 +CONNECTION +In:In:Box13:In +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box13:Out:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box14:MinMax:Box15:In +NumberOfControlPoints:0 +CONNECTION +Box14:MinMax:Box16:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box07:InMax +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box07:InMin +NumberOfControlPoints:0 +CONNECTION +Box07:OutEnd:Box02:UpperThreshold +NumberOfControlPoints:0 +CONNECTION +Box07:OutStart:Box02:LowerThreshold +NumberOfControlPoints:0 +CONNECTION +Box00:BoxChange:Box07:BoxExecute +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs index 524f034..95c2b17 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs @@ -11,6 +11,8 @@ include creaMaracasVisu include creaMiniToolsBase include toolsbbtk include wxvtk +include vtk +include std define ThresholdWidget creaMiniTools @@ -43,11 +45,6 @@ new SliderMinMax Box07 set Box07.InMin 0 set Box07.InMinShow 1000 -new Slider Box08 - set Box08.Label true - set Box08.Max 5000 - set Box08.Title "Iso Min" - new LayoutTab Box09 new SaveMHD-Button Box10 @@ -58,27 +55,44 @@ new OutputText Box11 new IsoSurfaceWidget Box12 set Box12.Title "Iso Surface" +new vtkImageDataPointerRelay Box13 + +new ImageVtkProperties Box14 + +new GetVectorFloatElement Box15 + set Box15.I 0 + +new GetVectorFloatElement Box16 + set Box16.I 1 + connect Box00.Widget Box01.Widget5 connect Box00.BoxChange Box03.BoxExecute connect Box02.Out Box03.In connect Box03.Widget Box05.Widget2 -connect Box08.Out Box02.LowerThreshold connect Box01.Widget Box09.Widget1 connect Box09.Widget Box05.Widget1 connect Box02.Out Box10.In connect Box11.Widget Box01.Widget1 connect Box07.Widget Box01.Widget2 -connect Box08.Widget Box01.Widget4 connect Box02.Out Box12.In connect Box00.BoxChange Box12.BoxExecute connect Box12.Widget Box09.Widget2 connect Box10.Widget Box09.Widget3 +connect Box13.Out Box02.In +connect Box13.Out Box14.In +connect Box14.MinMax Box15.In +connect Box14.MinMax Box16.In +connect Box16.Out Box07.InMax +connect Box15.Out Box07.InMin +connect Box07.OutEnd Box02.UpperThreshold +connect Box07.OutStart Box02.LowerThreshold +connect Box00.BoxChange Box07.BoxExecute # Complex input ports input vtkRenderer Box12.vtkRenderer " " -input In Box02.In " " +input In Box13.In " " # Complex output ports output Widget Box05.Widget " "