From: Eduardo DAVILA Date: Thu, 10 Mar 2016 15:03:38 +0000 (+0100) Subject: #2845 CreaMiniTools Feature New Normal - add bbtk box : LayerCol-VolRend-SurRend_Widget X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=48ec6356f9e4c71990bcfd276f6e178539c64e5c;p=creaMiniTools.git #2845 CreaMiniTools Feature New Normal - add bbtk box : LayerCol-VolRend-SurRend_Widget --- diff --git a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg index 0618048..d953ac5 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg @@ -41,23 +41,23 @@ BOX wx:LayoutLine:Box06 ISEXEC:FALSE -281.340411:-127.155729:-900.000000 --155.941693:-137.155729:-900.000000 +-223.780411:-137.155729:-900.000000 PORT WinTitle:"Superpose" FIN_BOX BOX wx:CommandButton:Box23 ISEXEC:FALSE --267.299319:205.841882:-900.000000 --173.204031:195.841882:-900.000000 +-257.536202:235.521759:-900.000000 +-211.961202:225.521759:-900.000000 PORT Label:"Load Image" FIN_BOX BOX creaImageIO:ImagesChooserDialogBox:Box24 ISEXEC:FALSE --138.879664:184.832752:-900.000000 --67.704664:174.832752:-900.000000 +-139.270189:186.004326:-900.000000 +-68.095189:176.004326:-900.000000 PORT BoxProcessMode:"Manual" PORT @@ -66,8 +66,10 @@ FIN_BOX BOX creaMaracasVisu:ColorLayerImageView:Box26 ISEXEC:FALSE --409.901923:103.853332:-900.000000 --338.726923:93.853332:-900.000000 +-405.969489:118.743039:-900.000000 +-334.794489:108.743039:-900.000000 +PORT +FittingMode:"-1" PORT PlainOrGradientColor:"false" PORT @@ -78,20 +80,20 @@ FIN_BOX BOX vtk:VolumeRenderer:Box32 ISEXEC:FALSE --244.799833:46.159752:-900.000000 --181.543587:36.159752:-900.000000 +-231.930975:39.582988:-900.000000 +-186.355975:29.582988:-900.000000 FIN_BOX BOX creaMaracasVisu:TransferFunctionView:Box33 ISEXEC:FALSE --274.616973:75.760017:-900.000000 --203.441973:65.760017:-900.000000 +-269.742969:79.625606:-900.000000 +-198.567969:69.625606:-900.000000 FIN_BOX BOX creaVtk:Actor:Box34 ISEXEC:FALSE --275.772740:14.851900:-900.000000 --191.059838:4.851900:-900.000000 +-262.924791:18.810861:-900.000000 +-230.149791:8.810861:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box35 @@ -112,8 +114,8 @@ FIN_BOX BOX vtk:vtkImageDataPointerRelay:Box38 ISEXEC:FALSE --122.827908:163.505506:-900.000000 --51.652908:153.505506:-900.000000 +-124.390007:165.848654:-900.000000 +-53.215007:155.848654:-900.000000 FIN_BOX BOX wx:LayoutTab:Box27 @@ -133,13 +135,13 @@ BOX wx:LayoutTab:Box29 ISEXEC:FALSE -248.735549:-48.711503:-900.000000 --145.811490:-58.711503:-900.000000 +-191.175549:-58.711503:-900.000000 FIN_BOX BOX wx:LayoutLine:Box30 ISEXEC:FALSE -244.163542:-28.541590:-900.000000 --144.583587:-38.541590:-900.000000 +-186.603542:-38.541590:-900.000000 PORT WinTitle:"Volume Rendering" FIN_BOX @@ -147,7 +149,7 @@ BOX wx:LayoutTab:Box31 ISEXEC:FALSE -97.827376:-10.964342:-900.000000 --52.252376:-20.964342:-900.000000 +-40.267376:-20.964342:-900.000000 FIN_BOX BOX wx:LayoutLine:Box37 @@ -160,8 +162,8 @@ FIN_BOX BOX creaMaracasVisu:ViewerNV:Box39 ISEXEC:FALSE --194.584135:-122.727436:-900.000000 --126.154795:-132.727436:-900.000000 +-416.458696:-28.597979:-900.000000 +-355.818696:-38.597979:-900.000000 PORT WinTitle:"ups" FIN_BOX @@ -169,13 +171,13 @@ BOX wx:LayoutTab:Box40 ISEXEC:FALSE -245.919128:-189.914313:-900.000000 --144.890563:-199.914313:-900.000000 +-188.359128:-199.914313:-900.000000 FIN_BOX BOX wx:LayoutSplit:Box41 ISEXEC:FALSE -336.519542:-218.920349:-900.000000 --191.305363:-228.920349:-900.000000 +-290.944542:-228.920349:-900.000000 PORT Proportion:"10" PORT @@ -185,7 +187,7 @@ BOX wx:LayoutLine:Box43 ISEXEC:FALSE -225.050510:-146.533489:-900.000000 --138.751046:-156.533489:-900.000000 +-167.490510:-156.533489:-900.000000 PORT WinTitle:"Viewer" FIN_BOX @@ -196,12 +198,6 @@ ISEXEC:FALSE -42.871325:-126.656292:-900.000000 FIN_BOX BOX -creaMaracasVisu:ImageChangeInformation:Box45 -ISEXEC:FALSE --168.710352:-80.449397:-900.000000 --97.535352:-90.449397:-900.000000 -FIN_BOX -BOX wxvtk:IsoSurfaceWidget:Box47 ISEXEC:FALSE -55.620898:77.017382:-900.000000 @@ -213,15 +209,15 @@ BOX wx:LayoutLine:Box48 ISEXEC:FALSE -50.254138:48.588000:-900.000000 --4.679138:38.588000:-900.000000 +7.305862:38.588000:-900.000000 PORT WinTitle:"Surface Rendering-2" FIN_BOX BOX wxvtk:IsoSurfaceWidget:Box49 ISEXEC:FALSE -13.369561:73.623134:-900.000000 -58.944561:63.623134:-900.000000 +11.110327:77.496106:-900.000000 +56.685327:67.496106:-900.000000 PORT Colour:"0 0 1" FIN_BOX @@ -229,7 +225,7 @@ BOX wx:LayoutLine:Box50 ISEXEC:FALSE 15.484422:48.922481:-900.000000 -61.059422:38.922481:-900.000000 +73.044422:38.922481:-900.000000 PORT WinTitle:"Surface Rendering-3" FIN_BOX @@ -259,7 +255,7 @@ BOX wx:LayoutLine:Box55 ISEXEC:FALSE -201.484471:-169.361130:-900.000000 --131.383626:-179.361130:-900.000000 +-143.924471:-179.361130:-900.000000 PORT WinTitle:"Image Properties" FIN_BOX @@ -272,8 +268,14 @@ FIN_BOX BOX creaMaracasVisu:ImageChangeInformation:Box57 ISEXEC:FALSE --338.101389:125.339496:-900.000000 --266.926389:115.339496:-900.000000 +-344.740309:139.788910:-900.000000 +-273.565309:129.788910:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box59 +ISEXEC:FALSE +-437.948998:7.260499:-900.000000 +-366.773998:-2.739501:-900.000000 FIN_BOX CONNECTIONS:61 CONNECTION @@ -298,15 +300,6 @@ CONNECTION Box24:Out:Box38:In NumberOfControlPoints:0 CONNECTION -Box38:Out:Box33:In -NumberOfControlPoints:0 -CONNECTION -Box38:Out:Box32:In -NumberOfControlPoints:0 -CONNECTION -Box38:Out:Box36:In -NumberOfControlPoints:0 -CONNECTION Box26:Widget:Box28:Widget1 NumberOfControlPoints:0 CONNECTION @@ -367,21 +360,12 @@ CONNECTION Box23:BoxChange:Box39:BoxExecute NumberOfControlPoints:0 CONNECTION -Box45:Out:Box39:In -NumberOfControlPoints:0 -CONNECTION -Box38:Out:Box45:In -NumberOfControlPoints:0 -CONNECTION Box47:Widget:Box48:Widget1 NumberOfControlPoints:0 CONNECTION Box23:BoxChange:Box47:BoxExecute NumberOfControlPoints:0 CONNECTION -Box38:Out:Box47:In -NumberOfControlPoints:0 -CONNECTION Box48:Widget:Box31:Widget2 NumberOfControlPoints:0 CONNECTION @@ -394,18 +378,12 @@ CONNECTION Box23:BoxChange:Box49:BoxExecute NumberOfControlPoints:0 CONNECTION -Box38:Out:Box49:In -NumberOfControlPoints:0 -CONNECTION Box23:BoxChange:Box52:In1 NumberOfControlPoints:0 CONNECTION Box52:BoxChange:Box44:boxExecute NumberOfControlPoints:0 CONNECTION -Box45:Out:Box44:in -NumberOfControlPoints:0 -CONNECTION Box44:widget:Box53:Widget1 NumberOfControlPoints:0 CONNECTION @@ -459,4 +437,28 @@ NumberOfControlPoints:0 CONNECTION Box57:Out:Box26:In NumberOfControlPoints:0 +CONNECTION +Box26:NewImage:Box36:In +NumberOfControlPoints:0 +CONNECTION +Box26:NewImage:Box47:In +NumberOfControlPoints:0 +CONNECTION +Box26:NewImage:Box49:In +NumberOfControlPoints:0 +CONNECTION +Box26:NewImage:Box44:in +NumberOfControlPoints:0 +CONNECTION +Box26:NewImage:Box33:In +NumberOfControlPoints:0 +CONNECTION +Box26:NewImage:Box32:In +NumberOfControlPoints:0 +CONNECTION +Box59:Out:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box26:NewImage:Box59:In +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs index adbafa9..f38a6a0 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs @@ -32,6 +32,7 @@ new creaImageIO:ImagesChooserDialogBox Box24 set Box24.Title "Superpose Image" new creaMaracasVisu:ColorLayerImageView Box26 + set Box26.FittingMode "-1" set Box26.PlainOrGradientColor "false" set Box26.TypeControlsInterface "2" set Box26.lstTransparenceBoundaries "0" @@ -79,8 +80,6 @@ new wx:LayoutLine Box43 new toolsbbtk:ImageVtkPropertiesWidget Box44 -new creaMaracasVisu:ImageChangeInformation Box45 - new wxvtk:IsoSurfaceWidget Box47 set Box47.Colour "1 0 0" @@ -108,6 +107,8 @@ new std:MagicBox Box56 new creaMaracasVisu:ImageChangeInformation Box57 +new creaMaracasVisu:ImageChangeInformation Box59 + connect Box23.BoxChange Box24.BoxExecute connect Box23.BoxChange Box26.BoxExecute @@ -116,9 +117,6 @@ connect Box33.ColorFunction Box32.ColorFunction1 connect Box33.OpacityFunction Box32.OpacityFunction connect Box32.Out Box34.In connect Box24.Out Box38.In -connect Box38.Out Box33.In -connect Box38.Out Box32.In -connect Box38.Out Box36.In connect Box26.Widget Box28.Widget1 connect Box28.Widget Box27.Widget1 connect Box27.Widget Box06.Widget2 @@ -139,19 +137,14 @@ connect Box39.Widget Box43.Widget1 connect Box43.Widget Box40.Widget2 connect Box24.FileName Box44.FileName connect Box23.BoxChange Box39.BoxExecute -connect Box45.Out Box39.In -connect Box38.Out Box45.In connect Box47.Widget Box48.Widget1 connect Box23.BoxChange Box47.BoxExecute -connect Box38.Out Box47.In connect Box48.Widget Box31.Widget2 connect Box49.Widget Box50.Widget1 connect Box50.Widget Box31.Widget3 connect Box23.BoxChange Box49.BoxExecute -connect Box38.Out Box49.In connect Box23.BoxChange Box52.In1 connect Box52.BoxChange Box44.boxExecute -connect Box45.Out Box44.in connect Box44.widget Box53.Widget1 connect Box54.Widget Box53.Widget2 connect Box54.BoxChange Box52.In2 @@ -164,6 +157,14 @@ connect Box56.Out Box47.vtkRenderer connect Box56.Out Box49.vtkRenderer connect Box38.Out Box57.In connect Box57.Out Box26.In +connect Box26.NewImage Box36.In +connect Box26.NewImage Box47.In +connect Box26.NewImage Box49.In +connect Box26.NewImage Box44.in +connect Box26.NewImage Box33.In +connect Box26.NewImage Box32.In +connect Box59.Out Box39.In +connect Box26.NewImage Box59.In # Complex input ports input Rederer3D Box56.In " "