From a0ac31b92d3dbb9ee895a08eea9f192fd95b605e Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Tue, 31 May 2016 08:08:41 +0200 Subject: [PATCH] #2845 CreaMiniTools Feature New Normal - add bbtk box : LayerCol-VolRend-SurRend_Widget --- .../bbs/appli/viewerNVExample.bbg | 673 +++++++++++++++++- .../bbs/appli/viewerNVExample.bbs | 339 ++++++++- .../bbs/appli/viewerNVwithVolRenExample.bbg | 60 +- .../bbs/appli/viewerNVwithVolRenExample.bbs | 34 +- .../LayerCol-VolRend-SurRend_Multi-Widget.bbg | 195 +++++ .../LayerCol-VolRend-SurRend_Multi-Widget.bbs | 83 +++ .../boxes/LayerCol-VolRend-SurRend_Widget.bbg | 102 ++- .../boxes/LayerCol-VolRend-SurRend_Widget.bbs | 22 +- 8 files changed, 1427 insertions(+), 81 deletions(-) create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbg create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg index 3d5ac1b..c245fa6 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg # ---------------------------------- APP_START @@ -9,32 +9,32 @@ DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE COMPLEXINPUTS:0 -BOXES:6 +BOXES:54 BOX creaImageIO:ImagesChooserDialogBox:Box00 ISEXEC:FALSE --32.069940:88.006745:-900.000000 -39.105060:78.006745:-900.000000 +-19.703199:157.162984:-900.000000 +51.471801:147.162984:-900.000000 FIN_BOX BOX creaMaracasVisu:ViewerNV:Box01 ISEXEC:FALSE --95.504848:60.069929:-900.000000 --34.864848:50.069929:-900.000000 +92.878707:104.248747:-900.000000 +153.518707:94.248747:-900.000000 PORT nTypeView:"6 1 2 0" FIN_BOX BOX toolsbbtk:ImageVtkPropertiesWidget:Box04 ISEXEC:FALSE --29.630779:60.652674:-900.000000 -41.544221:50.652674:-900.000000 +-51.283648:96.969486:-900.000000 +19.891352:86.969486:-900.000000 FIN_BOX BOX wx:LayoutTab:Box05 -ISEXEC:TRUE --26.570323:1.112893:-900.000000 -19.004677:-8.887107:-900.000000 +ISEXEC:FALSE +3.649438:8.858752:-900.000000 +61.209438:-1.141248:-900.000000 PORT WinHide:"800" PORT @@ -43,37 +43,664 @@ FIN_BOX BOX toolsbbtk:SaveMHD-Button:Box06 ISEXEC:FALSE -50.219301:61.487344:-900.000000 -95.794301:51.487344:-900.000000 +30.936355:98.719169:-900.000000 +76.511355:88.719169:-900.000000 FIN_BOX BOX wx:LayoutLine:Box07 ISEXEC:FALSE --83.327871:40.620598:-900.000000 --25.767871:30.620598:-900.000000 +-35.430313:41.922638:-900.000000 +22.129687:31.922638:-900.000000 PORT WinTitle:"MPR Viewer" FIN_BOX -CONNECTIONS:7 +BOX +wx:LayoutSplit:Box09 +ISEXEC:TRUE +13.187777:-359.551253:-900.000000 +58.762777:-369.551253:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget:Box16 +ISEXEC:FALSE +-121.324569:53.476991:-900.000000 +-50.149569:43.476991:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box11 +ISEXEC:FALSE +-32.975878:-325.249668:-900.000000 +24.584122:-335.249668:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box14 +ISEXEC:FALSE +-122.874788:-77.534998:-900.000000 +-65.314788:-87.534998:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutSplit:Box15 +ISEXEC:FALSE +-17.624297:-307.804136:-900.000000 +27.950703:-317.804136:-900.000000 +PORT +Proportion:"5" +PORT +WinTitle:"Crop" +FIN_BOX +BOX +wx:Slider:Box19 +ISEXEC:FALSE +-119.421614:6.798868:-900.000000 +-68.021614:-3.201132:-900.000000 +PORT +In:"100" +PORT +Max:"400" +PORT +ReactiveOnTrack:"true" +FIN_BOX +BOX +wx:Slider:Box20 +ISEXEC:FALSE +-100.478728:22.242987:-900.000000 +-49.078728:12.242987:-900.000000 +PORT +In:"100" +PORT +Max:"400" +PORT +ReactiveOnTrack:"true" +FIN_BOX +BOX +wx:Slider:Box21 +ISEXEC:FALSE +-61.807375:14.235957:-900.000000 +-10.407375:4.235957:-900.000000 +PORT +In:"100" +PORT +Max:"400" +PORT +ReactiveOnTrack:"true" +FIN_BOX +BOX +vtk:ExtractVtkImageFilter:Box22 +ISEXEC:FALSE +-3.534706:-111.784554:-900.000000 +67.640294:-121.784554:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box23 +ISEXEC:FALSE +-48.084555:-9.255899:-900.000000 +-2.509555:-19.255899:-900.000000 +PORT +In2:" " +PORT +In4:" " +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box24 +ISEXEC:FALSE +-21.500285:135.932912:-900.000000 +49.674715:125.932912:-900.000000 +FIN_BOX +BOX +vtk:LoadHola:Box26 +ISEXEC:FALSE +-86.603558:156.948489:-900.000000 +-41.028558:146.948489:-900.000000 +FIN_BOX +BOX +vtk:VolumeRenderer:Box29 +ISEXEC:FALSE +83.777401:-191.363708:-900.000000 +129.352401:-201.363708:-900.000000 +FIN_BOX +BOX +creaVtk:Actor:Box30 +ISEXEC:FALSE +57.161713:-210.247054:-900.000000 +89.936713:-220.247054:-900.000000 +PORT +Active:"true" +FIN_BOX +BOX +creaMaracasVisu:TransferFunctionView:Box31 +ISEXEC:FALSE +95.265248:-168.393945:-900.000000 +166.440248:-178.393945:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box32 +ISEXEC:FALSE +100.622410:-224.371098:-900.000000 +158.182410:-234.371098:-900.000000 +PORT +WinTitle:"Base Image" +FIN_BOX +BOX +vtk:UpdateRender:Box33 +ISEXEC:FALSE +36.899452:-225.745569:-900.000000 +82.474452:-235.745569:-900.000000 +PORT +Active:"true" +FIN_BOX +BOX +std:MultipleInputs:Box34 +ISEXEC:FALSE +128.460611:-110.413790:-900.000000 +174.035611:-120.413790:-900.000000 +FIN_BOX +BOX +wxvtk:IsoSurfaceWidget:Box35 +ISEXEC:FALSE +166.603519:-163.872543:-900.000000 +212.178519:-173.872543:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box36 +ISEXEC:FALSE +96.766695:-245.028557:-900.000000 +154.326695:-255.028557:-900.000000 +FIN_BOX +BOX +vtk:ExtractVtkImageFilter:Box38 +ISEXEC:FALSE +401.786863:-38.657097:-900.000000 +472.961863:-48.657097:-900.000000 +FIN_BOX +BOX +vtk:VolumeRenderer:Box39 +ISEXEC:FALSE +290.519119:-95.454907:-900.000000 +336.094119:-105.454907:-900.000000 +FIN_BOX +BOX +creaVtk:Actor:Box40 +ISEXEC:FALSE +262.510079:-113.398264:-900.000000 +295.285079:-123.398264:-900.000000 +PORT +Active:"true" +FIN_BOX +BOX +creaMaracasVisu:TransferFunctionView:Box41 +ISEXEC:FALSE +312.433239:-77.991269:-900.000000 +383.608239:-87.991269:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box42 +ISEXEC:FALSE +318.085885:-167.730023:-900.000000 +375.645885:-177.730023:-900.000000 +FIN_BOX +BOX +vtk:UpdateRender:Box43 +ISEXEC:FALSE +248.166567:-127.198858:-900.000000 +293.741567:-137.198858:-900.000000 +PORT +Active:"true" +FIN_BOX +BOX +std:MultipleInputs:Box44 +ISEXEC:FALSE +350.281556:-10.351648:-900.000000 +395.856556:-20.351648:-900.000000 +FIN_BOX +BOX +wxvtk:IsoSurfaceWidget:Box45 +ISEXEC:FALSE +392.346366:-62.886629:-900.000000 +437.921366:-72.886629:-900.000000 +FIN_BOX +BOX +wx:DropFiles:Box46 +ISEXEC:FALSE +268.752177:86.671868:-900.000000 +314.327177:76.671868:-900.000000 +FIN_BOX +BOX +vtk:MetaImageReader:Box47 +ISEXEC:FALSE +272.836826:58.732873:-900.000000 +318.411826:48.732873:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box48 +ISEXEC:FALSE +395.723995:-97.247333:-900.000000 +441.298995:-107.247333:-900.000000 +PORT +In:"Drop your *.MHD file here!" +FIN_BOX +BOX +wx:OutputText:Box49 +ISEXEC:FALSE +317.103321:15.441220:-900.000000 +362.678321:5.441220:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box50 +ISEXEC:FALSE +-69.716824:-40.631709:-900.000000 +-24.141824:-50.631709:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box52 +ISEXEC:FALSE +249.829988:-165.708142:-900.000000 +307.389988:-175.708142:-900.000000 +PORT +WinTitle:"Image A" +FIN_BOX +BOX +wx:LayoutSplit:Box53 +ISEXEC:FALSE +234.336324:-192.255010:-900.000000 +279.911324:-202.255010:-900.000000 +PORT +Proportion:"25" +PORT +WinTitle:"Image A" +FIN_BOX +BOX +std:MathOperationVector:Box54 +ISEXEC:FALSE +-51.926182:-69.940546:-900.000000 +19.248818:-79.940546:-900.000000 +PORT +In1:"-2 -2 -2" +PORT +Type:"3" +FIN_BOX +BOX +std:MathOperationVector:Box56 +ISEXEC:FALSE +34.449543:-64.270546:-900.000000 +105.624543:-74.270546:-900.000000 +PORT +In1:"-2 -2 -2" +FIN_BOX +BOX +wx:LayoutLine:Box57 +ISEXEC:FALSE +-147.527923:-145.339995:-900.000000 +-89.967923:-155.339995:-900.000000 +PORT +WinTitle:"Layer" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box58 +ISEXEC:FALSE +411.972303:58.695318:-900.000000 +483.147303:48.695318:-900.000000 +PORT +BoxProcessMode:"Manual" +PORT +Title:"Load Image" +FIN_BOX +BOX +wx:CommandButton:Box59 +ISEXEC:FALSE +379.620954:94.019278:-900.000000 +425.195954:84.019278:-900.000000 +PORT +Label:"Load Image" +FIN_BOX +BOX +std:SharedMemory:Box60 +ISEXEC:FALSE +396.168144:10.589474:-900.000000 +441.743144:0.589474:-900.000000 +FIN_BOX +BOX +std:SharedMemory:Box61 +ISEXEC:FALSE +341.597292:37.223198:-900.000000 +387.172292:27.223198:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box62 +ISEXEC:FALSE +323.985292:58.615385:-900.000000 +369.560292:48.615385:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box64 +ISEXEC:FALSE +374.663773:-124.687454:-900.000000 +432.223773:-134.687454:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box67 +ISEXEC:FALSE +426.163492:36.703343:-900.000000 +497.338492:26.703343:-900.000000 +PORT +BoxProcessMode:"Always" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box68 +ISEXEC:FALSE +281.306207:39.611975:-900.000000 +352.481207:29.611975:-900.000000 +PORT +BoxProcessMode:"Always" +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box69 +ISEXEC:FALSE +90.084937:-127.935020:-900.000000 +161.259937:-137.935020:-900.000000 +PORT +NewSpacing:"1 1 1" +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box70 +ISEXEC:FALSE +307.441226:-55.488733:-900.000000 +378.616226:-65.488733:-900.000000 +PORT +NewSpacing:"1 1 1" +FIN_BOX +CONNECTIONS:96 +CONNECTION +Box04:widget:Box05:Widget2 +NumberOfControlPoints:0 CONNECTION -Box00:Out:Box01:In +Box06:Widget:Box05:Widget3 NumberOfControlPoints:0 CONNECTION -Box00:Out:Box04:in +Box01:Widget:Box07:Widget1 NumberOfControlPoints:0 CONNECTION -Box04:widget:Box05:Widget2 +Box07:Widget:Box05:Widget1 NumberOfControlPoints:0 CONNECTION -Box06:Widget:Box05:Widget3 +Box05:Widget:Box09:Widget2 NumberOfControlPoints:0 CONNECTION -Box00:Out:Box06:In +Box01:Renderer1:Box16:renderer3D NumberOfControlPoints:0 CONNECTION -Box01:Widget:Box07:Widget1 +Box01:wxVtkBaseView2:Box16:wxvtkbaseview1 NumberOfControlPoints:0 CONNECTION -Box07:Widget:Box05:Widget1 +Box01:wxVtkBaseView3:Box16:wxvtkbaseview2 +NumberOfControlPoints:0 +CONNECTION +Box01:wxVtkBaseView4:Box16:wxvtkbaseview3 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box09:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box11:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box19:Widget:Box14:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box20:Widget:Box14:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box21:Widget:Box14:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box23:In1 +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box23:In3 +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box23:In5 +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box22:Size +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box04:in +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box06:In +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box22:In +NumberOfControlPoints:0 +CONNECTION +Box01:Renderer1:Box30:Renderer +NumberOfControlPoints:0 +CONNECTION +Box31:Widget:Box32:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box31:Active:Box30:Active +NumberOfControlPoints:0 +CONNECTION +Box31:OpacityFunction:Box29:OpacityFunction +NumberOfControlPoints:0 +CONNECTION +Box31:ColorFunction:Box29:ColorFunction1 +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box30:In +NumberOfControlPoints:0 +CONNECTION +Box30:BoxChange:Box33:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box01:Renderer1:Box33:Renderer +NumberOfControlPoints:0 +CONNECTION +Box01:BoxChange:Box34:In1 +NumberOfControlPoints:0 +CONNECTION +Box34:BoxChange:Box31:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box34:BoxChange:Box29:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box29:In +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box35:In +NumberOfControlPoints:0 +CONNECTION +Box01:Renderer1:Box35:vtkRenderer +NumberOfControlPoints:0 +CONNECTION +Box35:Widget:Box32:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box36:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box32:Widget:Box36:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box41:Active:Box40:Active +NumberOfControlPoints:0 +CONNECTION +Box41:OpacityFunction:Box39:OpacityFunction +NumberOfControlPoints:0 +CONNECTION +Box41:ColorFunction:Box39:ColorFunction1 +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box40:In +NumberOfControlPoints:0 +CONNECTION +Box40:BoxChange:Box43:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box45:In +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box38:Size +NumberOfControlPoints:0 +CONNECTION +Box46:LstPaths:Box47:In +NumberOfControlPoints:0 +CONNECTION +Box01:BoxChange:Box44:In1 +NumberOfControlPoints:0 +CONNECTION +Box01:Renderer1:Box45:vtkRenderer +NumberOfControlPoints:0 +CONNECTION +Box01:Renderer1:Box40:Renderer +NumberOfControlPoints:0 +CONNECTION +Box19:BoxChange:Box50:In1 +NumberOfControlPoints:0 +CONNECTION +Box20:BoxChange:Box50:In2 +NumberOfControlPoints:0 +CONNECTION +Box21:BoxChange:Box50:In3 +NumberOfControlPoints:0 +CONNECTION +Box50:Out:Box44:In2 +NumberOfControlPoints:0 +CONNECTION +Box49:Widget:Box52:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box45:Widget:Box42:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box41:Widget:Box42:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box52:Widget:Box53:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box42:Widget:Box53:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box53:Widget:Box36:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box53:Widget:Box46:Widget +NumberOfControlPoints:0 +CONNECTION +Box01:Renderer1:Box43:Renderer +NumberOfControlPoints:0 +CONNECTION +Box44:BoxChange:Box39:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box44:BoxChange:Box41:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box46:BoxChange:Box47:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box54:In0 +NumberOfControlPoints:0 +CONNECTION +Box01:Point:Box56:In0 +NumberOfControlPoints:0 +CONNECTION +Box54:Out:Box56:In1 +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box22:Index +NumberOfControlPoints:0 +CONNECTION +Box57:Widget:Box11:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box16:widget:Box57:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box59:BoxChange:Box58:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box46:LstPaths:Box61:In +NumberOfControlPoints:0 +CONNECTION +Box58:FileName:Box61:In1 +NumberOfControlPoints:0 +CONNECTION +Box61:Out:Box49:In +NumberOfControlPoints:0 +CONNECTION +Box46:BoxChange:Box62:In1 +NumberOfControlPoints:0 +CONNECTION +Box59:BoxChange:Box62:In2 +NumberOfControlPoints:0 +CONNECTION +Box62:BoxChange:Box49:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box58:BoxChange:Box44:In3 +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box38:Index +NumberOfControlPoints:0 +CONNECTION +Box48:Widget:Box64:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box59:Widget:Box64:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box64:Widget:Box52:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box44:BoxChange:Box38:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box58:Out:Box67:In +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box60:In1 +NumberOfControlPoints:0 +CONNECTION +Box47:Out:Box68:In +NumberOfControlPoints:0 +CONNECTION +Box58:Out:Box38:In +NumberOfControlPoints:0 +CONNECTION +Box68:Out:Box60:In +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box69:In +NumberOfControlPoints:0 +CONNECTION +Box69:Out:Box31:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box70:In +NumberOfControlPoints:0 +CONNECTION +Box70:Out:Box41:In +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box24:In NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs index 201f52c..4a15aa1 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs # ---------------------------------- # BBTK GEditor Script @@ -12,43 +12,358 @@ include creaImageIO include creaMaracasVisu include toolsbbtk include wx +include creaMiniTools +include vtk +include std +include creaVtk +include wxvtk author "Author ??" description "Description ??" category "" -new ImagesChooserDialogBox Box00 +new creaImageIO:ImagesChooserDialogBox Box00 -new ViewerNV Box01 +new creaMaracasVisu:ViewerNV Box01 set Box01.nTypeView "6 1 2 0" -new ImageVtkPropertiesWidget Box04 +new toolsbbtk:ImageVtkPropertiesWidget Box04 -new LayoutTab Box05 +new wx:LayoutTab Box05 set Box05.WinHide "800" set Box05.WinWidth "1000" -new SaveMHD-Button Box06 +new toolsbbtk:SaveMHD-Button Box06 -new LayoutLine Box07 +new wx:LayoutLine Box07 set Box07.WinTitle "MPR Viewer" +new wx:LayoutSplit Box09 + set Box09.Orientation "H" + +new creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget Box16 + +new wx:LayoutTab Box11 + +new wx:LayoutLine Box14 + set Box14.Orientation "H" + +new wx:LayoutSplit Box15 + set Box15.Proportion "5" + set Box15.WinTitle "Crop" + +new wx:Slider Box19 + set Box19.In "100" + set Box19.Max "400" + set Box19.ReactiveOnTrack "true" + +new wx:Slider Box20 + set Box20.In "100" + set Box20.Max "400" + set Box20.ReactiveOnTrack "true" + +new wx:Slider Box21 + set Box21.In "100" + set Box21.Max "400" + set Box21.ReactiveOnTrack "true" + +new vtk:ExtractVtkImageFilter Box22 + +new std:ConcatStrings Box23 + set Box23.In2 " " + set Box23.In4 " " + +new vtk:vtkImageDataPointerRelay Box24 + +new vtk:LoadHola Box26 + +new vtk:VolumeRenderer Box29 + +new creaVtk:Actor Box30 + set Box30.Active "true" + +new creaMaracasVisu:TransferFunctionView Box31 + +new wx:LayoutLine Box32 + set Box32.WinTitle "Base Image" + +new vtk:UpdateRender Box33 + set Box33.Active "true" + +new std:MultipleInputs Box34 + +new wxvtk:IsoSurfaceWidget Box35 + +new wx:LayoutTab Box36 + +new vtk:ExtractVtkImageFilter Box38 + +new vtk:VolumeRenderer Box39 + +new creaVtk:Actor Box40 + set Box40.Active "true" + +new creaMaracasVisu:TransferFunctionView Box41 + +new wx:LayoutLine Box42 + +new vtk:UpdateRender Box43 + set Box43.Active "true" + +new std:MultipleInputs Box44 + +new wxvtk:IsoSurfaceWidget Box45 + +new wx:DropFiles Box46 + +new vtk:MetaImageReader Box47 + +new wx:OutputText Box48 + set Box48.In "Drop your *.MHD file here!" + +new wx:OutputText Box49 + +new std:MultipleInputs Box50 + +new wx:LayoutLine Box52 + set Box52.WinTitle "Image A" + +new wx:LayoutSplit Box53 + set Box53.Proportion "25" + set Box53.WinTitle "Image A" -connect Box00.Out Box01.In +new std:MathOperationVector Box54 + set Box54.In1 "-2 -2 -2" + set Box54.Type "3" + +new std:MathOperationVector Box56 + set Box56.In1 "-2 -2 -2" + +new wx:LayoutLine Box57 + set Box57.WinTitle "Layer" + +new creaImageIO:ImagesChooserDialogBox Box58 + set Box58.BoxProcessMode "Manual" + set Box58.Title "Load Image" + +new wx:CommandButton Box59 + set Box59.Label "Load Image" + +new std:SharedMemory Box60 + +new std:SharedMemory Box61 + +new std:MultipleInputs Box62 + +new wx:LayoutLine Box64 + set Box64.Orientation "H" + +new vtk:vtkImageDataPointerRelay Box67 + set Box67.BoxProcessMode "Always" + +new vtk:vtkImageDataPointerRelay Box68 + set Box68.BoxProcessMode "Always" + +new creaMaracasVisu:ImageChangeInformation Box69 + set Box69.NewSpacing "1 1 1" + +new creaMaracasVisu:ImageChangeInformation Box70 + set Box70.NewSpacing "1 1 1" -connect Box00.Out Box04.in connect Box04.widget Box05.Widget2 connect Box06.Widget Box05.Widget3 -connect Box00.Out Box06.In - connect Box01.Widget Box07.Widget1 connect Box07.Widget Box05.Widget1 +connect Box05.Widget Box09.Widget2 + +connect Box01.Renderer1 Box16.renderer3D + +connect Box01.wxVtkBaseView2 Box16.wxvtkbaseview1 + +connect Box01.wxVtkBaseView3 Box16.wxvtkbaseview2 + +connect Box01.wxVtkBaseView4 Box16.wxvtkbaseview3 + +connect Box11.Widget Box09.Widget1 + +connect Box14.Widget Box15.Widget1 + +connect Box15.Widget Box11.Widget2 + +connect Box19.Widget Box14.Widget1 + +connect Box20.Widget Box14.Widget2 + +connect Box21.Widget Box14.Widget3 + +connect Box19.Out Box23.In1 + +connect Box20.Out Box23.In3 + +connect Box21.Out Box23.In5 + +connect Box23.Out Box22.Size + +connect Box24.Out Box01.In + +connect Box24.Out Box04.in + +connect Box24.Out Box06.In + +connect Box24.Out Box22.In + +connect Box01.Renderer1 Box30.Renderer + +connect Box31.Widget Box32.Widget1 + +connect Box31.Active Box30.Active + +connect Box31.OpacityFunction Box29.OpacityFunction + +connect Box31.ColorFunction Box29.ColorFunction1 + +connect Box29.Out Box30.In + +connect Box30.BoxChange Box33.BoxExecute + +connect Box01.Renderer1 Box33.Renderer + +connect Box01.BoxChange Box34.In1 + +connect Box34.BoxChange Box31.BoxExecute + +connect Box34.BoxChange Box29.BoxExecute + +connect Box22.Out Box29.In + +connect Box22.Out Box35.In + +connect Box01.Renderer1 Box35.vtkRenderer + +connect Box35.Widget Box32.Widget2 + +connect Box36.Widget Box15.Widget2 + +connect Box32.Widget Box36.Widget1 + +connect Box41.Active Box40.Active + +connect Box41.OpacityFunction Box39.OpacityFunction + +connect Box41.ColorFunction Box39.ColorFunction1 + +connect Box39.Out Box40.In + +connect Box40.BoxChange Box43.BoxExecute + +connect Box38.Out Box39.In + +connect Box38.Out Box45.In + +connect Box23.Out Box38.Size + +connect Box46.LstPaths Box47.In + +connect Box01.BoxChange Box44.In1 + +connect Box01.Renderer1 Box45.vtkRenderer + +connect Box01.Renderer1 Box40.Renderer + +connect Box19.BoxChange Box50.In1 + +connect Box20.BoxChange Box50.In2 + +connect Box21.BoxChange Box50.In3 + +connect Box50.Out Box44.In2 + +connect Box49.Widget Box52.Widget2 + +connect Box45.Widget Box42.Widget2 + +connect Box41.Widget Box42.Widget1 + +connect Box52.Widget Box53.Widget1 + +connect Box42.Widget Box53.Widget2 + +connect Box53.Widget Box36.Widget2 + +connect Box53.Widget Box46.Widget + +connect Box01.Renderer1 Box43.Renderer + +connect Box44.BoxChange Box39.BoxExecute + +connect Box44.BoxChange Box41.BoxExecute + +connect Box46.BoxChange Box47.BoxExecute + +connect Box23.Out Box54.In0 + +connect Box01.Point Box56.In0 + +connect Box54.Out Box56.In1 + +connect Box56.Out Box22.Index + +connect Box57.Widget Box11.Widget1 + +connect Box16.widget Box57.Widget1 + +connect Box59.BoxChange Box58.BoxExecute + +connect Box46.LstPaths Box61.In + +connect Box58.FileName Box61.In1 + +connect Box61.Out Box49.In + +connect Box46.BoxChange Box62.In1 + +connect Box59.BoxChange Box62.In2 + +connect Box62.BoxChange Box49.BoxExecute + +connect Box58.BoxChange Box44.In3 + +connect Box56.Out Box38.Index + +connect Box48.Widget Box64.Widget2 + +connect Box59.Widget Box64.Widget1 + +connect Box64.Widget Box52.Widget1 + +connect Box44.BoxChange Box38.BoxExecute + +connect Box58.Out Box67.In + +connect Box67.Out Box60.In1 + +connect Box47.Out Box68.In + +connect Box58.Out Box38.In + +connect Box68.Out Box60.In + +connect Box22.Out Box69.In + +connect Box69.Out Box31.In + +connect Box38.Out Box70.In + +connect Box70.Out Box41.In + +connect Box00.Out Box24.In + # Complex input ports -exec Box05 +exec Box09 diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg index 75b3e1b..8e0dd1b 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg # ---------------------------------- APP_START @@ -9,7 +9,7 @@ DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE COMPLEXINPUTS:0 -BOXES:6 +BOXES:8 BOX creaImageIO:ImagesChooserDialogBox:Box00 ISEXEC:FALSE @@ -19,22 +19,22 @@ FIN_BOX BOX creaMaracasVisu:ViewerNV:Box01 ISEXEC:FALSE --95.504848:60.069929:-900.000000 --34.864848:50.069929:-900.000000 +-82.653137:61.767325:-900.000000 +-22.013137:51.767325:-900.000000 PORT nTypeView:"5 1 2 0" FIN_BOX BOX toolsbbtk:ImageVtkPropertiesWidget:Box04 ISEXEC:FALSE --29.630779:60.652674:-900.000000 -41.544221:50.652674:-900.000000 +-10.231970:64.047466:-900.000000 +60.943030:54.047466:-900.000000 FIN_BOX BOX wx:LayoutTab:Box05 -ISEXEC:TRUE --26.570323:1.112893:-900.000000 -19.004677:-8.887107:-900.000000 +ISEXEC:FALSE +29.201253:-12.466273:-900.000000 +86.761253:-22.466273:-900.000000 PORT WinHide:"800" PORT @@ -43,18 +43,32 @@ FIN_BOX BOX toolsbbtk:SaveMHD-Button:Box06 ISEXEC:FALSE -50.219301:61.487344:-900.000000 -95.794301:51.487344:-900.000000 +77.377634:66.337046:-900.000000 +122.952634:56.337046:-900.000000 FIN_BOX BOX wx:LayoutLine:Box07 ISEXEC:FALSE --83.327871:40.620598:-900.000000 --25.767871:30.620598:-900.000000 +-66.111428:33.588530:-900.000000 +-8.551428:23.588530:-900.000000 PORT WinTitle:"MPR Viewer" FIN_BOX -CONNECTIONS:7 +BOX +creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget:Box08 +ISEXEC:FALSE +-96.266590:-2.061123:-900.000000 +-25.091590:-12.061123:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box09 +ISEXEC:TRUE +-5.577158:-40.131286:-900.000000 +39.997842:-50.131286:-900.000000 +PORT +Orientation:"H" +FIN_BOX +CONNECTIONS:13 CONNECTION Box00:Out:Box01:In NumberOfControlPoints:0 @@ -76,4 +90,22 @@ NumberOfControlPoints:0 CONNECTION Box07:Widget:Box05:Widget1 NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box09:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box08:widget:Box09:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box01:Renderer1:Box08:renderer3D +NumberOfControlPoints:0 +CONNECTION +Box01:wxVtkBaseView2:Box08:wxvtkbaseview1 +NumberOfControlPoints:0 +CONNECTION +Box01:wxVtkBaseView3:Box08:wxvtkbaseview2 +NumberOfControlPoints:0 +CONNECTION +Box01:wxVtkBaseView4:Box08:wxvtkbaseview3 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs index 4bff05e..d1b1406 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /home/davila/Creatis/All/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs # ---------------------------------- # BBTK GEditor Script @@ -12,27 +12,33 @@ include creaImageIO include creaMaracasVisu include toolsbbtk include wx +include creaMiniTools author "Author ??" description "Description ??" category "" -new ImagesChooserDialogBox Box00 +new creaImageIO:ImagesChooserDialogBox Box00 -new ViewerNV Box01 +new creaMaracasVisu:ViewerNV Box01 set Box01.nTypeView "5 1 2 0" -new ImageVtkPropertiesWidget Box04 +new toolsbbtk:ImageVtkPropertiesWidget Box04 -new LayoutTab Box05 +new wx:LayoutTab Box05 set Box05.WinHide "800" set Box05.WinWidth "1000" -new SaveMHD-Button Box06 +new toolsbbtk:SaveMHD-Button Box06 -new LayoutLine Box07 +new wx:LayoutLine Box07 set Box07.WinTitle "MPR Viewer" +new creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget Box08 + +new wx:LayoutSplit Box09 + set Box09.Orientation "H" + connect Box00.Out Box01.In @@ -48,7 +54,19 @@ connect Box01.Widget Box07.Widget1 connect Box07.Widget Box05.Widget1 +connect Box05.Widget Box09.Widget2 + +connect Box08.widget Box09.Widget1 + +connect Box01.Renderer1 Box08.renderer3D + +connect Box01.wxVtkBaseView2 Box08.wxvtkbaseview1 + +connect Box01.wxVtkBaseView3 Box08.wxvtkbaseview2 + +connect Box01.wxVtkBaseView4 Box08.wxvtkbaseview3 + # Complex input ports -exec Box05 +exec Box09 diff --git a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbg new file mode 100644 index 0000000..068dd3c --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbg @@ -0,0 +1,195 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:LayerCol-VolRend-SurRend_Multi-Widget +PACKAGENAME:creaMiniTools +COMPLEXOUTPUTS:1 +COMPLEX_PORT +widget +-67.683015:-132.151534:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:4 +COMPLEX_PORT +renderer3D +-123.400960:115.721884:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +wxvtkbaseview1 +-46.046009:123.616038:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +wxvtkbaseview2 +2.255971:122.542660:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +wxvtkbaseview3 +62.096757:124.421071:-900.000000 +FIN_COMPLEX_PORT +BOXES:11 +BOX +creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box08 +ISEXEC:FALSE +-140.679007:-0.207604:-900.000000 +-69.504007:-10.207604:-900.000000 +PORT +title:"Layer-1" +FIN_BOX +BOX +wx:LayoutTab:Box10 +ISEXEC:FALSE +-104.959681:-82.554057:-900.000000 +-47.399681:-92.554057:-900.000000 +PORT +WinTitle:"Superpose" +FIN_BOX +BOX +wx:LayoutTab:Box11 +ISEXEC:FALSE +-83.472534:-107.035525:-900.000000 +-25.912534:-117.035525:-900.000000 +FIN_BOX +BOX +creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box12 +ISEXEC:FALSE +-106.008658:-13.816040:-900.000000 +-34.833658:-23.816040:-900.000000 +PORT +title:"Layer-2" +FIN_BOX +BOX +creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box13 +ISEXEC:FALSE +-80.082555:-27.424477:-900.000000 +-8.907555:-37.424477:-900.000000 +PORT +title:"Layer-3" +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box14 +ISEXEC:FALSE +-67.454266:-45.155335:-900.000000 +3.720734:-55.155335:-900.000000 +PORT +WinTitle:"Layer-Base" +PORT +lstTransparenceBoundaries:"0" +FIN_BOX +BOX +wx:LayoutLine:Box15 +ISEXEC:FALSE +-62.169855:-63.197436:-900.000000 +-4.609855:-73.197436:-900.000000 +PORT +WinTitle:"Layer-Base" +FIN_BOX +BOX +std:MagicBox:Box16 +ISEXEC:FALSE +-120.543629:92.148908:-900.000000 +-74.968629:82.148908:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box17 +ISEXEC:FALSE +-56.803503:99.000035:-900.000000 +-11.228503:89.000035:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box18 +ISEXEC:FALSE +49.603373:96.995800:-900.000000 +95.178373:86.995800:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box19 +ISEXEC:FALSE +-3.260461:98.605866:-900.000000 +42.314539:88.605866:-900.000000 +FIN_BOX +CONNECTIONS:26 +CONNECTION +Box10:Widget:Box11:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box13:widgetLayer:Box10:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box12:widgetLayer:Box10:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box08:widgetLayer:Box10:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box10:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:widget:widget +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box08:Rederer3D +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box12:Rederer3D +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box13:Rederer3D +NumberOfControlPoints:0 +CONNECTION +wxvtkbaseview1:wxvtkbaseview1:Box17:In +NumberOfControlPoints:0 +CONNECTION +renderer3D:renderer3D:Box16:In +NumberOfControlPoints:0 +CONNECTION +wxvtkbaseview2:wxvtkbaseview2:Box19:In +NumberOfControlPoints:0 +CONNECTION +wxvtkbaseview3:wxvtkbaseview3:Box18:In +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box08:vtkbaseview1 +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box12:vtkbaseview1 +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box13:vtkbaseview1 +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box14:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box08:vtkbaseview2 +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box12:vtkbaseview2 +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box13:vtkbaseview2 +NumberOfControlPoints:0 +CONNECTION +Box19:Out:Box14:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box08:vtkbaseview3 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box12:vtkbaseview3 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box14:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box13:vtkbaseview3 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs new file mode 100644 index 0000000..bf3cf4f --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs @@ -0,0 +1,83 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs +# ---------------------------------- + +include std +include itkvtk +include creaMiniTools +include wx +include creaMaracasVisu +include std + +define LayerCol-VolRend-SurRend_Multi-Widget creaMiniTools + +author "Author ??" +description "Description ??" + +category "" + +new creaMiniTools:LayerCol-VolRend-SurRend_Widget Box08 + set Box08.title "Layer-1" + +new wx:LayoutTab Box10 + set Box10.WinTitle "Superpose" + +new wx:LayoutTab Box11 + +new creaMiniTools:LayerCol-VolRend-SurRend_Widget Box12 + set Box12.title "Layer-2" + +new creaMiniTools:LayerCol-VolRend-SurRend_Widget Box13 + set Box13.title "Layer-3" + +new creaMaracasVisu:ColorLayerImageView Box14 + set Box14.WinTitle "Layer-Base" + set Box14.lstTransparenceBoundaries "0" + +new wx:LayoutLine Box15 + set Box15.WinTitle "Layer-Base" + +new std:MagicBox Box16 + +new std:MagicBox Box17 + +new std:MagicBox Box18 + +new std:MagicBox Box19 + + +connect Box10.Widget Box11.Widget1 +connect Box13.widgetLayer Box10.Widget3 +connect Box12.widgetLayer Box10.Widget2 +connect Box08.widgetLayer Box10.Widget1 +connect Box14.Widget Box15.Widget1 +connect Box15.Widget Box10.Widget4 +connect Box16.Out Box08.Rederer3D +connect Box16.Out Box12.Rederer3D +connect Box16.Out Box13.Rederer3D +connect Box17.Out Box08.vtkbaseview1 +connect Box17.Out Box12.vtkbaseview1 +connect Box17.Out Box13.vtkbaseview1 +connect Box17.Out Box14.WxVtkBaseView +connect Box19.Out Box08.vtkbaseview2 +connect Box19.Out Box12.vtkbaseview2 +connect Box19.Out Box13.vtkbaseview2 +connect Box19.Out Box14.WxVtkBaseView1 +connect Box18.Out Box08.vtkbaseview3 +connect Box18.Out Box12.vtkbaseview3 +connect Box18.Out Box14.WxVtkBaseView2 +connect Box18.Out Box13.vtkbaseview3 + +# Complex input ports +input wxvtkbaseview1 Box17.In " " +input renderer3D Box16.In " " +input wxvtkbaseview2 Box19.In " " +input wxvtkbaseview3 Box18.In " " + +# Complex output ports +output widget Box11.Widget " " + +message + +endefine 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 d953ac5..c811098 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg @@ -22,26 +22,26 @@ Rederer3D FIN_COMPLEX_PORT COMPLEX_PORT vtkbaseview1 --373.440921:222.843982:-900.000000 +-391.405057:285.327934:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT vtkbaseview2 --358.446639:223.275870:-900.000000 +-365.476084:283.026149:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT vtkbaseview3 --344.331421:223.528157:-900.000000 +-333.787254:286.793158:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT title --307.390009:219.450622:-900.000000 +-304.265811:289.354543:-900.000000 FIN_COMPLEX_PORT -BOXES:32 +BOXES:36 BOX wx:LayoutLine:Box06 ISEXEC:FALSE -281.340411:-127.155729:-900.000000 --223.780411:-137.155729:-900.000000 +-201.065896:-137.155729:-900.000000 PORT WinTitle:"Superpose" FIN_BOX @@ -121,7 +121,7 @@ BOX wx:LayoutTab:Box27 ISEXEC:FALSE -408.503358:68.807042:-900.000000 --350.943358:58.807042:-900.000000 +-242.642464:58.807042:-900.000000 FIN_BOX BOX wx:LayoutLine:Box28 @@ -135,13 +135,13 @@ BOX wx:LayoutTab:Box29 ISEXEC:FALSE -248.735549:-48.711503:-900.000000 --191.175549:-58.711503:-900.000000 +-190.262536:-58.711503:-900.000000 FIN_BOX BOX wx:LayoutLine:Box30 ISEXEC:FALSE -244.163542:-28.541590:-900.000000 --186.603542:-38.541590:-900.000000 +-188.953038:-38.541590:-900.000000 PORT WinTitle:"Volume Rendering" FIN_BOX @@ -149,13 +149,13 @@ BOX wx:LayoutTab:Box31 ISEXEC:FALSE -97.827376:-10.964342:-900.000000 --40.267376:-20.964342:-900.000000 +-52.252376:-20.964342:-900.000000 FIN_BOX BOX wx:LayoutLine:Box37 ISEXEC:FALSE -121.404862:47.404626:-900.000000 --63.844862:37.404626:-900.000000 +-75.829862:37.404626:-900.000000 PORT WinTitle:"Surface Rendering-1" FIN_BOX @@ -163,7 +163,7 @@ BOX creaMaracasVisu:ViewerNV:Box39 ISEXEC:FALSE -416.458696:-28.597979:-900.000000 --355.818696:-38.597979:-900.000000 +-242.181461:-38.597979:-900.000000 PORT WinTitle:"ups" FIN_BOX @@ -171,13 +171,13 @@ BOX wx:LayoutTab:Box40 ISEXEC:FALSE -245.919128:-189.914313:-900.000000 --188.359128:-199.914313:-900.000000 +-189.280412:-199.914313:-900.000000 FIN_BOX BOX wx:LayoutSplit:Box41 ISEXEC:FALSE -336.519542:-218.920349:-900.000000 --290.944542:-228.920349:-900.000000 +-237.551497:-228.920349:-900.000000 PORT Proportion:"10" PORT @@ -187,7 +187,7 @@ BOX wx:LayoutLine:Box43 ISEXEC:FALSE -225.050510:-146.533489:-900.000000 --167.490510:-156.533489:-900.000000 +-179.475510:-156.533489:-900.000000 PORT WinTitle:"Viewer" FIN_BOX @@ -209,7 +209,7 @@ BOX wx:LayoutLine:Box48 ISEXEC:FALSE -50.254138:48.588000:-900.000000 -7.305862:38.588000:-900.000000 +-4.679138:38.588000:-900.000000 PORT WinTitle:"Surface Rendering-2" FIN_BOX @@ -225,7 +225,7 @@ BOX wx:LayoutLine:Box50 ISEXEC:FALSE 15.484422:48.922481:-900.000000 -73.044422:38.922481:-900.000000 +61.059422:38.922481:-900.000000 PORT WinTitle:"Surface Rendering-3" FIN_BOX @@ -255,7 +255,7 @@ BOX wx:LayoutLine:Box55 ISEXEC:FALSE -201.484471:-169.361130:-900.000000 --143.924471:-179.361130:-900.000000 +-155.909471:-179.361130:-900.000000 PORT WinTitle:"Image Properties" FIN_BOX @@ -275,16 +275,45 @@ BOX creaMaracasVisu:ImageChangeInformation:Box59 ISEXEC:FALSE -437.948998:7.260499:-900.000000 --366.773998:-2.739501:-900.000000 +-295.256326:-2.739501:-900.000000 FIN_BOX -CONNECTIONS:61 +BOX +creaMaracasVisu:SliderMinMax-flexible:Box60 +ISEXEC:FALSE +-472.391816:186.923334:-900.000000 +-401.216816:176.923334:-900.000000 +PORT +maxIn:"1000" +PORT +minIn:"0" +PORT +showactual:"false" +FIN_BOX +BOX +std:MultipleInputs:Box61 +ISEXEC:FALSE +-409.338655:154.856618:-900.000000 +-363.763655:144.856618:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box62 +ISEXEC:FALSE +-485.624471:157.257221:-900.000000 +-440.049471:147.257221:-900.000000 +PORT +In2:" " +FIN_BOX +BOX +std:ConcatStrings:Box63 +ISEXEC:FALSE +-464.024069:141.514915:-900.000000 +-418.449069:131.514915:-900.000000 +FIN_BOX +CONNECTIONS:69 CONNECTION Box23:BoxChange:Box24:BoxExecute NumberOfControlPoints:0 CONNECTION -Box23:BoxChange:Box26:BoxExecute -NumberOfControlPoints:0 -CONNECTION Box33:Active:Box34:Active NumberOfControlPoints:0 CONNECTION @@ -461,4 +490,31 @@ NumberOfControlPoints:0 CONNECTION Box26:NewImage:Box59:In NumberOfControlPoints:0 +CONNECTION +Box60:widget:Box28:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box60:boxchange:Box61:In2 +NumberOfControlPoints:0 +CONNECTION +Box23:BoxChange:Box61:In1 +NumberOfControlPoints:0 +CONNECTION +Box61:BoxChange:Box26:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box60:outstart:Box63:In1 +NumberOfControlPoints:0 +CONNECTION +Box63:Out:Box26:lstTransparenceBoundaries +NumberOfControlPoints:0 +CONNECTION +Box60:outstart:Box62:In1 +NumberOfControlPoints:0 +CONNECTION +Box60:outend:Box62:In3 +NumberOfControlPoints:0 +CONNECTION +Box62:Out:Box26:lstRangeForColorBar +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 f38a6a0..0dc05f2 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs @@ -109,9 +109,20 @@ new creaMaracasVisu:ImageChangeInformation Box57 new creaMaracasVisu:ImageChangeInformation Box59 +new creaMaracasVisu:SliderMinMax-flexible Box60 + set Box60.maxIn "1000" + set Box60.minIn "0" + set Box60.showactual "false" + +new std:MultipleInputs Box61 + +new std:ConcatStrings Box62 + set Box62.In2 " " + +new std:ConcatStrings Box63 + connect Box23.BoxChange Box24.BoxExecute -connect Box23.BoxChange Box26.BoxExecute connect Box33.Active Box34.Active connect Box33.ColorFunction Box32.ColorFunction1 connect Box33.OpacityFunction Box32.OpacityFunction @@ -165,6 +176,15 @@ connect Box26.NewImage Box33.In connect Box26.NewImage Box32.In connect Box59.Out Box39.In connect Box26.NewImage Box59.In +connect Box60.widget Box28.Widget2 +connect Box60.boxchange Box61.In2 +connect Box23.BoxChange Box61.In1 +connect Box61.BoxChange Box26.BoxExecute +connect Box60.outstart Box63.In1 +connect Box63.Out Box26.lstTransparenceBoundaries +connect Box60.outstart Box62.In1 +connect Box60.outend Box62.In3 +connect Box62.Out Box26.lstRangeForColorBar # Complex input ports input Rederer3D Box56.In " " -- 2.47.1