From 86da9936d32a64d6887b4be96b3ff6ca2eeb195d Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Thu, 16 Jun 2011 12:07:26 +0000 Subject: [PATCH] no message --- .../bbs/appli/ImageTool.bbg | 19 +- .../bbs/appli/ImageTool.bbs | 3 +- .../bbs/boxes/ConnectivityWidget.bbg | 249 +++++++++++++----- .../bbs/boxes/ConnectivityWidget.bbs | 87 ++++-- 4 files changed, 255 insertions(+), 103 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg index 59b44b6..329cc10 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg @@ -12,8 +12,8 @@ BOXES:21 BOX creaMaracasVisu:ViewerNV:viewer ISEXEC:FALSE --63.773830:67.743219:900.000000 --3.133830:57.743219:900.000000 +-20.118819:67.745521:900.000000 +40.521181:57.745521:900.000000 PORT nTypeView:"5 1 2 0" FIN_BOX @@ -146,8 +146,8 @@ FIN_BOX BOX std:MultipleInputs:Box25 ISEXEC:FALSE -202.932244:-280.977069:900.000000 -248.507244:-290.977069:900.000000 +193.461788:-298.903547:900.000000 +239.036788:-308.903547:900.000000 FIN_BOX BOX creaMiniTools:ErodeWidget:Box26 @@ -161,7 +161,7 @@ ISEXEC:FALSE 202.155519:-213.402703:900.000000 247.730519:-223.402703:900.000000 FIN_BOX -CONNECTIONS:48 +CONNECTIONS:49 CONNECTION viewer:Renderer1:showNpoints:Renderer NumberOfControlPoints:0 @@ -292,9 +292,6 @@ CONNECTION Box22:BoxChange:Box25:In1 NumberOfControlPoints:0 CONNECTION -Box25:Out:viewer:BoxExecute -NumberOfControlPoints:0 -CONNECTION Box27:Widget:Box12:Widget3 NumberOfControlPoints:0 CONNECTION @@ -318,4 +315,10 @@ NumberOfControlPoints:0 CONNECTION Box04:Out:Box27:In NumberOfControlPoints:0 +CONNECTION +viewer:Point:Box16:point +NumberOfControlPoints:0 +CONNECTION +Box25:Out:viewer:BoxExecute +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs index 223ba1e..4d6f98e 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs @@ -114,7 +114,6 @@ connect viewer.Renderer1 Box22.vtkRenderer connect viewer.Renderer1 Box16.vtkRenderer connect Box16.BoxChange Box25.In2 connect Box22.BoxChange Box25.In1 -connect Box25.Out viewer.BoxExecute connect Box27.Widget Box12.Widget3 connect Box27.BoxChange Box25.In3 connect Box26.BoxChange Box25.In4 @@ -123,5 +122,7 @@ connect viewer.Renderer1 Box27.vtkRenderer connect viewer.Renderer1 Box26.vtkRenderer connect Box04.Out Box26.In connect Box04.Out Box27.In +connect viewer.Point Box16.point +connect Box25.Out viewer.BoxExecute exec main diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg index 44e69fa..053fcf2 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg @@ -17,7 +17,7 @@ In FIN_COMPLEX_PORT COMPLEX_PORT vtkRenderer -160.170426:77.922129:900.000000 +154.447042:106.947864:900.000000 FIN_COMPLEX_PORT COMPLEX_PORT point @@ -26,46 +26,38 @@ FIN_COMPLEX_PORT COMPLEXOUTPUTS:3 COMPLEX_PORT Widget --11.247839:-140.304222:900.000000 +-0.021489:-165.964450:900.000000 FIN_COMPLEX_PORT COMPLEX_PORT BoxChange -138.350485:-141.995738:900.000000 +139.419661:-165.517613:900.000000 FIN_COMPLEX_PORT COMPLEX_PORT OutImage -72.399034:-141.411053:900.000000 +83.625384:-167.071281:900.000000 FIN_COMPLEX_PORT -BOXES:13 +BOXES:21 BOX wx:CommandButton:Box00 ISEXEC:FALSE --8.649297:-26.337777:900.000000 -36.925703:-36.337777:900.000000 +7.978926:-23.366700:900.000000 +53.553926:-33.366700:900.000000 PORT Label:Run FIN_BOX BOX -wx:LayoutLine:Box01 -ISEXEC:FALSE --70.612104:-60.055763:900.000000 --13.052104:-70.055763:900.000000 -PORT -WinTitle:"Parameters" -FIN_BOX -BOX creaMaracasVisu:ViewerNV:Box03 ISEXEC:FALSE -9.647383:-61.937006:900.000000 -70.287383:-71.937006:900.000000 +17.131616:-82.785941:900.000000 +77.771616:-92.785941:900.000000 PORT nTypeView:"0" FIN_BOX BOX wx:LayoutSplit:Box05 ISEXEC:FALSE --3.409718:-127.057830:900.000000 -42.165282:-137.057830:900.000000 +1.401575:-141.491708:900.000000 +46.976575:-151.491708:900.000000 PORT WinTitle:Connectivity FIN_BOX @@ -76,16 +68,6 @@ ISEXEC:FALSE 149.201901:2.419190:900.000000 FIN_BOX BOX -wx:InputText:Box08 -ISEXEC:FALSE --81.588152:67.735803:900.000000 --36.013152:57.735803:900.000000 -PORT -In:"1500 5000" -PORT -Title:"Min Max" -FIN_BOX -BOX creaMiniToolsBase:SaveMHD-Button:Box10 ISEXEC:FALSE 109.891827:-8.975003:900.000000 @@ -94,8 +76,8 @@ FIN_BOX BOX wx:LayoutTab:Box11 ISEXEC:FALSE -79.449006:-92.721039:900.000000 -137.009006:-102.721039:900.000000 +37.729182:-126.218452:900.000000 +95.289182:-136.218452:900.000000 FIN_BOX BOX wxvtk:IsoSurfaceWidget:Box14 @@ -106,37 +88,116 @@ PORT Title:"Iso Surface" FIN_BOX BOX -wx:OutputText:Box13 +wx:LayoutLine:Box15 ISEXEC:FALSE -20.804837:13.630755:900.000000 -66.379837:3.630755:900.000000 +-28.005088:-98.402800:900.000000 +29.554912:-108.402800:900.000000 +PORT +Orientation:H +PORT +WinTitle:"Parameters" FIN_BOX BOX -wx:LayoutLine:Box15 +std:MagicBox:Box17 +ISEXEC:FALSE +35.870409:66.718961:900.000000 +81.445409:56.718961:900.000000 +FIN_BOX +BOX +creaMaracasVisu:SliderMinMax:Box18 ISEXEC:FALSE --44.149323:-2.540957:900.000000 -13.410677:-12.540957:900.000000 +-103.887760:114.381379:900.000000 +-49.407760:104.381379:900.000000 PORT -Orientation:H +InMax:2000 +PORT +ShowActual:false FIN_BOX BOX -wx:CommandButton:Box16 +std:ConcatStrings:Box19 ISEXEC:FALSE --24.307902:31.559852:900.000000 -21.267098:21.559852:900.000000 +-69.573855:93.652334:900.000000 +-23.998855:83.652334:900.000000 PORT -Label:Get Point 3D +In2:" " FIN_BOX BOX -std:MagicBox:Box17 +creaMaracasVisu:ShowNPoints:Box21 ISEXEC:FALSE -35.870409:66.718961:900.000000 -81.445409:56.718961:900.000000 +-64.763943:58.411425:900.000000 +-19.188943:48.411425:900.000000 +PORT +Opacity:100 +PORT +Radio:5 FIN_BOX -CONNECTIONS:25 -CONNECTION -Box00:Widget:Box01:Widget5 -NumberOfControlPoints:0 +BOX +std:MagicBox:Box23 +ISEXEC:FALSE +160.989712:70.408267:900.000000 +206.564712:60.408267:900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box24 +ISEXEC:FALSE +85.683125:77.580323:900.000000 +156.858125:67.580323:900.000000 +FIN_BOX +BOX +std:GetVectorIntElement:Box25 +ISEXEC:FALSE +-186.381248:39.916390:900.000000 +-115.206248:29.916390:900.000000 +PORT +I:0 +FIN_BOX +BOX +std:GetVectorIntElement:Box26 +ISEXEC:FALSE +-163.275680:25.964568:900.000000 +-92.100680:15.964568:900.000000 +PORT +I:0 +FIN_BOX +BOX +std:GetVectorIntElement:Box27 +ISEXEC:FALSE +-137.970752:9.756617:900.000000 +-66.795752:-0.243383:900.000000 +PORT +I:0 +FIN_BOX +BOX +std:ConcatStrings:Box28 +ISEXEC:FALSE +-172.076286:-10.830719:900.000000 +-126.501286:-20.830719:900.000000 +PORT +In2:" " +PORT +In4:" " +FIN_BOX +BOX +wx:OutputText:Box29 +ISEXEC:FALSE +-112.788806:-49.860621:900.000000 +-67.213806:-59.860621:900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box30 +ISEXEC:FALSE +-81.984077:-72.900687:900.000000 +-24.424077:-82.900687:900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box31 +ISEXEC:FALSE +-148.765440:-26.212710:900.000000 +-103.190440:-36.212710:900.000000 +PORT +In1:"3D Point: " +FIN_BOX +CONNECTIONS:40 CONNECTION Box00:BoxChange:Box03:BoxExecute NumberOfControlPoints:0 @@ -147,66 +208,114 @@ CONNECTION Box05:Widget:Widget:Widget NumberOfControlPoints:0 CONNECTION -In:In:Box07:In +Box07:Out:Box03:In NumberOfControlPoints:0 CONNECTION -Box07:Out:Box03:In +Box07:Out:Box10:In NumberOfControlPoints:0 CONNECTION -Box08:Widget:Box01:Widget1 +Box11:Widget:Box05:Widget1 NumberOfControlPoints:0 CONNECTION -Box08:Out:Box07:ThresholdMinMax +Box07:Out:Box14:In NumberOfControlPoints:0 CONNECTION -Box07:Out:Box10:In +Box10:Widget:Box11:Widget3 NumberOfControlPoints:0 CONNECTION -Box01:Widget:Box11:Widget1 +Box14:Widget:Box11:Widget2 NumberOfControlPoints:0 CONNECTION -Box11:Widget:Box05:Widget1 +Box14:BoxChange:BoxChange:BoxChange NumberOfControlPoints:0 CONNECTION -Box07:Out:Box14:In +Box00:BoxChange:Box14:BoxExecute NumberOfControlPoints:0 CONNECTION -vtkRenderer:vtkRenderer:Box14:vtkRenderer +Box07:Out:OutImage:OutImage NumberOfControlPoints:0 CONNECTION -Box10:Widget:Box11:Widget3 +point:point:Box17:In NumberOfControlPoints:0 CONNECTION -Box14:Widget:Box11:Widget2 +Box18:OutEnd:Box19:In3 NumberOfControlPoints:0 CONNECTION -Box14:BoxChange:BoxChange:BoxChange +Box18:OutStart:Box19:In1 NumberOfControlPoints:0 CONNECTION -Box00:BoxChange:Box14:BoxExecute +Box19:Out:Box07:ThresholdMinMax NumberOfControlPoints:0 CONNECTION -Box07:Out:OutImage:OutImage +Box21:Widget:Box15:Widget1 NumberOfControlPoints:0 CONNECTION -Box16:Widget:Box15:Widget1 +Box17:Out:Box21:In NumberOfControlPoints:0 CONNECTION -Box13:Widget:Box15:Widget2 +vtkRenderer:vtkRenderer:Box23:In NumberOfControlPoints:0 CONNECTION -Box15:Widget:Box01:Widget3 +Box23:Out:Box14:vtkRenderer NumberOfControlPoints:0 CONNECTION -point:point:Box17:In +Box23:Out:Box21:Renderer +NumberOfControlPoints:0 +CONNECTION +In:In:Box24:In +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box07:In +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box21:Image +NumberOfControlPoints:0 +CONNECTION +Box21:lstPointsX:Box25:In +NumberOfControlPoints:0 +CONNECTION +Box21:lstPointsY:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box21:lstPointsZ:Box27:In +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box28:In1 +NumberOfControlPoints:0 +CONNECTION +Box26:Out:Box28:In3 +NumberOfControlPoints:0 +CONNECTION +Box27:Out:Box28:In5 +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box07:PositionXYZ +NumberOfControlPoints:0 +CONNECTION +Box21:BoxChange:Box29:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box30:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box29:Widget:Box30:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box00:Widget:Box30:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box18:Widget:Box30:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box11:Widget1 NumberOfControlPoints:0 CONNECTION -Box17:Out:Box13:In +Box28:Out:Box31:In2 NumberOfControlPoints:0 CONNECTION -Box16:BoxChange:Box13:BoxExecute +Box31:Out:Box29:In NumberOfControlPoints:0 CONNECTION -Box17:Out:Box07:PositionXYZ +Box00:BoxChange:Box18:BoxExecute NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs index edb9463..ac118a9 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs @@ -22,9 +22,6 @@ category "filter widget" new CommandButton Box00 set Box00.Label Run -new LayoutLine Box01 - set Box01.WinTitle "Parameters" - new ViewerNV Box03 set Box03.nTypeView "0" @@ -33,10 +30,6 @@ new LayoutSplit Box05 new SegmentationConnectivity Box07 -new InputText Box08 - set Box08.In "1500 5000" - set Box08.Title "Min Max" - new SaveMHD-Button Box10 new LayoutTab Box11 @@ -44,42 +37,88 @@ new LayoutTab Box11 new IsoSurfaceWidget Box14 set Box14.Title "Iso Surface" -new OutputText Box13 - new LayoutLine Box15 set Box15.Orientation H - -new CommandButton Box16 - set Box16.Label Get Point 3D + set Box15.WinTitle "Parameters" new MagicBox Box17 +new SliderMinMax Box18 + set Box18.InMax 2000 + set Box18.ShowActual false + +new ConcatStrings Box19 + set Box19.In2 " " + +new ShowNPoints Box21 + set Box21.Opacity 100 + set Box21.Radio 5 + +new MagicBox Box23 + +new vtkImageDataPointerRelay Box24 + +new GetVectorIntElement Box25 + set Box25.I 0 + +new GetVectorIntElement Box26 + set Box26.I 0 + +new GetVectorIntElement Box27 + set Box27.I 0 + +new ConcatStrings Box28 + set Box28.In2 " " + set Box28.In4 " " + +new OutputText Box29 + +new LayoutLine Box30 + +new ConcatStrings Box31 + set Box31.In1 "3D Point: " + -connect Box00.Widget Box01.Widget5 connect Box00.BoxChange Box03.BoxExecute connect Box03.Widget Box05.Widget2 connect Box07.Out Box03.In -connect Box08.Widget Box01.Widget1 -connect Box08.Out Box07.ThresholdMinMax connect Box07.Out Box10.In -connect Box01.Widget Box11.Widget1 connect Box11.Widget Box05.Widget1 connect Box07.Out Box14.In connect Box10.Widget Box11.Widget3 connect Box14.Widget Box11.Widget2 connect Box00.BoxChange Box14.BoxExecute -connect Box16.Widget Box15.Widget1 -connect Box13.Widget Box15.Widget2 -connect Box15.Widget Box01.Widget3 -connect Box17.Out Box13.In -connect Box16.BoxChange Box13.BoxExecute -connect Box17.Out Box07.PositionXYZ +connect Box18.OutEnd Box19.In3 +connect Box18.OutStart Box19.In1 +connect Box19.Out Box07.ThresholdMinMax +connect Box21.Widget Box15.Widget1 +connect Box17.Out Box21.In +connect Box23.Out Box14.vtkRenderer +connect Box23.Out Box21.Renderer +connect Box24.Out Box07.In +connect Box24.Out Box21.Image +connect Box21.lstPointsX Box25.In +connect Box21.lstPointsY Box26.In +connect Box21.lstPointsZ Box27.In +connect Box25.Out Box28.In1 +connect Box26.Out Box28.In3 +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 # Complex input ports -input In Box07.In " " -input vtkRenderer Box14.vtkRenderer " " input point Box17.In " " +input vtkRenderer Box23.In " " +input In Box24.In " " # Complex output ports output Widget Box05.Widget " " -- 2.47.1