From 7ab36668fbb2063eaf14b89ecf803ff24c1d9b12 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 28 Jul 2016 15:20:20 +0200 Subject: [PATCH 01/16] 2999CreaMiniToolsFeatureNewNormalcrop-viewer-widget-manaul --- .../bbs/appli/viewerNVExample.bbg | 44 ++++--- .../bbs/appli/viewerNVExample.bbs | 22 ++-- .../bbs/boxes/crop-viewer-widget-manual.bbg | 38 +++--- .../bbs/boxes/crop-viewer-widget.bbg | 114 ++++++++++-------- .../bbs/boxes/crop-viewer-widget.bbs | 24 ++-- 5 files changed, 135 insertions(+), 107 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg index c6d1feb..9c6c102 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg @@ -151,14 +151,14 @@ FIN_BOX BOX vtk:LoadHola:Box26 ISEXEC:FALSE --86.603558:156.948489:-900.000000 --41.028558:146.948489:-900.000000 +-82.733089:161.786575:-900.000000 +-37.158089:151.786575:-900.000000 FIN_BOX BOX std:MultipleInputs:Box34 ISEXEC:FALSE -23.509727:-94.029608:-900.000000 -69.084727:-104.029608:-900.000000 +-28.171891:-99.413110:-900.000000 +17.403109:-109.413110:-900.000000 FIN_BOX BOX wx:LayoutTab:Box36 @@ -222,13 +222,15 @@ ISEXEC:FALSE -252.852156:3.171851:-900.000000 -201.452156:-6.828149:-900.000000 PORT +ChangeResolution:"true" +PORT In:"0" PORT Label:"true" PORT -Max:"2000" +Max:"1000" PORT -Min:"-2000" +Min:"-1000" PORT ReactiveOnTrack:"true" PORT @@ -240,13 +242,15 @@ ISEXEC:FALSE -228.513959:18.615970:-900.000000 -177.113959:8.615970:-900.000000 PORT +ChangeResolution:"true" +PORT In:"0" PORT Label:"true" PORT -Max:"2000" +Max:"1000" PORT -Min:"-2000" +Min:"-1000" PORT ReactiveOnTrack:"true" PORT @@ -255,8 +259,8 @@ FIN_BOX BOX wx:Slider:Box80 ISEXEC:FALSE --191.021078:3.992223:-900.000000 --139.621078:-6.007777:-900.000000 +-191.379978:3.992223:-900.000000 +-139.979978:-6.007777:-900.000000 PORT ChangeResolution:"true" PORT @@ -264,9 +268,9 @@ In:"0" PORT Label:"true" PORT -Max:"2000" +Max:"1000" PORT -Min:"-2000" +Min:"-1000" PORT ReactiveOnTrack:"true" PORT @@ -293,8 +297,8 @@ FIN_BOX BOX std:MathOperationVector:Box87 ISEXEC:FALSE --153.040843:-77.209071:-900.000000 --81.865843:-87.209071:-900.000000 +-152.877707:-84.484955:-900.000000 +-81.702707:-94.484955:-900.000000 FIN_BOX BOX creaMiniTools:crop-viewer-widget:Box88 @@ -432,9 +436,6 @@ CONNECTION Box75:Widget:Box11:Widget3 NumberOfControlPoints:0 CONNECTION -Box26:Out:Box24:In -NumberOfControlPoints:0 -CONNECTION Box78:Widget:Box77:Widget1 NumberOfControlPoints:0 CONNECTION @@ -468,9 +469,6 @@ CONNECTION Box01:Point:Box87:In1 NumberOfControlPoints:0 CONNECTION -Box50:Out:Box34:In2 -NumberOfControlPoints:0 -CONNECTION Box01:Renderer1:Box88:renderer NumberOfControlPoints:0 CONNECTION @@ -548,4 +546,10 @@ NumberOfControlPoints:0 CONNECTION Box91:BoxChange:Box34:In3 NumberOfControlPoints:0 +CONNECTION +Box50:BoxChange:Box34:In2 +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 af89a1a..b6d8886 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs @@ -100,18 +100,20 @@ new wx:LayoutLine Box77 set Box77.Orientation "H" new wx:Slider Box78 + set Box78.ChangeResolution "true" set Box78.In "0" set Box78.Label "true" - set Box78.Max "2000" - set Box78.Min "-2000" + set Box78.Max "1000" + set Box78.Min "-1000" set Box78.ReactiveOnTrack "true" set Box78.Title "delta X" new wx:Slider Box79 + set Box79.ChangeResolution "true" set Box79.In "0" set Box79.Label "true" - set Box79.Max "2000" - set Box79.Min "-2000" + set Box79.Max "1000" + set Box79.Min "-1000" set Box79.ReactiveOnTrack "true" set Box79.Title "delta Y" @@ -119,8 +121,8 @@ new wx:Slider Box80 set Box80.ChangeResolution "true" set Box80.In "0" set Box80.Label "true" - set Box80.Max "2000" - set Box80.Min "-2000" + set Box80.Max "1000" + set Box80.Min "-1000" set Box80.ReactiveOnTrack "true" set Box80.Title "delta Z" @@ -212,8 +214,6 @@ connect Box74.widget Box75.Widget1 connect Box75.Widget Box11.Widget3 -connect Box26.Out Box24.In - connect Box78.Widget Box77.Widget1 connect Box79.Widget Box77.Widget2 @@ -236,8 +236,6 @@ connect Box86.Out Box87.In0 connect Box01.Point Box87.In1 -connect Box50.Out Box34.In2 - connect Box01.Renderer1 Box88.renderer connect Box23.Out Box88.size @@ -290,6 +288,10 @@ connect Box80.BoxChange Box91.In3 connect Box91.BoxChange Box34.In3 +connect Box50.BoxChange Box34.In2 + +connect Box00.Out Box24.In + # Complex input ports diff --git a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbg b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbg index 742212e..ff82c8f 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbg @@ -18,23 +18,23 @@ FIN_COMPLEX_PORT COMPLEXINPUTS:5 COMPLEX_PORT _title --36.651464:167.150712:-900.000000 +68.758033:71.780215:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _size --65.931745:166.765222:-900.000000 +26.301565:73.904475:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _renderer --99.943564:166.351469:-900.000000 +0.446433:73.490722:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _position --145.279212:165.352495:-900.000000 +-26.066091:71.864310:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT _execute --169.125433:164.442652:-900.000000 +97.535496:66.562405:-900.000000 FIN_COMPLEX_PORT BOXES:16 BOX @@ -52,22 +52,22 @@ FIN_BOX BOX wx:OutputText:Box48 ISEXEC:FALSE -399.208097:-52.527858:-900.000000 -444.783097:-62.527858:-900.000000 +340.228974:-88.919232:-900.000000 +385.803974:-98.919232:-900.000000 PORT In:"Drop your *.MHD file here!" FIN_BOX BOX wx:OutputText:Box49 ISEXEC:FALSE -312.616841:-0.759770:-900.000000 -358.191841:-10.759770:-900.000000 +312.971013:-0.405598:-900.000000 +358.546013:-10.405598:-900.000000 FIN_BOX BOX wx:LayoutLine:Box52 ISEXEC:FALSE -315.908353:-120.866096:-900.000000 -373.468353:-130.866096:-900.000000 +259.438980:-128.395346:-900.000000 +316.998980:-138.395346:-900.000000 PORT WinTitle:"Image A" FIN_BOX @@ -84,8 +84,8 @@ FIN_BOX BOX creaImageIO:ImagesChooserDialogBox:Box58 ISEXEC:FALSE -411.972303:58.695318:-900.000000 -483.147303:48.695318:-900.000000 +411.618131:59.049490:-900.000000 +482.793131:49.049490:-900.000000 PORT BoxProcessMode:"Manual" PORT @@ -94,8 +94,8 @@ FIN_BOX BOX wx:CommandButton:Box59 ISEXEC:FALSE -379.620954:94.019278:-900.000000 -425.195954:84.019278:-900.000000 +379.620954:93.746013:-900.000000 +425.195954:83.746013:-900.000000 PORT Label:"Load Image" FIN_BOX @@ -120,8 +120,8 @@ FIN_BOX BOX wx:LayoutLine:Box64 ISEXEC:FALSE -360.112523:-92.633715:-900.000000 -417.672523:-102.633715:-900.000000 +307.407775:-107.064777:-900.000000 +364.967775:-117.064777:-900.000000 PORT Orientation:"H" FIN_BOX @@ -152,8 +152,8 @@ FIN_BOX BOX std:MultipleInputs:Box15 ISEXEC:FALSE -181.341066:-78.685848:-900.000000 -226.916066:-88.685848:-900.000000 +181.695238:-78.685848:-900.000000 +227.270238:-88.685848:-900.000000 FIN_BOX CONNECTIONS:29 CONNECTION diff --git a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbg index 7e2d2af..0bf98ae 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbg @@ -30,7 +30,7 @@ image FIN_COMPLEX_PORT COMPLEX_PORT position -40.901574:-16.489887:-900.000000 +-52.531103:-17.676334:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT size @@ -40,18 +40,18 @@ COMPLEX_PORT title 167.087228:-19.215667:-900.000000 FIN_COMPLEX_PORT -BOXES:16 +BOXES:17 BOX vtk:ExtractVtkImageFilter:Box22 ISEXEC:FALSE -12.947100:-159.196100:-900.000000 -84.122100:-169.196100:-900.000000 +-9.595387:-168.391062:-900.000000 +61.579613:-178.391062:-900.000000 FIN_BOX BOX vtk:VolumeRenderer:Box29 ISEXEC:FALSE -9.708222:-280.850162:-900.000000 -55.283222:-290.850162:-900.000000 +17.113639:-274.410669:-900.000000 +62.688639:-284.410669:-900.000000 FIN_BOX BOX creaVtk:Actor:Box30 @@ -64,8 +64,8 @@ FIN_BOX BOX creaMaracasVisu:TransferFunctionView:Box31 ISEXEC:FALSE -46.335305:-245.397816:-900.000000 -117.510305:-255.397816:-900.000000 +59.038668:-244.109917:-900.000000 +130.213668:-254.109917:-900.000000 FIN_BOX BOX wx:LayoutLine:Box32 @@ -84,20 +84,22 @@ FIN_BOX BOX std:MultipleInputs:Box34 ISEXEC:FALSE -108.182051:-127.242714:-900.000000 -153.757051:-137.242714:-900.000000 +114.972860:-123.094058:-900.000000 +160.547860:-133.094058:-900.000000 FIN_BOX BOX wxvtk:IsoSurfaceWidget:Box35 ISEXEC:FALSE -111.025183:-343.234341:-900.000000 -156.600183:-353.234341:-900.000000 +111.610591:-336.502144:-900.000000 +157.185591:-346.502144:-900.000000 +PORT +Colour:"1 0 0" FIN_BOX BOX std:MathOperationVector:Box54 ISEXEC:FALSE --46.375674:-89.238759:-900.000000 -24.799326:-99.238759:-900.000000 +-45.189227:-90.476684:-900.000000 +25.985773:-100.476684:-900.000000 PORT In1:"-2 -2 -2" PORT @@ -106,24 +108,24 @@ FIN_BOX BOX std:MathOperationVector:Box56 ISEXEC:FALSE --38.438797:-116.012843:-900.000000 -32.736203:-126.012843:-900.000000 +-70.769469:-115.123008:-900.000000 +0.405531:-125.123008:-900.000000 PORT In1:"-2 -2 -2" FIN_BOX BOX creaMaracasVisu:ImageChangeInformation:Box69 ISEXEC:FALSE -51.949681:-183.190158:-900.000000 -123.124681:-193.190158:-900.000000 +41.265977:-189.483299:-900.000000 +112.440977:-199.483299:-900.000000 PORT NewSpacing:"1 1 1" FIN_BOX BOX wx:RadioButton:Box83 ISEXEC:FALSE -76.570723:-81.212597:-900.000000 -140.290723:-91.212597:-900.000000 +75.985315:-81.505301:-900.000000 +139.705315:-91.505301:-900.000000 PORT In0:"Open" PORT @@ -132,18 +134,12 @@ FIN_BOX BOX std:MathOperation:Box84 ISEXEC:FALSE -48.074061:-123.305171:-900.000000 -93.649061:-133.305171:-900.000000 +51.001103:-133.257114:-900.000000 +96.576103:-143.257114:-900.000000 PORT In2:"-1" FIN_BOX BOX -vtk:CleanExternalPlane:Box85 -ISEXEC:FALSE -75.444666:-210.255607:-900.000000 -121.019666:-220.255607:-900.000000 -FIN_BOX -BOX std:MagicBox:Box88 ISEXEC:FALSE 205.000453:-205.651384:-900.000000 @@ -152,10 +148,24 @@ FIN_BOX BOX std:MagicBox:Box89 ISEXEC:FALSE --30.073336:-60.226027:-900.000000 -15.501664:-70.226027:-900.000000 +-9.903742:-60.522639:-900.000000 +35.671258:-70.522639:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box20 +ISEXEC:FALSE +-53.912867:-228.214411:-900.000000 +-8.337867:-238.214411:-900.000000 +FIN_BOX +BOX +vtk:CleanExternalPlane:Box23 +ISEXEC:FALSE +73.843095:-224.062944:-900.000000 +119.418095:-234.062944:-900.000000 +PORT +BoxProcessMode:"Always" FIN_BOX -CONNECTIONS:35 +CONNECTIONS:37 CONNECTION Box31:Active:Box30:Active NumberOfControlPoints:0 @@ -187,9 +197,6 @@ CONNECTION Box56:Out:Box22:Index NumberOfControlPoints:0 CONNECTION -Box22:Out:Box69:In -NumberOfControlPoints:0 -CONNECTION Box35:Widget:Box32:Widget3 NumberOfControlPoints:0 CONNECTION @@ -202,15 +209,6 @@ CONNECTION Box83:Out:Box84:In1 NumberOfControlPoints:0 CONNECTION -Box69:Out:Box85:In -NumberOfControlPoints:0 -CONNECTION -Box85:Out:Box31:In -NumberOfControlPoints:0 -CONNECTION -Box84:Out:Box85:Type -NumberOfControlPoints:0 -CONNECTION Box34:BoxChange:Box22:BoxExecute NumberOfControlPoints:0 CONNECTION @@ -229,9 +227,6 @@ CONNECTION box_Execute:box_Execute:Box34:In1 NumberOfControlPoints:0 CONNECTION -image:image:Box22:In -NumberOfControlPoints:0 -CONNECTION position:position:Box56:In0 NumberOfControlPoints:0 CONNECTION @@ -253,12 +248,33 @@ CONNECTION Box83:BoxChange:Box34:In2 NumberOfControlPoints:0 CONNECTION -Box34:BoxChange:Box85:BoxExecute +Box34:BoxChange:Box35:BoxExecute NumberOfControlPoints:0 CONNECTION -Box85:Out:Box35:In +image:image:Box22:In NumberOfControlPoints:0 CONNECTION -Box34:BoxChange:Box35:BoxExecute +Box34:BoxChange:Box20:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box84:Out:Box20:In +NumberOfControlPoints:0 +CONNECTION +Box20:Widget:Box32:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box84:Out:Box23:Type +NumberOfControlPoints:0 +CONNECTION +Box34:BoxChange:Box23:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box31:In +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box23:In +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box35:In NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs index 6aabbb9..ea159d6 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs @@ -36,6 +36,7 @@ new vtk:UpdateRender Box33 new std:MultipleInputs Box34 new wxvtk:IsoSurfaceWidget Box35 + set Box35.Colour "1 0 0" new std:MathOperationVector Box54 set Box54.In1 "-2 -2 -2" @@ -54,12 +55,15 @@ new wx:RadioButton Box83 new std:MathOperation Box84 set Box84.In2 "-1" -new vtk:CleanExternalPlane Box85 - new std:MagicBox Box88 new std:MagicBox Box89 +new wx:OutputText Box20 + +new vtk:CleanExternalPlane Box23 + set Box23.BoxProcessMode "Always" + connect Box31.Active Box30.Active connect Box31.OpacityFunction Box29.OpacityFunction @@ -71,14 +75,10 @@ connect Box34.BoxChange Box29.BoxExecute connect Box22.Out Box29.In connect Box54.Out Box56.In1 connect Box56.Out Box22.Index -connect Box22.Out Box69.In connect Box35.Widget Box32.Widget3 connect Box31.Widget Box32.Widget2 connect Box83.Widget Box32.Widget1 connect Box83.Out Box84.In1 -connect Box69.Out Box85.In -connect Box85.Out Box31.In -connect Box84.Out Box85.Type connect Box34.BoxChange Box22.BoxExecute connect Box88.Out Box35.vtkRenderer connect Box88.Out Box30.Renderer @@ -86,17 +86,23 @@ connect Box88.Out Box33.Renderer connect Box89.Out Box54.In0 connect Box89.Out Box22.Size connect Box83.BoxChange Box34.In2 -connect Box34.BoxChange Box85.BoxExecute -connect Box85.Out Box35.In connect Box34.BoxChange Box35.BoxExecute +connect Box34.BoxChange Box20.BoxExecute +connect Box84.Out Box20.In +connect Box20.Widget Box32.Widget4 +connect Box84.Out Box23.Type +connect Box34.BoxChange Box23.BoxExecute +connect Box23.Out Box31.In +connect Box22.Out Box23.In +connect Box23.Out Box35.In # Complex input ports input renderer Box88.In " " input box_Execute Box34.In1 " " -input image Box22.In " " input position Box56.In0 " " input size Box89.In " " input title Box32.WinTitle " " +input image Box22.In " " # Complex output ports output widget Box32.Widget " " -- 2.45.1 From 4b39f709a6bb16da22d482547fe0838afc016e21 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Tue, 2 Aug 2016 14:38:31 +0200 Subject: [PATCH 02/16] #3002 CreaMiniTools Feature New Normal - GaussianSmoothing minitool --- .../bbs/appli/GaussianSmoothing.bbg | 279 ++++++++++++++++++ .../bbs/appli/GaussianSmoothing.bbs | 150 ++++++++++ .../bbs/appli/minitoolsMenu.bbg | 4 +- .../bbs/appli/minitoolsMenu.bbs | 14 +- .../bbs/boxes/imageToolsMenu.bbg | 37 ++- .../bbs/boxes/imageToolsMenu.bbs | 12 + 6 files changed, 485 insertions(+), 11 deletions(-) create mode 100644 bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg create mode 100644 bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs diff --git a/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg new file mode 100644 index 0000000..328e34e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg @@ -0,0 +1,279 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:23 +BOX +vtk:LoadHola:Box00 +ISEXEC:FALSE +-20.135814:74.544301:-900.000000 +25.439186:64.544301:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +87.302159:3.501587:-900.000000 +132.877159:-6.498413:-900.000000 +FIN_BOX +BOX +vtk:ImageGaussianSmooth:Box02 +ISEXEC:FALSE +-92.975342:16.671539:-900.000000 +-21.800342:6.671539:-900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box03 +ISEXEC:FALSE +-16.394845:50.739854:-900.000000 +54.780155:40.739854:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box05 +ISEXEC:FALSE +12.619602:-1.070085:-900.000000 +73.259602:-11.070085:-900.000000 +PORT +WinTitle:"dddd" +FIN_BOX +BOX +wx:LayoutSplit:Box06 +ISEXEC:TRUE +-46.343668:-115.304835:-900.000000 +-0.768668:-125.304835:-900.000000 +PORT +Orientation:"H" +PORT +Proportion:"20" +FIN_BOX +BOX +wx:LayoutLine:Box07 +ISEXEC:FALSE +-64.830355:-62.532264:-900.000000 +-19.255355:-72.532264:-900.000000 +FIN_BOX +BOX +wx:InputText:Box08 +ISEXEC:FALSE +-205.898495:54.857777:-900.000000 +-153.595252:44.857777:-900.000000 +PORT +In:"0.0" +PORT +Title:"StdDevX" +FIN_BOX +BOX +wx:InputText:Box09 +ISEXEC:FALSE +-156.759039:53.366353:-900.000000 +-111.184039:43.366353:-900.000000 +PORT +In:"0.0" +PORT +Title:"StdDevY" +FIN_BOX +BOX +wx:InputText:Box10 +ISEXEC:FALSE +-104.106766:49.860335:-900.000000 +-58.531766:39.860335:-900.000000 +PORT +In:"0.0" +PORT +Title:"StdDevZ" +FIN_BOX +BOX +wx:LayoutLine:Box11 +ISEXEC:FALSE +-162.055732:14.971535:-900.000000 +-116.480732:4.971535:-900.000000 +PORT +Orientation:"V" +FIN_BOX +BOX +wx:CommandButton:Box12 +ISEXEC:FALSE +-56.297422:-7.890677:-900.000000 +-10.722422:-17.890677:-900.000000 +PORT +Label:"Refresh" +FIN_BOX +BOX +toolsbbtk:SaveMHD-Button:Box14 +ISEXEC:FALSE +-73.987401:-31.099944:-900.000000 +-28.412401:-41.099944:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box15 +ISEXEC:FALSE +-2.736825:-98.913281:-900.000000 +42.838175:-108.913281:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box16 +ISEXEC:FALSE +91.923759:-16.903668:-900.000000 +137.498759:-26.903668:-900.000000 +PORT +WinTitle:"Image" +FIN_BOX +BOX +wx:LayoutLine:Box17 +ISEXEC:FALSE +23.058759:-18.153994:-900.000000 +68.633759:-28.153994:-900.000000 +PORT +WinTitle:"Image" +FIN_BOX +BOX +toolsbbtk:ImageVtkPropertiesWidget:Box19 +ISEXEC:FALSE +-17.547618:-33.002400:-900.000000 +53.627382:-43.002400:-900.000000 +FIN_BOX +BOX +wx:LayoutTab:Box20 +ISEXEC:FALSE +8.238559:-68.927404:-900.000000 +53.813559:-78.927404:-900.000000 +PORT +WinTitle:"Smooth" +FIN_BOX +BOX +wx:LayoutTab:Box21 +ISEXEC:FALSE +92.147564:-64.754573:-900.000000 +149.707564:-74.754573:-900.000000 +PORT +WinTitle:"Original" +FIN_BOX +BOX +wx:LayoutLine:Box22 +ISEXEC:FALSE +-9.423107:-48.704012:-900.000000 +36.151893:-58.704012:-900.000000 +PORT +WinTitle:"Info" +FIN_BOX +BOX +toolsbbtk:ImageVtkPropertiesWidget:Box23 +ISEXEC:FALSE +73.286802:-31.773522:-900.000000 +144.461802:-41.773522:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box24 +ISEXEC:FALSE +81.411313:-47.475134:-900.000000 +126.986313:-57.475134:-900.000000 +PORT +WinTitle:"Info" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box25 +ISEXEC:FALSE +48.798878:67.882239:-900.000000 +119.973878:57.882239:-900.000000 +FIN_BOX +CONNECTIONS:31 +CONNECTION +Box03:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box02:In +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box06:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box08:Widget:Box11:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box09:Widget:Box11:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box10:Widget:Box11:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box12:Widget:Box07:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box11:Widget:Box07:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box14:Widget:Box07:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box06:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box17:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box01:Widget:Box16:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box02:StdDevX +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box02:StdDevY +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box02:StdDevZ +NumberOfControlPoints:0 +CONNECTION +Box12:BoxChange:Box17:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box14:In +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box19:in +NumberOfControlPoints:0 +CONNECTION +Box12:BoxChange:Box19:boxExecute +NumberOfControlPoints:0 +CONNECTION +Box20:Widget:Box15:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box21:Widget:Box15:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box19:widget:Box22:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box23:widget:Box24:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box17:Widget:Box20:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box22:Widget:Box20:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box16:Widget:Box21:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box24:Widget:Box21:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box23:in +NumberOfControlPoints:0 +CONNECTION +Box25:FileName:Box23:FileName +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs new file mode 100644 index 0000000..47bc54b --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs @@ -0,0 +1,150 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include creaMaracasVisu +include wx +include toolsbbtk +include creaImageIO + +author "Author ??" +description "Description ??" +category "" + +new vtk:LoadHola Box00 + +new creaMaracasVisu:ViewerNV Box01 + +new vtk:ImageGaussianSmooth Box02 + +new vtk:vtkImageDataPointerRelay Box03 + +new creaMaracasVisu:ViewerNV Box05 + set Box05.WinTitle "dddd" + +new wx:LayoutSplit Box06 + set Box06.Orientation "H" + set Box06.Proportion "20" + +new wx:LayoutLine Box07 + +new wx:InputText Box08 + set Box08.In "0.0" + set Box08.Title "StdDevX" + +new wx:InputText Box09 + set Box09.In "0.0" + set Box09.Title "StdDevY" + +new wx:InputText Box10 + set Box10.In "0.0" + set Box10.Title "StdDevZ" + +new wx:LayoutLine Box11 + set Box11.Orientation "V" + +new wx:CommandButton Box12 + set Box12.Label "Refresh" + +new toolsbbtk:SaveMHD-Button Box14 + +new wx:LayoutTab Box15 + +new wx:LayoutLine Box16 + set Box16.WinTitle "Image" + +new wx:LayoutLine Box17 + set Box17.WinTitle "Image" + +new toolsbbtk:ImageVtkPropertiesWidget Box19 + +new wx:LayoutTab Box20 + set Box20.WinTitle "Smooth" + +new wx:LayoutTab Box21 + set Box21.WinTitle "Original" + +new wx:LayoutLine Box22 + set Box22.WinTitle "Info" + +new toolsbbtk:ImageVtkPropertiesWidget Box23 + +new wx:LayoutLine Box24 + set Box24.WinTitle "Info" + +new creaImageIO:ImagesChooserDialogBox Box25 + + +connect Box03.Out Box01.In + +connect Box03.Out Box02.In + +connect Box02.Out Box05.In + +connect Box07.Widget Box06.Widget1 + +connect Box08.Widget Box11.Widget1 + +connect Box09.Widget Box11.Widget2 + +connect Box10.Widget Box11.Widget3 + +connect Box12.Widget Box07.Widget2 + +connect Box11.Widget Box07.Widget1 + +connect Box14.Widget Box07.Widget3 + +connect Box15.Widget Box06.Widget2 + +connect Box05.Widget Box17.Widget1 + +connect Box01.Widget Box16.Widget1 + +connect Box08.Out Box02.StdDevX + +connect Box09.Out Box02.StdDevY + +connect Box10.Out Box02.StdDevZ + +connect Box12.BoxChange Box17.BoxExecute + +connect Box02.Out Box14.In + +connect Box02.Out Box19.in + +connect Box12.BoxChange Box19.boxExecute + +connect Box20.Widget Box15.Widget1 + +connect Box21.Widget Box15.Widget2 + +connect Box19.widget Box22.Widget1 + +connect Box23.widget Box24.Widget1 + +connect Box17.Widget Box20.Widget1 + +connect Box22.Widget Box20.Widget2 + +connect Box16.Widget Box21.Widget1 + +connect Box24.Widget Box21.Widget2 + +connect Box25.Out Box03.In + +connect Box03.Out Box23.in + +connect Box25.FileName Box23.FileName + + + +# Complex input ports +exec Box06 diff --git a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg index 0a6a28e..5db359c 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /home/daniel/creatis/all/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbg # ---------------------------------- APP_START @@ -22,7 +22,7 @@ ISEXEC:TRUE -35.286040:-48.757534:-900.000000 22.273960:-58.757534:-900.000000 PORT -WinHeight:"500" +WinHeight:"600" PORT WinTitle:"CreaTools" PORT diff --git a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs index efd850b..6d38d4c 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /home/daniel/creatis/all/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/minitoolsMenu.bbs # ---------------------------------- # BBTK GEditor Script @@ -15,18 +15,18 @@ author "Author ??" description "Description ??" category "application" -new CommandMenu Box00 +new creaMiniTools:CommandMenu Box00 -new LayoutTab Box01 - set Box01.WinHeight "500" +new wx:LayoutTab Box01 + set Box01.WinHeight "600" set Box01.WinTitle "CreaTools" set Box01.WinWidth "700" -new maxiToolsMenu Box05 +new creaMiniTools:maxiToolsMenu Box05 -new ImageToolsMenu Box06 +new creaMiniTools:ImageToolsMenu Box06 -new helpMenu Box04 +new creaMiniTools:helpMenu Box04 connect Box05.widget Box01.Widget1 diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg index ed0fd00..0f2eb91 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg @@ -16,7 +16,7 @@ widget 44.851582:-144.043083:-900.000000 FIN_COMPLEX_PORT COMPLEXINPUTS:0 -BOXES:43 +BOXES:46 BOX wx:CommandButton:Box00 ISEXEC:FALSE @@ -353,7 +353,31 @@ In0:"bbi creaMiniTools/appli/rescaleSlopeIntercept.bbs &" PORT In1:"start /b bbi creaMiniTools/appli/rescaleSlopeIntercept.bbs &" FIN_BOX -CONNECTIONS:53 +BOX +wx:CommandButton:Box52 +ISEXEC:FALSE +174.240812:-3.175598:-900.000000 +219.815812:-13.175598:-900.000000 +PORT +Label:"Gaussian Smoothing" +FIN_BOX +BOX +std:ExecSystemCommand:Box53 +ISEXEC:FALSE +171.798391:-33.460885:-900.000000 +242.973391:-43.460885:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box54 +ISEXEC:FALSE +185.046496:-17.092310:-900.000000 +230.621496:-27.092310:-900.000000 +PORT +In0:"bbi creaMiniTools/appli/GaussianSmoothing.bbs &" +PORT +In1:"start /b bbi creaMiniTools/appli/GaussianSmoothing.bbs &" +FIN_BOX +CONNECTIONS:56 CONNECTION Box00:BoxChange:Box04:BoxExecute NumberOfControlPoints:0 @@ -513,4 +537,13 @@ NumberOfControlPoints:0 CONNECTION Box33:SystemType:Box51:In NumberOfControlPoints:0 +CONNECTION +Box52:BoxChange:Box53:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box54:Out:Box53:In +NumberOfControlPoints:0 +CONNECTION +Box52:Widget:Box19:Widget9 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs index bd1faed..081cd6b 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs @@ -141,6 +141,15 @@ new std:StringSelect Box51 set Box51.In0 "bbi creaMiniTools/appli/rescaleSlopeIntercept.bbs &" set Box51.In1 "start /b bbi creaMiniTools/appli/rescaleSlopeIntercept.bbs &" +new wx:CommandButton Box52 + set Box52.Label "Gaussian Smoothing" + +new std:ExecSystemCommand Box53 + +new std:StringSelect Box54 + set Box54.In0 "bbi creaMiniTools/appli/GaussianSmoothing.bbs &" + set Box54.In1 "start /b bbi creaMiniTools/appli/GaussianSmoothing.bbs &" + connect Box00.BoxChange Box04.BoxExecute connect Box02.BoxChange Box06.BoxExecute @@ -194,6 +203,9 @@ connect Box49.BoxChange Box50.BoxExecute connect Box51.Out Box50.In connect Box49.Widget Box19.Widget8 connect Box33.SystemType Box51.In +connect Box52.BoxChange Box53.BoxExecute +connect Box54.Out Box53.In +connect Box52.Widget Box19.Widget9 # Complex input ports -- 2.45.1 From 742d212516571cf369ec485a42b3909d9206b394 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 5 Aug 2016 13:43:05 +0200 Subject: [PATCH 03/16] #3002 CreaMiniTools Feature New Normal - GaussianSmoothing minitool --- .../bbs/appli/GaussianSmoothing.bbg | 60 ++++++++++--------- .../bbs/appli/GaussianSmoothing.bbs | 22 ++++--- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg index 328e34e..29aedb4 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbg @@ -9,7 +9,7 @@ DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE COMPLEXINPUTS:0 -BOXES:23 +BOXES:24 BOX vtk:LoadHola:Box00 ISEXEC:FALSE @@ -20,7 +20,7 @@ BOX creaMaracasVisu:ViewerNV:Box01 ISEXEC:FALSE 87.302159:3.501587:-900.000000 -132.877159:-6.498413:-900.000000 +147.942159:-6.498413:-900.000000 FIN_BOX BOX vtk:ImageGaussianSmooth:Box02 @@ -43,26 +43,16 @@ PORT WinTitle:"dddd" FIN_BOX BOX -wx:LayoutSplit:Box06 -ISEXEC:TRUE --46.343668:-115.304835:-900.000000 --0.768668:-125.304835:-900.000000 -PORT -Orientation:"H" -PORT -Proportion:"20" -FIN_BOX -BOX wx:LayoutLine:Box07 ISEXEC:FALSE -64.830355:-62.532264:-900.000000 --19.255355:-72.532264:-900.000000 +-7.270355:-72.532264:-900.000000 FIN_BOX BOX wx:InputText:Box08 ISEXEC:FALSE -205.898495:54.857777:-900.000000 --153.595252:44.857777:-900.000000 +-160.323495:44.857777:-900.000000 PORT In:"0.0" PORT @@ -92,7 +82,7 @@ BOX wx:LayoutLine:Box11 ISEXEC:FALSE -162.055732:14.971535:-900.000000 --116.480732:4.971535:-900.000000 +-104.495732:4.971535:-900.000000 PORT Orientation:"V" FIN_BOX @@ -114,13 +104,13 @@ BOX wx:LayoutTab:Box15 ISEXEC:FALSE -2.736825:-98.913281:-900.000000 -42.838175:-108.913281:-900.000000 +54.823175:-108.913281:-900.000000 FIN_BOX BOX wx:LayoutLine:Box16 ISEXEC:FALSE 91.923759:-16.903668:-900.000000 -137.498759:-26.903668:-900.000000 +149.483759:-26.903668:-900.000000 PORT WinTitle:"Image" FIN_BOX @@ -128,7 +118,7 @@ BOX wx:LayoutLine:Box17 ISEXEC:FALSE 23.058759:-18.153994:-900.000000 -68.633759:-28.153994:-900.000000 +80.618759:-28.153994:-900.000000 PORT WinTitle:"Image" FIN_BOX @@ -142,7 +132,7 @@ BOX wx:LayoutTab:Box20 ISEXEC:FALSE 8.238559:-68.927404:-900.000000 -53.813559:-78.927404:-900.000000 +65.798559:-78.927404:-900.000000 PORT WinTitle:"Smooth" FIN_BOX @@ -158,7 +148,7 @@ BOX wx:LayoutLine:Box22 ISEXEC:FALSE -9.423107:-48.704012:-900.000000 -36.151893:-58.704012:-900.000000 +48.136893:-58.704012:-900.000000 PORT WinTitle:"Info" FIN_BOX @@ -172,7 +162,7 @@ BOX wx:LayoutLine:Box24 ISEXEC:FALSE 81.411313:-47.475134:-900.000000 -126.986313:-57.475134:-900.000000 +138.971313:-57.475134:-900.000000 PORT WinTitle:"Info" FIN_BOX @@ -182,6 +172,22 @@ ISEXEC:FALSE 48.798878:67.882239:-900.000000 119.973878:57.882239:-900.000000 FIN_BOX +BOX +creaVtk:OutputWindow:Box26 +ISEXEC:TRUE +-81.816548:-119.506270:-900.000000 +-36.241548:-129.506270:-900.000000 +FIN_BOX +BOX +wx:LayoutSplit:Box27 +ISEXEC:TRUE +-27.276582:-119.747179:-900.000000 +18.298418:-129.747179:-900.000000 +PORT +Orientation:"H" +PORT +Proportion:"20" +FIN_BOX CONNECTIONS:31 CONNECTION Box03:Out:Box01:In @@ -193,9 +199,6 @@ CONNECTION Box02:Out:Box05:In NumberOfControlPoints:0 CONNECTION -Box07:Widget:Box06:Widget1 -NumberOfControlPoints:0 -CONNECTION Box08:Widget:Box11:Widget1 NumberOfControlPoints:0 CONNECTION @@ -214,9 +217,6 @@ CONNECTION Box14:Widget:Box07:Widget3 NumberOfControlPoints:0 CONNECTION -Box15:Widget:Box06:Widget2 -NumberOfControlPoints:0 -CONNECTION Box05:Widget:Box17:Widget1 NumberOfControlPoints:0 CONNECTION @@ -276,4 +276,10 @@ NumberOfControlPoints:0 CONNECTION Box25:FileName:Box23:FileName NumberOfControlPoints:0 +CONNECTION +Box15:Widget:Box27:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box07:Widget:Box27:Widget1 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs index 47bc54b..a737748 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/GaussianSmoothing.bbs @@ -13,6 +13,7 @@ include creaMaracasVisu include wx include toolsbbtk include creaImageIO +include creaVtk author "Author ??" description "Description ??" @@ -29,10 +30,6 @@ new vtk:vtkImageDataPointerRelay Box03 new creaMaracasVisu:ViewerNV Box05 set Box05.WinTitle "dddd" -new wx:LayoutSplit Box06 - set Box06.Orientation "H" - set Box06.Proportion "20" - new wx:LayoutLine Box07 new wx:InputText Box08 @@ -81,6 +78,12 @@ new wx:LayoutLine Box24 new creaImageIO:ImagesChooserDialogBox Box25 +new creaVtk:OutputWindow Box26 + +new wx:LayoutSplit Box27 + set Box27.Orientation "H" + set Box27.Proportion "20" + connect Box03.Out Box01.In @@ -88,8 +91,6 @@ connect Box03.Out Box02.In connect Box02.Out Box05.In -connect Box07.Widget Box06.Widget1 - connect Box08.Widget Box11.Widget1 connect Box09.Widget Box11.Widget2 @@ -102,8 +103,6 @@ connect Box11.Widget Box07.Widget1 connect Box14.Widget Box07.Widget3 -connect Box15.Widget Box06.Widget2 - connect Box05.Widget Box17.Widget1 connect Box01.Widget Box16.Widget1 @@ -144,7 +143,12 @@ connect Box03.Out Box23.in connect Box25.FileName Box23.FileName +connect Box15.Widget Box27.Widget2 + +connect Box07.Widget Box27.Widget1 + # Complex input ports -exec Box06 +exec Box26 +exec Box27 -- 2.45.1 From 98ea97de822e11c7e8c3f35f6b37d401717ec181 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Mon, 22 Aug 2016 16:25:48 +0200 Subject: [PATCH 04/16] #3010 CreaMiniTools Feature New Normal - Interpolate option in box ViewerNV --- .../bbs/appli/PlaneViewer-MHD.bbg | 27 ++++++++++++++++-- .../bbs/appli/PlaneViewer-MHD.bbs | 11 ++++++++ .../bbs/appli/rescaleSlopeIntercept.bbg | 6 ++-- .../bbs/appli/rescaleSlopeIntercept.bbs | 1 - .../bbs/appli/viewerNVExample.bbg | 28 +++++++++---------- .../bbs/appli/viewerNVExample.bbs | 1 - .../boxes/LayerCol-VolRend-SurRend_Widget.bbg | 26 ++++++++--------- 7 files changed, 63 insertions(+), 37 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbg b/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbg index 6d8098f..f994626 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbg @@ -9,7 +9,7 @@ DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE COMPLEXINPUTS:0 -BOXES:44 +BOXES:45 BOX wx:FileSelector:Box00 ISEXEC:FALSE @@ -24,7 +24,7 @@ BOX creaMaracasVisu:ViewerNV:Box01 ISEXEC:FALSE 7.570031:-144.814069:-900.000000 -68.210031:-154.814069:-900.000000 +71.290031:-154.814069:-900.000000 PORT nTypeView:"-1" FIN_BOX @@ -368,7 +368,19 @@ ISEXEC:FALSE PORT In2:" " FIN_BOX -CONNECTIONS:74 +BOX +wx:CheckBox:Box67 +ISEXEC:FALSE +-215.927321:-40.663198:-900.000000 +-170.352321:-50.663198:-900.000000 +PORT +In:"true" +PORT +ReactiveOnKeystroke:"true" +PORT +Title:"Interpolate" +FIN_BOX +CONNECTIONS:77 CONNECTION Box02:Out:Box01:In NumberOfControlPoints:0 @@ -591,4 +603,13 @@ NumberOfControlPoints:0 CONNECTION Box65:Out:Box32:lstTransparenceBoundaries NumberOfControlPoints:0 +CONNECTION +Box67:Widget:Box42:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box01:Interpolate +NumberOfControlPoints:0 +CONNECTION +Box67:BoxChange:Box29:In6 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbs b/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbs index 3e655c8..13a108b 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbs @@ -155,6 +155,11 @@ new creaMaracasVisu:SliderMinMax-flexible Box68 new std:ConcatStrings Box65 set Box65.In2 " " +new wx:CheckBox Box67 + set Box67.In "true" + set Box67.ReactiveOnKeystroke "true" + set Box67.Title "Interpolate" + connect Box02.Out Box01.In @@ -304,6 +309,12 @@ connect Box68.outstart Box65.In1 connect Box65.Out Box32.lstTransparenceBoundaries +connect Box67.Widget Box42.Widget3 + +connect Box67.Out Box01.Interpolate + +connect Box67.BoxChange Box29.In6 + # Complex input ports diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbg b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbg index 8dfdca0..b2aa2ad 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbg @@ -39,8 +39,6 @@ creaMaracasVisu:ViewerNV:Box04 ISEXEC:FALSE 38.227720:-45.888872:-900.000000 98.867720:-55.888872:-900.000000 -PORT -nTypeView:"6 1 2 0" FIN_BOX BOX wx:LayoutSplit:Box05 @@ -54,13 +52,13 @@ BOX wx:LayoutTab:Box06 ISEXEC:FALSE -39.979714:-66.072124:-900.000000 -17.580286:-76.072124:-900.000000 +5.595286:-76.072124:-900.000000 FIN_BOX BOX wx:LayoutLine:Box07 ISEXEC:FALSE -26.720894:-44.371641:-900.000000 -30.839106:-54.371641:-900.000000 +18.854106:-54.371641:-900.000000 PORT WinTitle:"Rescale Reslope" FIN_BOX diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbs b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbs index f45872b..ac10834 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbs @@ -27,7 +27,6 @@ new vtk:LoadHola Box02 new vtk:vtkImageDataPointerRelay Box03 new creaMaracasVisu:ViewerNV Box04 - set Box04.nTypeView "6 1 2 0" new wx:LayoutSplit Box05 set Box05.Orientation "H" diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg index 9c6c102..36891d1 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg @@ -20,9 +20,7 @@ BOX creaMaracasVisu:ViewerNV:Box01 ISEXEC:FALSE 92.878707:104.248747:-900.000000 -153.518707:94.248747:-900.000000 -PORT -nTypeView:"6 1 2 0" +138.453707:94.248747:-900.000000 FIN_BOX BOX toolsbbtk:ImageVtkPropertiesWidget:Box04 @@ -34,7 +32,7 @@ BOX wx:LayoutTab:Box05 ISEXEC:FALSE 17.115805:9.090075:-900.000000 -74.675805:-0.909925:-900.000000 +62.690805:-0.909925:-900.000000 PORT WinHide:"800" PORT @@ -64,13 +62,13 @@ BOX wx:LayoutTab:Box11 ISEXEC:FALSE -119.524604:-326.768067:-900.000000 --61.964604:-336.768067:-900.000000 +-73.949604:-336.768067:-900.000000 FIN_BOX BOX wx:LayoutLine:Box14 ISEXEC:FALSE --107.476803:-88.313588:-900.000000 --49.916803:-98.313588:-900.000000 +-124.941177:-104.054489:-900.000000 +-67.381177:-114.054489:-900.000000 PORT Orientation:"H" FIN_BOX @@ -164,7 +162,7 @@ BOX wx:LayoutTab:Box36 ISEXEC:FALSE 85.590716:-276.693831:-900.000000 -143.150716:-286.693831:-900.000000 +131.165716:-286.693831:-900.000000 FIN_BOX BOX std:MultipleInputs:Box50 @@ -176,7 +174,7 @@ BOX wx:LayoutLine:Box57 ISEXEC:FALSE -147.527923:-145.339995:-900.000000 --89.967923:-155.339995:-900.000000 +-101.952923:-155.339995:-900.000000 PORT WinTitle:"Layer" FIN_BOX @@ -198,13 +196,13 @@ BOX creaMaracasVisu:Measure3DLength_Widget:Box74 ISEXEC:FALSE -274.335219:-145.856647:-900.000000 --203.160219:-155.856647:-900.000000 +-196.272398:-155.856647:-900.000000 FIN_BOX BOX wx:LayoutLine:Box75 ISEXEC:FALSE -152.976375:-295.546787:-900.000000 --95.416375:-305.546787:-900.000000 +-107.401375:-305.546787:-900.000000 PORT WinTitle:"Tools" FIN_BOX @@ -279,8 +277,8 @@ FIN_BOX BOX wx:LayoutLine:Box81 ISEXEC:FALSE --115.952612:-113.323200:-900.000000 --58.392612:-123.323200:-900.000000 +-104.510538:-132.482021:-900.000000 +-46.950538:-142.482021:-900.000000 PORT Orientation:"V" FIN_BOX @@ -297,8 +295,8 @@ FIN_BOX BOX std:MathOperationVector:Box87 ISEXEC:FALSE --152.877707:-84.484955:-900.000000 --81.702707:-94.484955:-900.000000 +-136.645928:-73.308976:-900.000000 +-65.470928:-83.308976:-900.000000 FIN_BOX BOX creaMiniTools:crop-viewer-widget:Box88 diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs index b6d8886..96439bb 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs @@ -24,7 +24,6 @@ category "" new creaImageIO:ImagesChooserDialogBox Box00 new creaMaracasVisu:ViewerNV Box01 - set Box01.nTypeView "6 1 2 0" new toolsbbtk:ImageVtkPropertiesWidget Box04 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 c811098..0d08547 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg @@ -18,7 +18,7 @@ FIN_COMPLEX_PORT COMPLEXINPUTS:5 COMPLEX_PORT Rederer3D --69.799718:220.214310:-900.000000 +-6.791163:282.884110:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT vtkbaseview1 @@ -41,7 +41,7 @@ BOX wx:LayoutLine:Box06 ISEXEC:FALSE -281.340411:-127.155729:-900.000000 --201.065896:-137.155729:-900.000000 +-223.780411:-137.155729:-900.000000 PORT WinTitle:"Superpose" FIN_BOX @@ -81,7 +81,7 @@ BOX vtk:VolumeRenderer:Box32 ISEXEC:FALSE -231.930975:39.582988:-900.000000 --186.355975:29.582988:-900.000000 +-176.952438:29.582988:-900.000000 FIN_BOX BOX creaMaracasVisu:TransferFunctionView:Box33 @@ -121,7 +121,7 @@ BOX wx:LayoutTab:Box27 ISEXEC:FALSE -408.503358:68.807042:-900.000000 --242.642464:58.807042:-900.000000 +-350.943358: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 --190.262536:-58.711503:-900.000000 +-191.175549:-58.711503:-900.000000 FIN_BOX BOX wx:LayoutLine:Box30 ISEXEC:FALSE -244.163542:-28.541590:-900.000000 --188.953038:-38.541590:-900.000000 +-186.603542:-38.541590:-900.000000 PORT WinTitle:"Volume Rendering" FIN_BOX @@ -155,7 +155,7 @@ BOX wx:LayoutLine:Box37 ISEXEC:FALSE -121.404862:47.404626:-900.000000 --75.829862:37.404626:-900.000000 +-63.844862: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 --242.181461:-38.597979:-900.000000 +-352.738696:-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 --189.280412:-199.914313:-900.000000 +-188.359128:-199.914313:-900.000000 FIN_BOX BOX wx:LayoutSplit:Box41 ISEXEC:FALSE -336.519542:-218.920349:-900.000000 --237.551497:-228.920349:-900.000000 +-290.944542:-228.920349:-900.000000 PORT Proportion:"10" PORT @@ -187,7 +187,7 @@ BOX wx:LayoutLine:Box43 ISEXEC:FALSE -225.050510:-146.533489:-900.000000 --179.475510:-156.533489:-900.000000 +-167.490510:-156.533489:-900.000000 PORT WinTitle:"Viewer" FIN_BOX @@ -255,7 +255,7 @@ BOX wx:LayoutLine:Box55 ISEXEC:FALSE -201.484471:-169.361130:-900.000000 --155.909471:-179.361130:-900.000000 +-130.811069:-179.361130:-900.000000 PORT WinTitle:"Image Properties" FIN_BOX @@ -275,7 +275,7 @@ BOX creaMaracasVisu:ImageChangeInformation:Box59 ISEXEC:FALSE -437.948998:7.260499:-900.000000 --295.256326:-2.739501:-900.000000 +-366.773998:-2.739501:-900.000000 FIN_BOX BOX creaMaracasVisu:SliderMinMax-flexible:Box60 -- 2.45.1 From c45c627c63e468220bf99a677453b94d6a41cf25 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 25 Jan 2017 15:33:06 +0100 Subject: [PATCH 05/16] #3060 CreaMiniTools Bug New Normal - application rescaleSlopeIntercept not saving --- .../bbs/appli/rescaleSlopeIntercept.bbg | 4 +++- .../bbs/appli/rescaleSlopeIntercept.bbs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbg b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbg index b2aa2ad..cd96a0e 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbg @@ -38,7 +38,7 @@ BOX creaMaracasVisu:ViewerNV:Box04 ISEXEC:FALSE 38.227720:-45.888872:-900.000000 -98.867720:-55.888872:-900.000000 +83.802720:-55.888872:-900.000000 FIN_BOX BOX wx:LayoutSplit:Box05 @@ -87,6 +87,8 @@ wx:FileSelector:Box11 ISEXEC:FALSE -116.423479:6.820846:-900.000000 -70.848479:-3.179154:-900.000000 +PORT +OpenSave:"Save" FIN_BOX BOX creaImageIO:ImagesChooserDialogBox:Box12 diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbs b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbs index ac10834..58ac265 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept.bbs @@ -44,6 +44,7 @@ new wx:CommandButton Box09 new vtk:MetaImageWriter Box10 new wx:FileSelector Box11 + set Box11.OpenSave "Save" new creaImageIO:ImagesChooserDialogBox Box12 -- 2.45.1 From 080c44f5065f1ca512e8b20a065460c4fffd9c7b Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 8 Mar 2017 10:10:44 +0100 Subject: [PATCH 06/16] #3071 CreaMiniTools Feature New Normal - imageWriterExample with compress option --- .../bbs/appli/imageWriterExample.bbg | 107 +++++++++--------- .../bbs/appli/imageWriterExample.bbs | 75 ++++++------ 2 files changed, 92 insertions(+), 90 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg index 33f4112..4882f76 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg @@ -1,31 +1,6 @@ -# --------------------------------------------------------------------- -# -# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image -# pour la Sant�) -# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton -# Previous Authors : Laurent Guigues, Jean-Pierre Roux -# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil -# -# This software is governed by the CeCILL-B license under French law and -# abiding by the rules of distribution of free software. You can use, -# modify and/ or redistribute the software under the terms of the CeCILL-B -# license as circulated by CEA, CNRS and INRIA at the following URL -# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -# or in the file LICENSE.txt. -# -# As a counterpart to the access to the source code and rights to copy, -# modify and redistribute granted by the license, users are provided only -# with a limited warranty and the software's author, the holder of the -# economic rights, and the successive licensors have only limited -# liability. -# -# The fact that you are presently reading this means that you have had -# knowledge of the CeCILL-B license and that you accept its terms. -# ------------------------------------------------------------------------ */ - # ---------------------------------- -# - BBTKGEditor v 1.2 BBG BlackBox Diagram file -# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - imageWriterExample.bbg # ---------------------------------- APP_START @@ -33,66 +8,96 @@ CATEGORY: DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE -BOXES:6 +COMPLEXINPUTS:0 +BOXES:8 BOX creaMaracasVisu:ViewerNV:Box03 ISEXEC:FALSE --159.764780:-74.219971:900.000000 --99.124780:-84.219971:900.000000 +-185.327943:-125.175111:-900.000000 +-121.607943:-135.175111:-900.000000 FIN_BOX BOX wx:CommandButton:Box04 ISEXEC:FALSE --95.329914:-74.231573:900.000000 --49.754914:-84.231573:900.000000 +-69.455010:-65.415192:-900.000000 +-23.880010:-75.415192:-900.000000 PORT Label:"Save (Don't forget the .mhd extension)" FIN_BOX BOX -vtk:MetaImageWriter:Box05 -ISEXEC:FALSE --35.097719:-95.671739:900.000000 -10.477281:-105.671739:900.000000 -FIN_BOX -BOX wx:FileSelector:Box06 ISEXEC:FALSE --30.178752:-7.811228:900.000000 -15.396248:-17.811228:900.000000 +6.439330:-92.051790:-900.000000 +52.014330:-102.051790:-900.000000 +PORT +BoxProcessMode:"Reactive" PORT OpenSave:"Save" FIN_BOX BOX wx:LayoutSplit:Box07 ISEXEC:TRUE --121.909835:-116.219850:900.000000 --76.334835:-126.219850:900.000000 +-146.313579:-155.057860:-900.000000 +-100.738579:-165.057860:-900.000000 PORT Proportion:85 FIN_BOX BOX creaImageIO:ImagesChooserDialogBox:Box08 ISEXEC:FALSE --120.270447:-8.863698:900.000000 --49.095447:-18.863698:900.000000 +-120.270447:-8.863698:-900.000000 +-49.095447:-18.863698:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box10 +ISEXEC:FALSE +-105.460953:-125.904811:-900.000000 +-47.900953:-135.904811:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:CheckBox:Box11 +ISEXEC:FALSE +-125.763804:-66.183727:-900.000000 +-80.188804:-76.183727:-900.000000 +PORT +In:"false" +PORT +Title:"Compress" FIN_BOX -CONNECTIONS:6 +BOX +vtk:MetaImageWriter:Box12 +ISEXEC:FALSE +2.747871:-134.098369:-900.000000 +48.322871:-144.098369:-900.000000 +FIN_BOX +CONNECTIONS:9 CONNECTION -Box06:Out:Box05:Filename +Box03:Widget:Box07:Widget1 NumberOfControlPoints:0 CONNECTION -Box03:Widget:Box07:Widget1 +Box08:Out:Box03:In NumberOfControlPoints:0 CONNECTION -Box04:Widget:Box07:Widget2 +Box04:Widget:Box10:Widget2 NumberOfControlPoints:0 CONNECTION -Box04:BoxChange:Box05:BoxExecute +Box10:Widget:Box07:Widget2 NumberOfControlPoints:0 CONNECTION -Box08:Out:Box03:In +Box11:Widget:Box10:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box12:Filename +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box12:In +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box12:Compression NumberOfControlPoints:0 CONNECTION -Box08:Out:Box05:In +Box04:BoxChange:Box12:BoxExecute NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs index d9b5383..4a2ec8b 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs @@ -1,31 +1,6 @@ -# --------------------------------------------------------------------- -# -# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image -# pour la Sant�) -# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton -# Previous Authors : Laurent Guigues, Jean-Pierre Roux -# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil -# -# This software is governed by the CeCILL-B license under French law and -# abiding by the rules of distribution of free software. You can use, -# modify and/ or redistribute the software under the terms of the CeCILL-B -# license as circulated by CEA, CNRS and INRIA at the following URL -# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -# or in the file LICENSE.txt. -# -# As a counterpart to the access to the source code and rights to copy, -# modify and redistribute granted by the license, users are provided only -# with a limited warranty and the software's author, the holder of the -# economic rights, and the successive licensors have only limited -# liability. -# -# The fact that you are presently reading this means that you have had -# knowledge of the CeCILL-B license and that you accept its terms. -# ------------------------------------------------------------------------ */ - # ---------------------------------- -# - BBTKGEditor v 1.2 BBS BlackBox Script -# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - imageWriterExample.bbs # ---------------------------------- # BBTK GEditor Script @@ -35,34 +10,56 @@ include std include itkvtk include creaMaracasVisu include wx -include vtk include creaImageIO +include vtk author "Author ??" description "Description ??" category "" -new ViewerNV Box03 +new creaMaracasVisu:ViewerNV Box03 -new CommandButton Box04 +new wx:CommandButton Box04 set Box04.Label "Save (Don't forget the .mhd extension)" -new MetaImageWriter Box05 - -new FileSelector Box06 +new wx:FileSelector Box06 + set Box06.BoxProcessMode "Reactive" set Box06.OpenSave "Save" -new LayoutSplit Box07 +new wx:LayoutSplit Box07 set Box07.Proportion 85 -new ImagesChooserDialogBox Box08 +new creaImageIO:ImagesChooserDialogBox Box08 + +new wx:LayoutLine Box10 + set Box10.Orientation "H" + +new wx:CheckBox Box11 + set Box11.In "false" + set Box11.Title "Compress" + +new vtk:MetaImageWriter Box12 -connect Box06.Out Box05.Filename connect Box03.Widget Box07.Widget1 -connect Box04.Widget Box07.Widget2 -connect Box04.BoxChange Box05.BoxExecute + connect Box08.Out Box03.In -connect Box08.Out Box05.In +connect Box04.Widget Box10.Widget2 + +connect Box10.Widget Box07.Widget2 + +connect Box11.Widget Box10.Widget1 + +connect Box06.Out Box12.Filename + +connect Box08.Out Box12.In + +connect Box11.Out Box12.Compression + +connect Box04.BoxChange Box12.BoxExecute + + + +# Complex input ports exec Box07 -- 2.45.1 From e1123dc9797b44ee616137e6a297335e3d016f92 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 17 Mar 2017 10:52:40 +0100 Subject: [PATCH 07/16] #3077 CreaMiniTools Bug New Normal - message documentation in boxes --- .../bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs | 1 - .../bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs | 1 - bbtk_package_creaMiniTools/bbs/boxes/MHDFileInfo_widget.bbs | 1 - bbtk_package_creaMiniTools/bbs/boxes/ViewerPlaneMHD.bbs | 1 - bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbs | 1 - .../bbs/boxes/crop-viewer-widget-manual.bbs | 1 - bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs | 1 - bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs | 1 - bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbs | 1 - 9 files changed, 9 deletions(-) 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 index bf3cf4f..0d1722f 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs @@ -78,6 +78,5 @@ 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.bbs b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs index 0dc05f2..0a193bd 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs @@ -196,6 +196,5 @@ input title Box41.WinTitle " " # Complex output ports output widgetLayer Box41.Widget " " -message endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/MHDFileInfo_widget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/MHDFileInfo_widget.bbs index 899a3aa..f67fd10 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/MHDFileInfo_widget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/MHDFileInfo_widget.bbs @@ -58,6 +58,5 @@ input boxExecute Box16.BoxExecute " " # Complex output ports output widget Box16.Widget " " -message endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/ViewerPlaneMHD.bbs b/bbtk_package_creaMiniTools/bbs/boxes/ViewerPlaneMHD.bbs index 9283aa2..028e991 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/ViewerPlaneMHD.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/ViewerPlaneMHD.bbs @@ -83,6 +83,5 @@ input TypeDirection Box15.In " " # Complex output ports output widget Box28.Widget " " -message endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbs index 5ef9f7c..584af2b 100755 --- a/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/commandMenu.bbs @@ -155,6 +155,5 @@ connect Box33.Out Box34.In1 # Complex output ports output CommandMenu Layout.Widget " " -message endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs index a813620..303755e 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs @@ -96,6 +96,5 @@ input _execute Box15.In1 " " # Complex output ports output wxwidget Box53.Widget " " -message endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs index ea159d6..88db272 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs @@ -107,6 +107,5 @@ input image Box22.In " " # Complex output ports output widget Box32.Widget " " -message endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs index 081cd6b..331d5a4 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs @@ -212,7 +212,6 @@ connect Box52.Widget Box19.Widget9 # Complex output ports output widget Box15.Widget " " -message exec Box15 endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbs index e7133ba..dda4792 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/maxiToolsMenu.bbs @@ -69,6 +69,5 @@ connect Box18.Out Box15.In # Complex output ports output widget Box16.Widget " " -message endefine -- 2.45.1 From ae301d6543401e6427fc2d97d9f93f1888907eb3 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 17 Mar 2017 10:59:22 +0100 Subject: [PATCH 08/16] #3077 CreaMiniTools Bug New Normal - message documentation in boxes --- bbtk_package_creaMiniToolsBase/bbs/boxes/registrationMenu.bbs | 1 - .../bbs/boxes/rescaleSlopeInterceptMenu.bbs | 1 - 2 files changed, 2 deletions(-) diff --git a/bbtk_package_creaMiniToolsBase/bbs/boxes/registrationMenu.bbs b/bbtk_package_creaMiniToolsBase/bbs/boxes/registrationMenu.bbs index c68e7f5..2370d5d 100644 --- a/bbtk_package_creaMiniToolsBase/bbs/boxes/registrationMenu.bbs +++ b/bbtk_package_creaMiniToolsBase/bbs/boxes/registrationMenu.bbs @@ -108,6 +108,5 @@ connect Box23.Out Box07.In # Complex output ports output widget Box15.Widget " " -message endefine diff --git a/bbtk_package_creaMiniToolsBase/bbs/boxes/rescaleSlopeInterceptMenu.bbs b/bbtk_package_creaMiniToolsBase/bbs/boxes/rescaleSlopeInterceptMenu.bbs index 42cc92d..2886d2e 100644 --- a/bbtk_package_creaMiniToolsBase/bbs/boxes/rescaleSlopeInterceptMenu.bbs +++ b/bbtk_package_creaMiniToolsBase/bbs/boxes/rescaleSlopeInterceptMenu.bbs @@ -83,6 +83,5 @@ connect Box13.Out Box07.In # Complex output ports output widget Box09.Widget " " -message endefine -- 2.45.1 From 89797390ac16e9c7a047d9bb03b0aa6359bdb66a Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 12 Jul 2017 08:43:14 +0200 Subject: [PATCH 09/16] #3101 CreaMiniTools Feature New Normal - ImageTools Refresh --- .../bbs/appli/ImageTool.bbg | 24 ++++++++++--------- .../bbs/appli/ImageTool.bbs | 1 + 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg index 8d594bb..7969d28 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg @@ -14,7 +14,7 @@ BOX creaMaracasVisu:ViewerNV:viewer ISEXEC:FALSE -191.409958:28.046477:-900.000000 --130.769958:18.046477:-900.000000 +-127.689958:18.046477:-900.000000 PORT nTypeView:"5 1 2 0" FIN_BOX @@ -22,7 +22,7 @@ BOX creaMaracasVisu:ShowNPoints:showNpoints ISEXEC:FALSE -146.394252:-3.709677:-900.000000 --98.074252:-13.709677:-900.000000 +-100.819252:-13.709677:-900.000000 PORT Radio:"10" PORT @@ -62,7 +62,7 @@ BOX wx:LayoutTab:Box12 ISEXEC:FALSE 51.808241:-277.901790:-900.000000 -109.368241:-287.901790:-900.000000 +97.383241:-287.901790:-900.000000 PORT WinTitle:Filters FIN_BOX @@ -70,7 +70,7 @@ BOX wx:LayoutTab:Box13 ISEXEC:FALSE 25.025304:-307.420578:-900.000000 -82.585304:-317.420578:-900.000000 +70.600304:-317.420578:-900.000000 FIN_BOX BOX toolsbbtk:SaveMHD-Button:Box21 @@ -94,7 +94,7 @@ BOX wx:LayoutLine:Box18 ISEXEC:FALSE -157.480851:-29.691282:-900.000000 --99.920851:-39.691282:-900.000000 +-111.905851:-39.691282:-900.000000 PORT WinTitle:"show N-Points" FIN_BOX @@ -102,7 +102,7 @@ BOX wx:LayoutLine:Box19 ISEXEC:FALSE -125.693371:-52.080329:-900.000000 --68.133371:-62.080329:-900.000000 +-80.118371:-62.080329:-900.000000 PORT WinTitle:"Save MHD" FIN_BOX @@ -110,7 +110,7 @@ BOX wx:LayoutLine:Box20 ISEXEC:FALSE -373.889781:-114.690466:-900.000000 --316.329781:-124.690466:-900.000000 +-328.314781:-124.690466:-900.000000 PORT WinTitle:"Layers" FIN_BOX @@ -118,7 +118,7 @@ BOX wx:LayoutLine:Box23 ISEXEC:FALSE -94.484830:-201.968967:-900.000000 --36.924830:-211.968967:-900.000000 +-48.909830:-211.968967:-900.000000 PORT Orientation:H PORT @@ -158,7 +158,7 @@ BOX wx:LayoutTab:Box29 ISEXEC:FALSE -372.469828:-95.544664:-900.000000 --314.909828:-105.544664:-900.000000 +-326.894828:-105.544664:-900.000000 FIN_BOX BOX creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box30 @@ -180,7 +180,7 @@ BOX wx:LayoutLine:Box32 ISEXEC:FALSE -370.565590:-78.671647:-900.000000 --313.005590:-88.671647:-900.000000 +-324.990590:-88.671647:-900.000000 PORT WinTitle:"Layer-Base" FIN_BOX @@ -188,7 +188,7 @@ BOX wx:LayoutTab:Box33 ISEXEC:FALSE -366.766856:-142.939770:-900.000000 --309.206856:-152.939770:-900.000000 +-321.191856:-152.939770:-900.000000 PORT WinTitle:"Superpose" FIN_BOX @@ -211,6 +211,8 @@ ISEXEC:TRUE 200.306901:-348.273293:-900.000000 PORT Orientation:"H" +PORT +WinTitle:"ImageTool.bbg" FIN_BOX CONNECTIONS:66 CONNECTION diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs index 8382235..b9a04c9 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs @@ -92,6 +92,7 @@ new creaVtk:OutputWindow Box36 new wx:LayoutSplit Box37 set Box37.Orientation "H" + set Box37.WinTitle "ImageTool.bbg" connect viewer.Renderer1 showNpoints.Renderer -- 2.45.1 From 1796fe4f0e49ec52c37d831d1882f137ff4649cf Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 15 Dec 2017 11:51:31 +0100 Subject: [PATCH 10/16] #3160 CreaTools Bug New Normal Link documentation site creatis --- .../bbs/boxes/helpMenu.bbg | 64 ++++++------------- .../bbs/boxes/helpMenu.bbs | 48 ++++---------- 2 files changed, 30 insertions(+), 82 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbg index 6603a9f..f1ec2dc 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbg @@ -1,31 +1,6 @@ -# --------------------------------------------------------------------- -# -# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image -# pour la Sant�) -# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton -# Previous Authors : Laurent Guigues, Jean-Pierre Roux -# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil -# -# This software is governed by the CeCILL-B license under French law and -# abiding by the rules of distribution of free software. You can use, -# modify and/ or redistribute the software under the terms of the CeCILL-B -# license as circulated by CEA, CNRS and INRIA at the following URL -# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -# or in the file LICENSE.txt. -# -# As a counterpart to the access to the source code and rights to copy, -# modify and redistribute granted by the license, users are provided only -# with a limited warranty and the software's author, the holder of the -# economic rights, and the successive licensors have only limited -# liability. -# -# The fact that you are presently reading this means that you have had -# knowledge of the CeCILL-B license and that you accept its terms. -# ------------------------------------------------------------------------ */ - # ---------------------------------- -# - BBTKGEditor v 1.2 BBG BlackBox Diagram file -# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbg +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - E:\creatis\creaToolsCompilation4\creatools_sources\creaMiniTools\bbtk_package_creaMiniTools\bbs\boxes\helpMenu.bbg # ---------------------------------- APP_START @@ -35,59 +10,55 @@ AUTHOR:Author ?? COMPLEXBOX:TRUE COMPLEXBOXNAME:helpMenu PACKAGENAME:creaMiniTools -COMPLEXINPUTS:0 COMPLEXOUTPUTS:1 COMPLEX_PORT widget --51.964761:24.988519:900.000000 +-29.997325:-75.374273:-900.000000 FIN_COMPLEX_PORT +COMPLEXINPUTS:0 BOXES:5 BOX wx:LayoutLine:Box01 ISEXEC:FALSE --55.015871:52.169510:900.000000 -2.544129:42.169510:900.000000 +-30.838183:-32.999531:-900.000000 +26.721817:-42.999531:-900.000000 PORT WinTitle:"Help" FIN_BOX BOX wx:LaunchBrowser:Box02 ISEXEC:FALSE --41.013084:77.943418:900.000000 -4.561916:67.943418:900.000000 +-106.167637:16.254599:-900.000000 +-60.592637:6.254599:-900.000000 PORT -In:"www.creatis.insa-lyon.fr/site/en/CreaToolsGettingStarted" +In:"www.creatis.insa-lyon.fr/site7/en/CreatoolsDocumentation" FIN_BOX BOX wx:CommandButton:Box03 ISEXEC:FALSE --51.405540:98.357171:900.000000 --5.830540:88.357171:900.000000 +-80.487658:88.020603:-900.000000 +-34.912658:78.020603:-900.000000 PORT Label:"www.creatis.insa-lyon.fr/site/creatools -> Documentation -> Getting started" FIN_BOX BOX wx:CommandButton:Box04 ISEXEC:FALSE --114.436058:135.165171:900.000000 --68.861058:125.165171:900.000000 +57.274733:66.963676:-900.000000 +102.849733:56.963676:-900.000000 PORT Label:"creaTools Web Site - www.creatis.insa-lyon.fr/site/creatools" FIN_BOX BOX wx:LaunchBrowser:Box05 ISEXEC:FALSE --144.535865:114.152098:900.000000 --98.960865:104.152098:900.000000 +45.948893:22.778112:-900.000000 +91.523893:12.778112:-900.000000 PORT -In:"www.creatis.insa-lyon.fr" -In:"www.creatis.insa-lyon.fr/site/fr/creatools_accueil" +In:"http&&2P&&//www.creatis.insa-lyon.fr/site7/fr/creatools_accueil" FIN_BOX CONNECTIONS:5 CONNECTION -Box01:Widget:widget:widget -NumberOfControlPoints:0 -CONNECTION Box03:BoxChange:Box02:BoxExecute NumberOfControlPoints:0 CONNECTION @@ -99,4 +70,7 @@ NumberOfControlPoints:0 CONNECTION Box04:Widget:Box01:Widget1 NumberOfControlPoints:0 +CONNECTION +Box01:Widget:widget:widget +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbs index f68ce09..cef7c8f 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbs @@ -1,31 +1,6 @@ -# --------------------------------------------------------------------- -# -# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image -# pour la Sant�) -# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton -# Previous Authors : Laurent Guigues, Jean-Pierre Roux -# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil -# -# This software is governed by the CeCILL-B license under French law and -# abiding by the rules of distribution of free software. You can use, -# modify and/ or redistribute the software under the terms of the CeCILL-B -# license as circulated by CEA, CNRS and INRIA at the following URL -# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -# or in the file LICENSE.txt. -# -# As a counterpart to the access to the source code and rights to copy, -# modify and redistribute granted by the license, users are provided only -# with a limited warranty and the software's author, the holder of the -# economic rights, and the successive licensors have only limited -# liability. -# -# The fact that you are presently reading this means that you have had -# knowledge of the CeCILL-B license and that you accept its terms. -# ------------------------------------------------------------------------ */ - # ---------------------------------- -# - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) -# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/helpMenu.bbs +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - E:\creatis\creaToolsCompilation4\creatools_sources\creaMiniTools\bbtk_package_creaMiniTools\bbs\boxes\helpMenu.bbs # ---------------------------------- include std @@ -39,32 +14,31 @@ description "Description ??" category "" -new LayoutLine Box01 +new wx:LayoutLine Box01 set Box01.WinTitle "Help" -new LaunchBrowser Box02 - set Box02.In "www.creatis.insa-lyon.fr/site/en/CreatoolsDocumentation" +new wx:LaunchBrowser Box02 + set Box02.In "www.creatis.insa-lyon.fr/site7/en/CreatoolsDocumentation" -new CommandButton Box03 +new wx:CommandButton Box03 set Box03.Label "www.creatis.insa-lyon.fr/site/creatools -> Documentation -> Getting started" -new CommandButton Box04 +new wx:CommandButton Box04 set Box04.Label "creaTools Web Site - www.creatis.insa-lyon.fr/site/creatools" - -new LaunchBrowser Box05 -// set Box05.In "www.creatis.insa-lyon.fr" - set Box05.In "http://www.creatis.insa-lyon.fr/site/fr/creatools_accueil" +new wx:LaunchBrowser Box05 + set Box05.In "http://www.creatis.insa-lyon.fr/site7/fr/creatools_accueil" + connect Box03.BoxChange Box02.BoxExecute connect Box04.BoxChange Box05.BoxExecute connect Box03.Widget Box01.Widget2 connect Box04.Widget Box01.Widget1 - # Complex input ports # Complex output ports output widget Box01.Widget " " + endefine -- 2.45.1 From c1277f42e034fe20c3e059557e36d6a80d89b363 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 20 Dec 2017 08:57:47 +0100 Subject: [PATCH 11/16] #2999 CreaMiniTools Feature New Normal - crop-viewer-widget-manaul --- bbtk_package_creaMiniTools/bbs/appli/Crop2.bbg | 8 +++----- bbtk_package_creaMiniTools/bbs/appli/Crop2.bbs | 3 +-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbg b/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbg index b087747..270c05f 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /home/davila/Borrame/eraseme/lea/Crop2.bbg +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbg # ---------------------------------- APP_START @@ -24,8 +24,6 @@ ISEXEC:FALSE PORT In:"0 0 0" PORT -ReactiveOnKeystroke:"true" -PORT Title:"Index" FIN_BOX BOX @@ -48,13 +46,13 @@ BOX wx:LayoutLine:Box09 ISEXEC:FALSE -50.792310:-102.076991:-900.000000 -6.767690:-112.076991:-900.000000 +-5.217310:-112.076991:-900.000000 FIN_BOX BOX creaMaracasVisu:ViewerNV:Box14 ISEXEC:FALSE -25.868073:-0.412952:-900.000000 -34.771927:-10.412952:-900.000000 +19.706927:-10.412952:-900.000000 PORT nTypeView:"6 1 2 0" FIN_BOX diff --git a/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbs b/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbs index d54476d..d966169 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /home/davila/Borrame/eraseme/lea/Crop2.bbs +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/Crop2.bbs # ---------------------------------- # BBTK GEditor Script @@ -22,7 +22,6 @@ new creaImageIO:ImagesChooserDialogBox Box00 new wx:InputText Box05 set Box05.In "0 0 0" - set Box05.ReactiveOnKeystroke "true" set Box05.Title "Index" new wx:InputText Box06 -- 2.45.1 From fc908e39abe786258949552f219607b93dc6c70e Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 12 Apr 2018 13:45:31 +0200 Subject: [PATCH 12/16] #3187 CreaMiniTools Feature New Normal - Viewer Vectors Tensors Fiels application in Creatools Menu --- .../bbs/appli/ViewerVectorsTensorsField.bbg | 63 ++++++++++++++++++ .../bbs/appli/ViewerVectorsTensorsField.bbs | 46 +++++++++++++ .../bbs/boxes/imageToolsMenu.bbg | 66 ++++++++++++++----- .../bbs/boxes/imageToolsMenu.bbs | 13 ++++ 4 files changed, 173 insertions(+), 15 deletions(-) create mode 100644 bbtk_package_creaMiniTools/bbs/appli/ViewerVectorsTensorsField.bbg create mode 100644 bbtk_package_creaMiniTools/bbs/appli/ViewerVectorsTensorsField.bbs diff --git a/bbtk_package_creaMiniTools/bbs/appli/ViewerVectorsTensorsField.bbg b/bbtk_package_creaMiniTools/bbs/appli/ViewerVectorsTensorsField.bbg new file mode 100644 index 0000000..c798dc9 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/ViewerVectorsTensorsField.bbg @@ -0,0 +1,63 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - ViewerVectorsTensorsField.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:5 +BOX +vtk:LoadHola:Box00 +ISEXEC:FALSE +-51.674623:72.744686:-900.000000 +-6.099623:62.744686:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box01 +ISEXEC:FALSE +-52.380882:46.848519:-900.000000 +-6.805882:36.848519:-900.000000 +PORT +nTypeView:"7" +FIN_BOX +BOX +wx:LayoutSplit:Box04 +ISEXEC:TRUE +-20.834643:-40.256768:-900.000000 +24.740357:-50.256768:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:LayoutTab:Box05 +ISEXEC:FALSE +-113.825423:-8.945948:-900.000000 +-68.250423:-18.945948:-900.000000 +FIN_BOX +BOX +creaVtk:VectorsTensors_manualread_Widget:Box06 +ISEXEC:FALSE +-116.179620:12.006404:-900.000000 +-45.004620:2.006404:-900.000000 +FIN_BOX +CONNECTIONS:5 +CONNECTION +Box01:Widget:Box04:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box05:Widget:Box04:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box01:Renderer1:Box06:vtkRenderer +NumberOfControlPoints:0 +CONNECTION +Box06:widget:Box05:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box01:In +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/ViewerVectorsTensorsField.bbs b/bbtk_package_creaMiniTools/bbs/appli/ViewerVectorsTensorsField.bbs new file mode 100644 index 0000000..48177a5 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/appli/ViewerVectorsTensorsField.bbs @@ -0,0 +1,46 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - ViewerVectorsTensorsField.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include creaMaracasVisu +include wx +include creaVtk + +author "Author ??" +description "Description ??" +category "" + +new vtk:LoadHola Box00 + +new creaMaracasVisu:ViewerNV Box01 + set Box01.nTypeView "7" + +new wx:LayoutSplit Box04 + set Box04.Orientation "H" + +new wx:LayoutTab Box05 + +new creaVtk:VectorsTensors_manualread_Widget Box06 + + +connect Box01.Widget Box04.Widget2 + +connect Box05.Widget Box04.Widget1 + +connect Box01.Renderer1 Box06.vtkRenderer + +connect Box06.widget Box05.Widget2 + +connect Box00.Out Box01.In + + + +# Complex input ports +exec Box04 diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg index 0f2eb91..ec7cc00 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg @@ -13,10 +13,10 @@ PACKAGENAME:creaMiniTools COMPLEXOUTPUTS:1 COMPLEX_PORT widget -44.851582:-144.043083:-900.000000 +51.353443:-197.683437:-900.000000 FIN_COMPLEX_PORT COMPLEXINPUTS:0 -BOXES:46 +BOXES:49 BOX wx:CommandButton:Box00 ISEXEC:FALSE @@ -90,28 +90,28 @@ FIN_BOX BOX wx:LayoutTab:Box15 ISEXEC:TRUE -45.636626:-121.678740:-900.000000 -103.196626:-131.678740:-900.000000 +56.202150:-172.068164:-900.000000 +113.762150:-182.068164:-900.000000 PORT WinTitle:"Images Tools" FIN_BOX BOX wx:LayoutLine:Box18 ISEXEC:FALSE --20.740612:-75.486382:-900.000000 -36.819388:-85.486382:-900.000000 +-11.800553:-125.875806:-900.000000 +45.759447:-135.875806:-900.000000 FIN_BOX BOX wx:LayoutLine:Box19 ISEXEC:FALSE -48.714952:-76.489431:-900.000000 -106.274952:-86.489431:-900.000000 +57.655011:-126.878855:-900.000000 +115.215011:-136.878855:-900.000000 FIN_BOX BOX creaMiniToolsBase:RegistrationMenu:Box20 ISEXEC:FALSE -112.128364:-75.511147:-900.000000 -157.703364:-85.511147:-900.000000 +121.068423:-125.900571:-900.000000 +166.643423:-135.900571:-900.000000 FIN_BOX BOX wx:CommandButton:Box22 @@ -144,16 +144,16 @@ FIN_BOX BOX wx:LayoutCenter:Box27 ISEXEC:FALSE --18.884409:-92.093007:-900.000000 -26.690591:-102.093007:-900.000000 +-9.944350:-142.482431:-900.000000 +35.630650:-152.482431:-900.000000 PORT WinTitle:"Viewers" FIN_BOX BOX wx:LayoutCenter:Box28 ISEXEC:FALSE -52.799068:-96.786568:-900.000000 -98.374068:-106.786568:-900.000000 +61.739127:-147.175992:-900.000000 +107.314127:-157.175992:-900.000000 PORT WinTitle:"Modify image" FIN_BOX @@ -377,7 +377,31 @@ In0:"bbi creaMiniTools/appli/GaussianSmoothing.bbs &" PORT In1:"start /b bbi creaMiniTools/appli/GaussianSmoothing.bbs &" FIN_BOX -CONNECTIONS:56 +BOX +wx:CommandButton:Box55 +ISEXEC:FALSE +-120.629330:-54.044110:-900.000000 +-75.054330:-64.044110:-900.000000 +PORT +Label:"Vectors / Tensors Viewer" +FIN_BOX +BOX +std:ExecSystemCommand:Box56 +ISEXEC:FALSE +-125.709049:-88.284638:-900.000000 +-54.534049:-98.284638:-900.000000 +FIN_BOX +BOX +std:StringSelect:Box57 +ISEXEC:FALSE +-114.387316:-72.247028:-900.000000 +-68.812316:-82.247028:-900.000000 +PORT +In0:"bbi creaMiniTools/appli/ViewerVectorsTensorsField.bbs &" +PORT +In1:"start /b bbi creaMiniTools/appli/ViewerVectorsTensorsField.bbs &" +FIN_BOX +CONNECTIONS:60 CONNECTION Box00:BoxChange:Box04:BoxExecute NumberOfControlPoints:0 @@ -546,4 +570,16 @@ NumberOfControlPoints:0 CONNECTION Box52:Widget:Box19:Widget9 NumberOfControlPoints:0 +CONNECTION +Box55:BoxChange:Box56:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box57:Out:Box56:In +NumberOfControlPoints:0 +CONNECTION +Box55:Widget:Box18:Widget5 +NumberOfControlPoints:0 +CONNECTION +Box33:SystemType:Box57:In +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs index 331d5a4..78874bf 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs @@ -150,6 +150,15 @@ new std:StringSelect Box54 set Box54.In0 "bbi creaMiniTools/appli/GaussianSmoothing.bbs &" set Box54.In1 "start /b bbi creaMiniTools/appli/GaussianSmoothing.bbs &" +new wx:CommandButton Box55 + set Box55.Label "Vectors / Tensors Viewer" + +new std:ExecSystemCommand Box56 + +new std:StringSelect Box57 + set Box57.In0 "bbi creaMiniTools/appli/ViewerVectorsTensorsField.bbs &" + set Box57.In1 "start /b bbi creaMiniTools/appli/ViewerVectorsTensorsField.bbs &" + connect Box00.BoxChange Box04.BoxExecute connect Box02.BoxChange Box06.BoxExecute @@ -206,6 +215,10 @@ connect Box33.SystemType Box51.In connect Box52.BoxChange Box53.BoxExecute connect Box54.Out Box53.In connect Box52.Widget Box19.Widget9 +connect Box55.BoxChange Box56.BoxExecute +connect Box57.Out Box56.In +connect Box55.Widget Box18.Widget5 +connect Box33.SystemType Box57.In # Complex input ports -- 2.45.1 From 341818031079611f7c3fa98b7ef475540371cb0e Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 13 Jun 2018 14:28:54 +0200 Subject: [PATCH 13/16] #3197 CreaMiniTools Feature New Normal - new complex box SlicesImages3D --- .../bbs/boxes/SlicesImages3D.bbg | 507 ++++++++++++++++++ .../bbs/boxes/SlicesImages3D.bbs | 186 +++++++ 2 files changed, 693 insertions(+) create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs diff --git a/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg new file mode 100644 index 0000000..f47ade6 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg @@ -0,0 +1,507 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:SlicesImages3D +PACKAGENAME:creaMiniTools +COMPLEXOUTPUTS:0 +COMPLEXINPUTS:9 +COMPLEX_PORT +InputImage +300.391931:141.598193:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +point +244.779928:146.776972:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +render +91.082517:140.960476:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxExecute +20.113410:138.317481:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +opacity +133.166018:138.788963:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +type +385.191792:139.933370:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +range +353.662546:140.278048:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +insidevol +-22.969678:131.593740:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +TypeImageCutByAxis +52.135568:135.959394:-900.000000 +FIN_COMPLEX_PORT +BOXES:34 +BOX +creaMaracasVisu:SliceImage:Box00 +ISEXEC:FALSE +78.025078:-80.032190:-900.000000 +123.600078:-90.032190:-900.000000 +FIN_BOX +BOX +std:GetVectorIntElement:Box03 +ISEXEC:FALSE +191.426452:-9.344111:-900.000000 +262.601452:-19.344111:-900.000000 +PORT +I:"2" +FIN_BOX +BOX +creaMaracasVisu:ImageActor:Box04 +ISEXEC:FALSE +88.131031:-202.344498:-900.000000 +133.706031:-212.344498:-900.000000 +FIN_BOX +BOX +vtk:Transform:Box05 +ISEXEC:FALSE +126.055591:-77.500407:-900.000000 +171.630591:-87.500407:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box06 +ISEXEC:FALSE +151.992326:-46.698683:-900.000000 +197.567326:-56.698683:-900.000000 +PORT +In1:"0 0 " +FIN_BOX +BOX +vtk:ImageVtkProperties:Box07 +ISEXEC:FALSE +269.227836:51.360237:-900.000000 +314.802836:41.360237:-900.000000 +FIN_BOX +BOX +std:GetVectorDoubleElement:Box08 +ISEXEC:FALSE +115.535747:-8.078442:-900.000000 +186.710747:-18.078442:-900.000000 +PORT +I:"2" +FIN_BOX +BOX +std:Mul:Box09 +ISEXEC:FALSE +108.921548:-25.147880:-900.000000 +141.696548:-35.147880:-900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box12 +ISEXEC:FALSE +247.907865:76.016693:-900.000000 +319.082865:66.016693:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box14 +ISEXEC:FALSE +-37.382182:-12.361503:-900.000000 +8.192818:-22.361503:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box15 +ISEXEC:FALSE +17.144980:-10.253965:-900.000000 +62.719980:-20.253965:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box16 +ISEXEC:FALSE +191.976293:48.498551:-900.000000 +237.551293:38.498551:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:SliceImage:Box17 +ISEXEC:FALSE +278.360168:-78.378431:-900.000000 +323.935168:-88.378431:-900.000000 +PORT +TypeOrientation:"1" +FIN_BOX +BOX +std:GetVectorIntElement:Box18 +ISEXEC:FALSE +346.763832:-10.313350:-900.000000 +417.938832:-20.313350:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +creaMaracasVisu:ImageActor:Box19 +ISEXEC:FALSE +285.491988:-214.447144:-900.000000 +331.066988:-224.447144:-900.000000 +FIN_BOX +BOX +vtk:Transform:Box20 +ISEXEC:FALSE +337.954627:-77.021999:-900.000000 +383.529627:-87.021999:-900.000000 +PORT +RotateWXYZ:"-90 1 0 0" +FIN_BOX +BOX +std:ConcatStrings:Box21 +ISEXEC:FALSE +347.967240:-43.945401:-900.000000 +393.542240:-53.945401:-900.000000 +PORT +In1:"0 " +PORT +In3:" 0" +FIN_BOX +BOX +std:GetVectorDoubleElement:Box22 +ISEXEC:FALSE +270.700789:-10.322991:-900.000000 +341.875789:-20.322991:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +std:Mul:Box23 +ISEXEC:FALSE +297.313546:-28.081784:-900.000000 +330.088546:-38.081784:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:SliceImage:Box24 +ISEXEC:FALSE +455.433130:-77.283687:-900.000000 +501.008130:-87.283687:-900.000000 +PORT +TypeOrientation:"2" +FIN_BOX +BOX +std:GetVectorIntElement:Box25 +ISEXEC:FALSE +527.900786:-7.374910:-900.000000 +599.075786:-17.374910:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +creaMaracasVisu:ImageActor:Box26 +ISEXEC:FALSE +468.885607:-208.868901:-900.000000 +514.460607:-218.868901:-900.000000 +FIN_BOX +BOX +vtk:Transform:Box27 +ISEXEC:FALSE +512.532359:-78.974540:-900.000000 +558.107359:-88.974540:-900.000000 +PORT +RotateWXYZ:"-90 1 0 0" +FIN_BOX +BOX +std:ConcatStrings:Box28 +ISEXEC:FALSE +516.289067:-40.286583:-900.000000 +561.864067:-50.286583:-900.000000 +PORT +In3:" 0 0" +FIN_BOX +BOX +std:GetVectorDoubleElement:Box29 +ISEXEC:FALSE +442.359098:-8.521988:-900.000000 +513.534098:-18.521988:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +std:Mul:Box30 +ISEXEC:FALSE +459.872357:-22.489323:-900.000000 +492.647357:-32.489323:-900.000000 +FIN_BOX +BOX +vtk:Transform:Box31 +ISEXEC:FALSE +505.006376:-100.680575:-900.000000 +550.581376:-110.680575:-900.000000 +PORT +RotateWXYZ:"-90 0 1 0" +FIN_BOX +BOX +creaVtk:ScalarsToColors:Box32 +ISEXEC:FALSE +368.257745:74.268789:-900.000000 +413.832745:64.268789:-900.000000 +PORT +Range:"-1000 0" +PORT +Type:"0" +FIN_BOX +BOX +std:MagicBox:Box33 +ISEXEC:FALSE +91.838138:16.583265:-900.000000 +137.413138:6.583265:-900.000000 +FIN_BOX +BOX +creaVtk:ImageCutByAxis:Box34 +ISEXEC:FALSE +4.890223:-151.027450:-900.000000 +50.465223:-161.027450:-900.000000 +PORT +Type:"x-y-z+" +PORT +TypeOrientation:"0" +FIN_BOX +BOX +std:MagicBox:Box35 +ISEXEC:FALSE +-91.082105:-12.638227:-900.000000 +-45.507105:-22.638227:-900.000000 +FIN_BOX +BOX +creaVtk:ImageCutByAxis:Box36 +ISEXEC:FALSE +157.932475:-166.477580:-900.000000 +203.507475:-176.477580:-900.000000 +PORT +Type:"x-y-z+" +PORT +TypeOrientation:"1" +FIN_BOX +BOX +creaVtk:ImageCutByAxis:Box37 +ISEXEC:FALSE +410.652151:-150.231123:-900.000000 +456.227151:-160.231123:-900.000000 +PORT +Type:"x-y-z+" +PORT +TypeOrientation:"2" +FIN_BOX +BOX +std:MagicBox:Box38 +ISEXEC:FALSE +71.612778:-7.487864:-900.000000 +117.187778:-17.487864:-900.000000 +FIN_BOX +CONNECTIONS:68 +CONNECTION +Box03:Out:Box00:Slice +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box04:Transform +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box05:Translate +NumberOfControlPoints:0 +CONNECTION +Box07:Spacing:Box08:In +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box09:In1 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box09:In2 +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box06:In2 +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box07:In +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box00:In +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box04:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box04:Renderer +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box17:Slice +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box19:Transform +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box20:Translate +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box23:In1 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box23:In2 +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box21:In2 +NumberOfControlPoints:0 +CONNECTION +Box07:Spacing:Box22:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box18:In +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box19:Renderer +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box19:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box17:In +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box24:Slice +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box30:In1 +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box30:In2 +NumberOfControlPoints:0 +CONNECTION +Box30:Out:Box28:In2 +NumberOfControlPoints:0 +CONNECTION +Box07:Spacing:Box29:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box25:In +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box24:In +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box26:Renderer +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box26:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box27:Out:Box31:In +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box26:Transform +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box27:Translate +NumberOfControlPoints:0 +CONNECTION +Box32:LookupTable:Box19:LookupTable +NumberOfControlPoints:0 +CONNECTION +Box32:LookupTable:Box26:LookupTable +NumberOfControlPoints:0 +CONNECTION +Box32:LookupTable:Box04:LookupTable +NumberOfControlPoints:0 +CONNECTION +InputImage:InputImage:Box12:In +NumberOfControlPoints:0 +CONNECTION +point:point:Box16:In +NumberOfControlPoints:0 +CONNECTION +render:render:Box15:In +NumberOfControlPoints:0 +CONNECTION +boxExecute:boxExecute:Box14:BoxExecute +NumberOfControlPoints:0 +CONNECTION +opacity:opacity:Box33:In +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box04:Opacity +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box19:Opacity +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box26:Opacity +NumberOfControlPoints:0 +CONNECTION +type:type:Box32:Type +NumberOfControlPoints:0 +CONNECTION +range:range:Box32:Range +NumberOfControlPoints:0 +CONNECTION +Box34:Out:Box04:In +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box34:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box34:Point +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box34:InsideVol +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box34:BoxExecute +NumberOfControlPoints:0 +CONNECTION +insidevol:insidevol:Box35:In +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box36:In +NumberOfControlPoints:0 +CONNECTION +Box36:Out:Box19:In +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box36:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box36:InsideVol +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box36:Point +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box37:In +NumberOfControlPoints:0 +CONNECTION +Box37:Out:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box37:Point +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box37:InsideVol +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box37:BoxExecute +NumberOfControlPoints:0 +CONNECTION +TypeImageCutByAxis:TypeImageCutByAxis:Box38:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box34:Type +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box36:Type +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box37:Type +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs new file mode 100644 index 0000000..a90aa1a --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs @@ -0,0 +1,186 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs +# ---------------------------------- + +include std +include itkvtk +include creaMaracasVisu +include std +include vtk +include creaVtk + +define SlicesImages3D creaMiniTools + +author "Author ??" +description "Description ??" + +category "" + +new creaMaracasVisu:SliceImage Box00 + +new std:GetVectorIntElement Box03 + set Box03.I "2" + +new creaMaracasVisu:ImageActor Box04 + +new vtk:Transform Box05 + +new std:ConcatStrings Box06 + set Box06.In1 "0 0 " + +new vtk:ImageVtkProperties Box07 + +new std:GetVectorDoubleElement Box08 + set Box08.I "2" + +new std:Mul Box09 + +new vtk:vtkImageDataPointerRelay Box12 + +new std:MagicBox Box14 + +new std:MagicBox Box15 + +new std:MagicBox Box16 + +new creaMaracasVisu:SliceImage Box17 + set Box17.TypeOrientation "1" + +new std:GetVectorIntElement Box18 + set Box18.I "1" + +new creaMaracasVisu:ImageActor Box19 + +new vtk:Transform Box20 + set Box20.RotateWXYZ "-90 1 0 0" + +new std:ConcatStrings Box21 + set Box21.In1 "0 " + set Box21.In3 " 0" + +new std:GetVectorDoubleElement Box22 + set Box22.I "1" + +new std:Mul Box23 + +new creaMaracasVisu:SliceImage Box24 + set Box24.TypeOrientation "2" + +new std:GetVectorIntElement Box25 + set Box25.I "0" + +new creaMaracasVisu:ImageActor Box26 + +new vtk:Transform Box27 + set Box27.RotateWXYZ "-90 1 0 0" + +new std:ConcatStrings Box28 + set Box28.In3 " 0 0" + +new std:GetVectorDoubleElement Box29 + set Box29.I "0" + +new std:Mul Box30 + +new vtk:Transform Box31 + set Box31.RotateWXYZ "-90 0 1 0" + +new creaVtk:ScalarsToColors Box32 + set Box32.Range "-1000 0" + set Box32.Type "0" + +new std:MagicBox Box33 + +new creaVtk:ImageCutByAxis Box34 + set Box34.Type "x-y-z+" + set Box34.TypeOrientation "0" + +new std:MagicBox Box35 + +new creaVtk:ImageCutByAxis Box36 + set Box36.Type "x-y-z+" + set Box36.TypeOrientation "1" + +new creaVtk:ImageCutByAxis Box37 + set Box37.Type "x-y-z+" + set Box37.TypeOrientation "2" + +new std:MagicBox Box38 + + +connect Box03.Out Box00.Slice +connect Box05.Out Box04.Transform +connect Box06.Out Box05.Translate +connect Box07.Spacing Box08.In +connect Box08.Out Box09.In1 +connect Box03.Out Box09.In2 +connect Box09.Out Box06.In2 +connect Box12.Out Box07.In +connect Box12.Out Box00.In +connect Box14.BoxChange Box04.BoxExecute +connect Box15.Out Box04.Renderer +connect Box16.Out Box03.In +connect Box18.Out Box17.Slice +connect Box20.Out Box19.Transform +connect Box21.Out Box20.Translate +connect Box22.Out Box23.In1 +connect Box18.Out Box23.In2 +connect Box23.Out Box21.In2 +connect Box07.Spacing Box22.In +connect Box16.Out Box18.In +connect Box15.Out Box19.Renderer +connect Box14.BoxChange Box19.BoxExecute +connect Box12.Out Box17.In +connect Box25.Out Box24.Slice +connect Box29.Out Box30.In1 +connect Box25.Out Box30.In2 +connect Box30.Out Box28.In2 +connect Box07.Spacing Box29.In +connect Box16.Out Box25.In +connect Box12.Out Box24.In +connect Box15.Out Box26.Renderer +connect Box14.BoxChange Box26.BoxExecute +connect Box27.Out Box31.In +connect Box31.Out Box26.Transform +connect Box28.Out Box27.Translate +connect Box32.LookupTable Box19.LookupTable +connect Box32.LookupTable Box26.LookupTable +connect Box32.LookupTable Box04.LookupTable +connect Box33.Out Box04.Opacity +connect Box33.Out Box19.Opacity +connect Box33.Out Box26.Opacity +connect Box34.Out Box04.In +connect Box00.Out Box34.In +connect Box16.Out Box34.Point +connect Box35.Out Box34.InsideVol +connect Box14.BoxChange Box34.BoxExecute +connect Box17.Out Box36.In +connect Box36.Out Box19.In +connect Box14.BoxChange Box36.BoxExecute +connect Box35.Out Box36.InsideVol +connect Box16.Out Box36.Point +connect Box24.Out Box37.In +connect Box37.Out Box26.In +connect Box16.Out Box37.Point +connect Box35.Out Box37.InsideVol +connect Box14.BoxChange Box37.BoxExecute +connect Box38.Out Box34.Type +connect Box38.Out Box36.Type +connect Box38.Out Box37.Type + +# Complex input ports +input InputImage Box12.In " " +input point Box16.In " " +input render Box15.In " " +input boxExecute Box14.BoxExecute " " +input opacity Box33.In " " +input type Box32.Type " " +input range Box32.Range " " +input insidevol Box35.In " " +input TypeImageCutByAxis Box38.In " " + +# Complex output ports + + +endefine -- 2.45.1 From b33750e2b824e74dbe30a1606410b8d2f26a2b3d Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 6 Jun 2019 11:01:41 +0200 Subject: [PATCH 14/16] #3197 CreaMiniTools Feature New Normal - new complex box SlicesImages3D --- .../bbs/boxes/SlicesImages3D.bbg | 37 +++++++++++++------ .../bbs/boxes/SlicesImages3D.bbs | 9 +++-- 2 files changed, 31 insertions(+), 15 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg index f47ade6..cde36dd 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg @@ -11,7 +11,7 @@ COMPLEXBOX:TRUE COMPLEXBOXNAME:SlicesImages3D PACKAGENAME:creaMiniTools COMPLEXOUTPUTS:0 -COMPLEXINPUTS:9 +COMPLEXINPUTS:10 COMPLEX_PORT InputImage 300.391931:141.598193:-900.000000 @@ -48,7 +48,11 @@ COMPLEX_PORT TypeImageCutByAxis 52.135568:135.959394:-900.000000 FIN_COMPLEX_PORT -BOXES:34 +COMPLEX_PORT +lookuptable +443.580804:141.664108:-900.000000 +FIN_COMPLEX_PORT +BOXES:35 BOX creaMaracasVisu:SliceImage:Box00 ISEXEC:FALSE @@ -299,7 +303,13 @@ ISEXEC:FALSE 71.612778:-7.487864:-900.000000 117.187778:-17.487864:-900.000000 FIN_BOX -CONNECTIONS:68 +BOX +std:MagicBox:Box39 +ISEXEC:FALSE +442.706737:72.744686:-900.000000 +488.281737:62.744686:-900.000000 +FIN_BOX +CONNECTIONS:69 CONNECTION Box03:Out:Box00:Slice NumberOfControlPoints:0 @@ -406,15 +416,6 @@ CONNECTION Box28:Out:Box27:Translate NumberOfControlPoints:0 CONNECTION -Box32:LookupTable:Box19:LookupTable -NumberOfControlPoints:0 -CONNECTION -Box32:LookupTable:Box26:LookupTable -NumberOfControlPoints:0 -CONNECTION -Box32:LookupTable:Box04:LookupTable -NumberOfControlPoints:0 -CONNECTION InputImage:InputImage:Box12:In NumberOfControlPoints:0 CONNECTION @@ -504,4 +505,16 @@ NumberOfControlPoints:0 CONNECTION Box38:Out:Box37:Type NumberOfControlPoints:0 +CONNECTION +lookuptable:lookuptable:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box04:LookupTable +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box19:LookupTable +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box26:LookupTable +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs index a90aa1a..e44311f 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs @@ -108,6 +108,8 @@ new creaVtk:ImageCutByAxis Box37 new std:MagicBox Box38 +new std:MagicBox Box39 + connect Box03.Out Box00.Slice connect Box05.Out Box04.Transform @@ -144,9 +146,6 @@ connect Box14.BoxChange Box26.BoxExecute connect Box27.Out Box31.In connect Box31.Out Box26.Transform connect Box28.Out Box27.Translate -connect Box32.LookupTable Box19.LookupTable -connect Box32.LookupTable Box26.LookupTable -connect Box32.LookupTable Box04.LookupTable connect Box33.Out Box04.Opacity connect Box33.Out Box19.Opacity connect Box33.Out Box26.Opacity @@ -168,6 +167,9 @@ connect Box14.BoxChange Box37.BoxExecute connect Box38.Out Box34.Type connect Box38.Out Box36.Type connect Box38.Out Box37.Type +connect Box39.Out Box04.LookupTable +connect Box39.Out Box19.LookupTable +connect Box39.Out Box26.LookupTable # Complex input ports input InputImage Box12.In " " @@ -179,6 +181,7 @@ input type Box32.Type " " input range Box32.Range " " input insidevol Box35.In " " input TypeImageCutByAxis Box38.In " " +input lookuptable Box39.In " " # Complex output ports -- 2.45.1 From 9413421b164dcb95484226ed04928a70bc86591a Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 9 Jan 2020 15:43:43 +0100 Subject: [PATCH 15/16] #3336 CreaMiniTools Bug New Normal - ImageTools - offset position --- .../bbs/appli/ImageTool.bbg | 149 ++++++++++-------- .../bbs/appli/ImageTool.bbs | 51 +++--- 2 files changed, 111 insertions(+), 89 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg index 7969d28..24f2035 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbg # ---------------------------------- APP_START @@ -9,7 +9,7 @@ DESCRIPTION:Show N Points AUTHOR:info-dev@creatis.insa-lyon.fr COMPLEXBOX:FALSE COMPLEXINPUTS:0 -BOXES:28 +BOXES:30 BOX creaMaracasVisu:ViewerNV:viewer ISEXEC:FALSE @@ -21,8 +21,8 @@ FIN_BOX BOX creaMaracasVisu:ShowNPoints:showNpoints ISEXEC:FALSE --146.394252:-3.709677:-900.000000 --100.819252:-13.709677:-900.000000 +-130.810673:-0.635541:-900.000000 +-70.170673:-10.635541:-900.000000 PORT Radio:"10" PORT @@ -32,7 +32,7 @@ BOX creaImageIO:ImagesChooserDialogBox:Box04 ISEXEC:FALSE 106.944221:120.009570:-900.000000 -178.119221:110.009570:-900.000000 +158.419221:110.009570:-900.000000 FIN_BOX BOX wx:LayoutTab:Box06 @@ -46,15 +46,15 @@ BOX creaMaracasVisu:ColorLayerImageView:Box10 ISEXEC:FALSE -351.844966:-16.053157:-900.000000 --280.669966:-26.053157:-900.000000 +-281.964966:-26.053157:-900.000000 PORT WinTitle:"Image Layer" FIN_BOX BOX creaMaracasVisu:ManualPaint:Box11 ISEXEC:FALSE --37.981566:-130.541589:-900.000000 -7.593434:-140.541589:-900.000000 +-88.902890:-136.639951:-900.000000 +-43.662890:-146.639951:-900.000000 PORT WinTitle:"Paint" FIN_BOX @@ -62,7 +62,7 @@ BOX wx:LayoutTab:Box12 ISEXEC:FALSE 51.808241:-277.901790:-900.000000 -97.383241:-287.901790:-900.000000 +109.368241:-287.901790:-900.000000 PORT WinTitle:Filters FIN_BOX @@ -70,39 +70,39 @@ BOX wx:LayoutTab:Box13 ISEXEC:FALSE 25.025304:-307.420578:-900.000000 -70.600304:-317.420578:-900.000000 +82.585304:-317.420578:-900.000000 FIN_BOX BOX toolsbbtk:SaveMHD-Button:Box21 ISEXEC:FALSE --101.851785:-27.059586:-900.000000 --56.276785:-37.059586:-900.000000 +-93.258638:-26.505189:-900.000000 +-50.733638:-36.505189:-900.000000 FIN_BOX BOX creaMiniTools:ThresholdWidget:Box22 ISEXEC:FALSE -2.341228:-207.881975:-900.000000 -43.233772:-217.881975:-900.000000 +39.908772:-217.881975:-900.000000 FIN_BOX BOX creaMiniTools:ConnectivityWidget:Box16 ISEXEC:FALSE 61.974834:-215.138914:-900.000000 -107.549834:-225.138914:-900.000000 +107.299834:-225.138914:-900.000000 FIN_BOX BOX wx:LayoutLine:Box18 ISEXEC:FALSE -157.480851:-29.691282:-900.000000 --111.905851:-39.691282:-900.000000 +-99.920851:-39.691282:-900.000000 PORT WinTitle:"show N-Points" FIN_BOX BOX wx:LayoutLine:Box19 ISEXEC:FALSE --125.693371:-52.080329:-900.000000 --80.118371:-62.080329:-900.000000 +-126.524966:-55.683907:-900.000000 +-68.964966:-65.683907:-900.000000 PORT WinTitle:"Save MHD" FIN_BOX @@ -110,7 +110,7 @@ BOX wx:LayoutLine:Box20 ISEXEC:FALSE -373.889781:-114.690466:-900.000000 --328.314781:-124.690466:-900.000000 +-316.329781:-124.690466:-900.000000 PORT WinTitle:"Layers" FIN_BOX @@ -118,7 +118,7 @@ BOX wx:LayoutLine:Box23 ISEXEC:FALSE -94.484830:-201.968967:-900.000000 --48.909830:-211.968967:-900.000000 +-36.924830:-211.968967:-900.000000 PORT Orientation:H PORT @@ -128,43 +128,43 @@ BOX creaMaracasVisu:CutModule2:Box24 ISEXEC:FALSE -31.541511:-156.104481:-900.000000 -14.033489:-166.104481:-900.000000 +6.608489:-166.104481:-900.000000 FIN_BOX BOX std:MultipleInputs:Box25 ISEXEC:FALSE 193.461788:-298.903547:-900.000000 -239.036788:-308.903547:-900.000000 +233.161788:-308.903547:-900.000000 FIN_BOX BOX creaMiniTools:ErodeWidget:Box26 ISEXEC:FALSE 127.580373:-217.870289:-900.000000 -173.155373:-227.870289:-900.000000 +166.280373:-227.870289:-900.000000 FIN_BOX BOX creaMiniTools:DilateWidget:Box27 ISEXEC:FALSE 202.155519:-213.402703:-900.000000 -247.730519:-223.402703:-900.000000 +240.830519:-223.402703:-900.000000 FIN_BOX BOX toolsbbtk:ImageVtkPropertiesWidget:Box28 ISEXEC:FALSE -67.347684:-221.649376:-900.000000 -3.827316:-231.649376:-900.000000 +-15.197684:-231.649376:-900.000000 FIN_BOX BOX wx:LayoutTab:Box29 ISEXEC:FALSE -372.469828:-95.544664:-900.000000 --326.894828:-105.544664:-900.000000 +-314.909828:-105.544664:-900.000000 FIN_BOX BOX creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box30 ISEXEC:FALSE -336.435240:-29.737380:-900.000000 --265.260240:-39.737380:-900.000000 +-276.085240:-39.737380:-900.000000 PORT title:"Layer-1" FIN_BOX @@ -172,7 +172,7 @@ BOX creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box31 ISEXEC:FALSE -327.541464:-46.787001:-900.000000 --256.366464:-56.787001:-900.000000 +-267.191464:-56.787001:-900.000000 PORT title:"Layer-2" FIN_BOX @@ -180,7 +180,7 @@ BOX wx:LayoutLine:Box32 ISEXEC:FALSE -370.565590:-78.671647:-900.000000 --324.990590:-88.671647:-900.000000 +-313.005590:-88.671647:-900.000000 PORT WinTitle:"Layer-Base" FIN_BOX @@ -188,7 +188,7 @@ BOX wx:LayoutTab:Box33 ISEXEC:FALSE -366.766856:-142.939770:-900.000000 --321.191856:-152.939770:-900.000000 +-309.206856:-152.939770:-900.000000 PORT WinTitle:"Superpose" FIN_BOX @@ -196,25 +196,37 @@ BOX creaVtk:VectorsTensors_manualread_Widget:Box35 ISEXEC:FALSE -296.945953:-100.622592:-900.000000 --225.770953:-110.622592:-900.000000 +-235.495953:-110.622592:-900.000000 FIN_BOX BOX creaVtk:OutputWindow:Box36 ISEXEC:TRUE 101.677450:-337.896727:-900.000000 -147.252450:-347.896727:-900.000000 +142.277450:-347.896727:-900.000000 FIN_BOX BOX wx:LayoutSplit:Box37 ISEXEC:TRUE 154.731901:-338.273293:-900.000000 -200.306901:-348.273293:-900.000000 +193.811901:-348.273293:-900.000000 PORT Orientation:"H" PORT WinTitle:"ImageTool.bbg" FIN_BOX -CONNECTIONS:66 +BOX +vtk:vtkImageDataPointerRelay:Box38 +ISEXEC:FALSE +-79.265683:86.819111:-900.000000 +-27.090683:76.819111:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box39 +ISEXEC:FALSE +-126.115812:61.913442:-900.000000 +-74.590812:51.913442:-900.000000 +FIN_BOX +CONNECTIONS:68 CONNECTION viewer:Renderer1:showNpoints:Renderer NumberOfControlPoints:0 @@ -225,22 +237,11 @@ CONNECTION viewer:BoxChange:showNpoints:BoxExecute NumberOfControlPoints:0 CONNECTION -Box04:Out:showNpoints:Image -NumberOfControlPoints:1 --13.630965:26.438316:-900.000000 -CONNECTION -Box04:Out:viewer:In -NumberOfControlPoints:0 -CONNECTION viewer:BoxChange:Box11:BoxExecute NumberOfControlPoints:2 -162.452789:-13.599417:-900.000000 -129.994598:-92.765739:-900.000000 CONNECTION -Box04:Out:Box11:In -NumberOfControlPoints:1 -41.886299:-51.200848:-900.000000 -CONNECTION viewer:wxVtkBaseView2:Box11:WxVtkBaseView1 NumberOfControlPoints:0 CONNECTION @@ -256,23 +257,12 @@ CONNECTION Box12:Widget:Box13:Widget2 NumberOfControlPoints:0 CONNECTION -Box04:Out:Box21:In -NumberOfControlPoints:0 -CONNECTION -Box04:Out:Box22:In -NumberOfControlPoints:1 -53.882099:-78.422401:-900.000000 -CONNECTION Box22:Widget:Box12:Widget1 NumberOfControlPoints:0 CONNECTION Box16:Widget:Box12:Widget2 NumberOfControlPoints:0 CONNECTION -Box04:Out:Box16:In -NumberOfControlPoints:1 -75.021088:-98.781540:-900.000000 -CONNECTION Box18:Widget:Box06:Widget1 NumberOfControlPoints:0 CONNECTION @@ -297,9 +287,6 @@ CONNECTION viewer:BoxChange:Box24:BoxExecute NumberOfControlPoints:0 CONNECTION -Box04:Out:Box24:In -NumberOfControlPoints:0 -CONNECTION viewer:Interactor1:Box24:Interactor NumberOfControlPoints:0 CONNECTION @@ -336,12 +323,6 @@ CONNECTION viewer:Renderer1:Box26:vtkRenderer NumberOfControlPoints:0 CONNECTION -Box04:Out:Box26:In -NumberOfControlPoints:0 -CONNECTION -Box04:Out:Box27:In -NumberOfControlPoints:0 -CONNECTION viewer:Point:Box16:point NumberOfControlPoints:0 CONNECTION @@ -351,10 +332,6 @@ CONNECTION Box28:widget:Box06:Widget5 NumberOfControlPoints:0 CONNECTION -Box04:Out:Box28:in -NumberOfControlPoints:1 -53.842674:-119.647697:-900.000000 -CONNECTION Box29:Widget:Box20:Widget1 NumberOfControlPoints:0 CONNECTION @@ -420,4 +397,40 @@ NumberOfControlPoints:0 CONNECTION viewer:Renderer1:Box31:Rederer3D NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:viewer:In +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box38:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:showNpoints:Image +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box21:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box24:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box22:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box16:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box27:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box28:in +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs index b9a04c9..2e15ca7 100644 --- a/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script -# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/ImageTool.bbs # ---------------------------------- # BBTK GEditor Script @@ -15,6 +15,7 @@ include toolsbbtk include creaMiniTools include std include creaVtk +include vtk author "info-dev@creatis.insa-lyon.fr" description "Show N Points" @@ -94,6 +95,10 @@ new wx:LayoutSplit Box37 set Box37.Orientation "H" set Box37.WinTitle "ImageTool.bbg" +new vtk:vtkImageDataPointerRelay Box38 + +new creaMaracasVisu:ImageChangeInformation Box39 + connect viewer.Renderer1 showNpoints.Renderer @@ -101,14 +106,8 @@ connect viewer.Point showNpoints.In connect viewer.BoxChange showNpoints.BoxExecute -connect Box04.Out showNpoints.Image - -connect Box04.Out viewer.In - connect viewer.BoxChange Box11.BoxExecute -connect Box04.Out Box11.In - connect viewer.wxVtkBaseView2 Box11.WxVtkBaseView1 connect viewer.wxVtkBaseView3 Box11.WxVtkBaseView2 @@ -119,16 +118,10 @@ connect Box06.Widget Box13.Widget1 connect Box12.Widget Box13.Widget2 -connect Box04.Out Box21.In - -connect Box04.Out Box22.In - connect Box22.Widget Box12.Widget1 connect Box16.Widget Box12.Widget2 -connect Box04.Out Box16.In - connect Box18.Widget Box06.Widget1 connect showNpoints.Widget Box18.Widget1 @@ -145,8 +138,6 @@ connect Box24.Widget Box23.Widget2 connect viewer.BoxChange Box24.BoxExecute -connect Box04.Out Box24.In - connect viewer.Interactor1 Box24.Interactor connect viewer.Renderer1 Box24.Renderer @@ -171,18 +162,12 @@ 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 connect Box28.widget Box06.Widget5 -connect Box04.Out Box28.in - connect Box29.Widget Box20.Widget1 connect viewer.Renderer1 Box30.Rederer3D @@ -227,6 +212,30 @@ connect viewer.Widget Box37.Widget2 connect viewer.Renderer1 Box31.Rederer3D +connect Box38.Out Box39.In + +connect Box39.Out viewer.In + +connect Box04.Out Box38.In + +connect Box39.Out showNpoints.Image + +connect Box39.Out Box21.In + +connect Box39.Out Box11.In + +connect Box39.Out Box24.In + +connect Box39.Out Box22.In + +connect Box39.Out Box16.In + +connect Box39.Out Box26.In + +connect Box39.Out Box27.In + +connect Box39.Out Box28.in + # Complex input ports -- 2.45.1 From 77726c1311a127c0c46ea11f2a4f43350c636b11 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Mon, 3 Feb 2020 16:25:35 +0100 Subject: [PATCH 16/16] #3359 CreaMiniTools Bug New Normal - Example ViewerNV reset offset --- .../bbs/appli/viewerNVExample.bbg | 97 ++++-- .../bbs/appli/viewerNVExample.bbs | 19 +- .../bbs/appli/viewerNVwithVolRenExample.bbg | 90 ++++-- .../bbs/appli/viewerNVwithVolRenExample.bbs | 30 +- .../LayerCol-VolRend-SurRend_Multi-Widget.bbg | 32 +- .../LayerCol-VolRend-SurRend_Multi-Widget.bbs | 6 +- .../boxes/LayerCol-VolRend-SurRend_Widget.bbg | 287 ++++++++++++++---- .../boxes/LayerCol-VolRend-SurRend_Widget.bbs | 72 ++++- 8 files changed, 490 insertions(+), 143 deletions(-) diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg index 36891d1..9c23f2e 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 -# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg # ---------------------------------- APP_START @@ -9,30 +9,32 @@ DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE COMPLEXINPUTS:0 -BOXES:36 +BOXES:39 BOX creaImageIO:ImagesChooserDialogBox:Box00 ISEXEC:FALSE --19.703199:161.952689:-900.000000 -51.471801:151.952689:-900.000000 +-22.593359:192.781067:-900.000000 +28.881641:182.781067:-900.000000 FIN_BOX BOX creaMaracasVisu:ViewerNV:Box01 ISEXEC:FALSE 92.878707:104.248747:-900.000000 -138.453707:94.248747:-900.000000 +156.598707:94.248747:-900.000000 +PORT +nTypeView:"6 1 2 0" FIN_BOX BOX toolsbbtk:ImageVtkPropertiesWidget:Box04 ISEXEC:FALSE -51.283648:96.969486:-900.000000 -19.891352:86.969486:-900.000000 +0.866352:86.969486:-900.000000 FIN_BOX BOX wx:LayoutTab:Box05 ISEXEC:FALSE 17.115805:9.090075:-900.000000 -62.690805:-0.909925:-900.000000 +74.675805:-0.909925:-900.000000 PORT WinHide:"800" PORT @@ -42,7 +44,7 @@ BOX toolsbbtk:SaveMHD-Button:Box06 ISEXEC:FALSE 30.936355:98.719169:-900.000000 -76.511355:88.719169:-900.000000 +73.461355:88.719169:-900.000000 FIN_BOX BOX wx:LayoutLine:Box07 @@ -56,13 +58,13 @@ BOX creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget:Box16 ISEXEC:FALSE -127.699667:43.560172:-900.000000 --56.524667:33.560172:-900.000000 +-61.949667:33.560172:-900.000000 FIN_BOX BOX wx:LayoutTab:Box11 ISEXEC:FALSE -119.524604:-326.768067:-900.000000 --73.949604:-336.768067:-900.000000 +-61.964604:-336.768067:-900.000000 FIN_BOX BOX wx:LayoutLine:Box14 @@ -76,7 +78,7 @@ BOX wx:LayoutSplit:Box15 ISEXEC:FALSE -88.989036:-293.379348:-900.000000 --43.414036:-303.379348:-900.000000 +-49.909036:-303.379348:-900.000000 PORT Proportion:"15" PORT @@ -134,7 +136,7 @@ BOX std:ConcatStrings:Box23 ISEXEC:FALSE -40.292769:-18.216453:-900.000000 -5.282231:-28.216453:-900.000000 +-0.567769:-28.216453:-900.000000 PORT In2:" " PORT @@ -144,37 +146,37 @@ BOX vtk:vtkImageDataPointerRelay:Box24 ISEXEC:FALSE -21.500285:135.932912:-900.000000 -49.674715:125.932912:-900.000000 +30.674715:125.932912:-900.000000 FIN_BOX BOX vtk:LoadHola:Box26 ISEXEC:FALSE -82.733089:161.786575:-900.000000 --37.158089:151.786575:-900.000000 +-47.183089:151.786575:-900.000000 FIN_BOX BOX std:MultipleInputs:Box34 ISEXEC:FALSE -28.171891:-99.413110:-900.000000 -17.403109:-109.413110:-900.000000 +11.528109:-109.413110:-900.000000 FIN_BOX BOX wx:LayoutTab:Box36 ISEXEC:FALSE -85.590716:-276.693831:-900.000000 -131.165716:-286.693831:-900.000000 +81.269521:-226.410837:-900.000000 +138.829521:-236.410837:-900.000000 FIN_BOX BOX std:MultipleInputs:Box50 ISEXEC:FALSE -69.433744:-48.846784:-900.000000 --23.858744:-58.846784:-900.000000 +-29.733744:-58.846784:-900.000000 FIN_BOX BOX wx:LayoutLine:Box57 ISEXEC:FALSE -147.527923:-145.339995:-900.000000 --101.952923:-155.339995:-900.000000 +-89.967923:-155.339995:-900.000000 PORT WinTitle:"Layer" FIN_BOX @@ -182,27 +184,29 @@ BOX creaVtk:OutputWindow:Box71 ISEXEC:TRUE -127.211392:-360.773780:-900.000000 --81.636392:-370.773780:-900.000000 +-86.611392:-370.773780:-900.000000 FIN_BOX BOX wx:LayoutSplit:Box72 ISEXEC:TRUE -36.039635:-359.784631:-900.000000 -9.535365:-369.784631:-900.000000 +3.040365:-369.784631:-900.000000 PORT Orientation:"H" +PORT +WinTitle:"ImageTools-Viewer-ViewerNV" FIN_BOX BOX creaMaracasVisu:Measure3DLength_Widget:Box74 ISEXEC:FALSE -274.335219:-145.856647:-900.000000 --196.272398:-155.856647:-900.000000 +-222.810219:-155.856647:-900.000000 FIN_BOX BOX wx:LayoutLine:Box75 ISEXEC:FALSE -152.976375:-295.546787:-900.000000 --107.401375:-305.546787:-900.000000 +-95.416375:-305.546787:-900.000000 PORT WinTitle:"Tools" FIN_BOX @@ -286,7 +290,7 @@ BOX std:ConcatStrings:Box86 ISEXEC:FALSE -173.942465:-43.014228:-900.000000 --128.367465:-53.014228:-900.000000 +-134.217465:-53.014228:-900.000000 PORT In2:" " PORT @@ -296,13 +300,13 @@ BOX std:MathOperationVector:Box87 ISEXEC:FALSE -136.645928:-73.308976:-900.000000 --65.470928:-83.308976:-900.000000 +-89.120928:-83.308976:-900.000000 FIN_BOX BOX creaMiniTools:crop-viewer-widget:Box88 ISEXEC:FALSE 20.852498:-188.623188:-900.000000 -66.427498:-198.623188:-900.000000 +66.402498:-198.623188:-900.000000 PORT title:"Base Image A" FIN_BOX @@ -310,7 +314,7 @@ BOX creaMiniTools:crop-viewer-widget:Box89 ISEXEC:FALSE 93.625618:-198.149131:-900.000000 -139.200618:-208.149131:-900.000000 +139.175618:-208.149131:-900.000000 PORT title:"Base Image B" FIN_BOX @@ -318,7 +322,7 @@ BOX creaMiniTools:crop-viewer-widget-manual:Box85 ISEXEC:FALSE 171.088596:-188.775244:-900.000000 -242.263596:-198.775244:-900.000000 +224.888596:-198.775244:-900.000000 PORT _title:"Image A" FIN_BOX @@ -326,7 +330,7 @@ BOX creaMiniTools:crop-viewer-widget-manual:Box90 ISEXEC:FALSE 247.547207:-186.402300:-900.000000 -318.722207:-196.402300:-900.000000 +301.347207:-196.402300:-900.000000 PORT _title:"Image B" FIN_BOX @@ -334,9 +338,29 @@ BOX std:MultipleInputs:Box91 ISEXEC:FALSE -259.067762:-50.286627:-900.000000 --213.492762:-60.286627:-900.000000 +-219.367762:-60.286627:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ImageChangeInformation:Box49 +ISEXEC:FALSE +-22.318461:163.615191:-900.000000 +29.206539:153.615191:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:HelpViewerNV:Box51 +ISEXEC:FALSE +-33.587468:-291.484229:-900.000000 +6.712532:-301.484229:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box52 +ISEXEC:FALSE +-55.980541:-308.937837:-900.000000 +1.579459:-318.937837:-900.000000 +PORT +WinTitle:"Viewer Help" FIN_BOX -CONNECTIONS:71 +CONNECTIONS:74 CONNECTION Box04:widget:Box05:Widget2 NumberOfControlPoints:0 @@ -548,6 +572,15 @@ CONNECTION Box50:BoxChange:Box34:In2 NumberOfControlPoints:0 CONNECTION -Box00:Out:Box24:In +Box00:Out:Box49:In +NumberOfControlPoints:0 +CONNECTION +Box49:Out:Box24:In +NumberOfControlPoints:0 +CONNECTION +Box51:widget:Box52:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box52:Widget:Box11:Widget5 NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs index 96439bb..365fdbd 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 -# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs # ---------------------------------- # BBTK GEditor Script @@ -24,6 +24,7 @@ category "" new creaImageIO:ImagesChooserDialogBox Box00 new creaMaracasVisu:ViewerNV Box01 + set Box01.nTypeView "6 1 2 0" new toolsbbtk:ImageVtkPropertiesWidget Box04 @@ -89,6 +90,7 @@ new creaVtk:OutputWindow Box71 new wx:LayoutSplit Box72 set Box72.Orientation "H" + set Box72.WinTitle "ImageTools-Viewer-ViewerNV" new creaMaracasVisu:Measure3DLength_Widget Box74 @@ -148,6 +150,13 @@ new creaMiniTools:crop-viewer-widget-manual Box90 new std:MultipleInputs Box91 +new creaMaracasVisu:ImageChangeInformation Box49 + +new creaMaracasVisu:HelpViewerNV Box51 + +new wx:LayoutLine Box52 + set Box52.WinTitle "Viewer Help" + connect Box04.widget Box05.Widget2 @@ -289,7 +298,13 @@ connect Box91.BoxChange Box34.In3 connect Box50.BoxChange Box34.In2 -connect Box00.Out Box24.In +connect Box00.Out Box49.In + +connect Box49.Out Box24.In + +connect Box51.widget Box52.Widget1 + +connect Box52.Widget Box11.Widget5 diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg index 8e0dd1b..be11281 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 -# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbg # ---------------------------------- APP_START @@ -9,32 +9,30 @@ DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE COMPLEXINPUTS:0 -BOXES:8 +BOXES:12 BOX creaImageIO:ImagesChooserDialogBox:Box00 ISEXEC:FALSE --32.069940:88.006745:-900.000000 -39.105060:78.006745:-900.000000 +-28.449670:131.967160:-900.000000 +23.025330:121.967160:-900.000000 FIN_BOX BOX creaMaracasVisu:ViewerNV:Box01 ISEXEC:FALSE -82.653137:61.767325:-900.000000 --22.013137:51.767325:-900.000000 -PORT -nTypeView:"5 1 2 0" +-18.933137:51.767325:-900.000000 FIN_BOX BOX toolsbbtk:ImageVtkPropertiesWidget:Box04 ISEXEC:FALSE -10.231970:64.047466:-900.000000 -60.943030:54.047466:-900.000000 +41.918030:54.047466:-900.000000 FIN_BOX BOX wx:LayoutTab:Box05 ISEXEC:FALSE -29.201253:-12.466273:-900.000000 -86.761253:-22.466273:-900.000000 +22.347298:-25.771010:-900.000000 +79.907298:-35.771010:-900.000000 PORT WinHide:"800" PORT @@ -44,13 +42,13 @@ BOX toolsbbtk:SaveMHD-Button:Box06 ISEXEC:FALSE 77.377634:66.337046:-900.000000 -122.952634:56.337046:-900.000000 +119.902634:56.337046:-900.000000 FIN_BOX BOX wx:LayoutLine:Box07 ISEXEC:FALSE --66.111428:33.588530:-900.000000 --8.551428:23.588530:-900.000000 +-58.870889:24.796447:-900.000000 +-1.310889:14.796447:-900.000000 PORT WinTitle:"MPR Viewer" FIN_BOX @@ -58,23 +56,45 @@ BOX creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget:Box08 ISEXEC:FALSE -96.266590:-2.061123:-900.000000 --25.091590:-12.061123:-900.000000 +-30.516590:-12.061123:-900.000000 FIN_BOX BOX wx:LayoutSplit:Box09 ISEXEC:TRUE --5.577158:-40.131286:-900.000000 -39.997842:-50.131286:-900.000000 +-11.221592:-53.436023:-900.000000 +27.858408:-63.436023:-900.000000 PORT Orientation:"H" +PORT +WinTitle:"ImageTools-Viewer-ViewerNV (with VolRendering)" FIN_BOX -CONNECTIONS:13 -CONNECTION -Box00:Out:Box01:In -NumberOfControlPoints:0 -CONNECTION -Box00:Out:Box04:in -NumberOfControlPoints:0 +BOX +creaMaracasVisu:ImageChangeInformation:Box10 +ISEXEC:FALSE +-12.115948:109.684020:-900.000000 +39.409052:99.684020:-900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box11 +ISEXEC:FALSE +-4.945723:91.070893:-900.000000 +47.229277:81.070893:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:HelpViewerNV:Box12 +ISEXEC:FALSE +90.210149:26.407887:-900.000000 +130.510149:16.407887:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box13 +ISEXEC:FALSE +69.179703:-3.181241:-900.000000 +126.739703:-13.181241:-900.000000 +PORT +WinTitle:"Viewer Help" +FIN_BOX +CONNECTIONS:17 CONNECTION Box04:widget:Box05:Widget2 NumberOfControlPoints:0 @@ -82,9 +102,6 @@ CONNECTION Box06:Widget:Box05:Widget3 NumberOfControlPoints:0 CONNECTION -Box00:Out:Box06:In -NumberOfControlPoints:0 -CONNECTION Box01:Widget:Box07:Widget1 NumberOfControlPoints:0 CONNECTION @@ -108,4 +125,25 @@ NumberOfControlPoints:0 CONNECTION Box01:wxVtkBaseView4:Box08:wxvtkbaseview3 NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box01:In +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box04:in +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box06:In +NumberOfControlPoints:0 +CONNECTION +Box10:Out:Box11:In +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box10:In +NumberOfControlPoints:0 +CONNECTION +Box12:widget:Box13:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box13:Widget:Box05:Widget6 +NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs index d1b1406..b87cac5 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 -# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVwithVolRenExample.bbs # ---------------------------------- # BBTK GEditor Script @@ -13,6 +13,7 @@ include creaMaracasVisu include toolsbbtk include wx include creaMiniTools +include vtk author "Author ??" description "Description ??" @@ -21,7 +22,6 @@ category "" new creaImageIO:ImagesChooserDialogBox Box00 new creaMaracasVisu:ViewerNV Box01 - set Box01.nTypeView "5 1 2 0" new toolsbbtk:ImageVtkPropertiesWidget Box04 @@ -38,18 +38,22 @@ new creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget Box08 new wx:LayoutSplit Box09 set Box09.Orientation "H" + set Box09.WinTitle "ImageTools-Viewer-ViewerNV (with VolRendering)" +new creaMaracasVisu:ImageChangeInformation Box10 -connect Box00.Out Box01.In +new vtk:vtkImageDataPointerRelay Box11 + +new creaMaracasVisu:HelpViewerNV Box12 + +new wx:LayoutLine Box13 + set Box13.WinTitle "Viewer Help" -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 @@ -66,6 +70,20 @@ connect Box01.wxVtkBaseView3 Box08.wxvtkbaseview2 connect Box01.wxVtkBaseView4 Box08.wxvtkbaseview3 +connect Box11.Out Box01.In + +connect Box11.Out Box04.in + +connect Box11.Out Box06.In + +connect Box10.Out Box11.In + +connect Box00.Out Box10.In + +connect Box12.widget Box13.Widget1 + +connect Box13.Widget Box05.Widget6 + # Complex input ports 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 index 068dd3c..e221db0 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbg +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbg # ---------------------------------- APP_START @@ -37,7 +37,9 @@ BOX creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box08 ISEXEC:FALSE -140.679007:-0.207604:-900.000000 --69.504007:-10.207604:-900.000000 +-80.329007:-10.207604:-900.000000 +PORT +colorbarposition:"0 100" PORT title:"Layer-1" FIN_BOX @@ -45,7 +47,7 @@ BOX wx:LayoutTab:Box10 ISEXEC:FALSE -104.959681:-82.554057:-900.000000 --47.399681:-92.554057:-900.000000 +-68.709681:-92.554057:-900.000000 PORT WinTitle:"Superpose" FIN_BOX @@ -53,13 +55,15 @@ BOX wx:LayoutTab:Box11 ISEXEC:FALSE -83.472534:-107.035525:-900.000000 --25.912534:-117.035525:-900.000000 +-47.222534:-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 +-45.658658:-23.816040:-900.000000 +PORT +colorbarposition:"60 100" PORT title:"Layer-2" FIN_BOX @@ -67,7 +71,9 @@ BOX creaMiniTools:LayerCol-VolRend-SurRend_Widget:Box13 ISEXEC:FALSE -80.082555:-27.424477:-900.000000 --8.907555:-37.424477:-900.000000 +-19.732555:-37.424477:-900.000000 +PORT +colorbarposition:"120 100" PORT title:"Layer-3" FIN_BOX @@ -75,7 +81,9 @@ BOX creaMaracasVisu:ColorLayerImageView:Box14 ISEXEC:FALSE -67.454266:-45.155335:-900.000000 -3.720734:-55.155335:-900.000000 +2.425734:-55.155335:-900.000000 +PORT +ColorBarPosition:"180 100" PORT WinTitle:"Layer-Base" PORT @@ -85,7 +93,7 @@ BOX wx:LayoutLine:Box15 ISEXEC:FALSE -62.169855:-63.197436:-900.000000 --4.609855:-73.197436:-900.000000 +-25.594855:-73.197436:-900.000000 PORT WinTitle:"Layer-Base" FIN_BOX @@ -93,25 +101,25 @@ BOX std:MagicBox:Box16 ISEXEC:FALSE -120.543629:92.148908:-900.000000 --74.968629:82.148908:-900.000000 +-84.468629:82.148908:-900.000000 FIN_BOX BOX std:MagicBox:Box17 ISEXEC:FALSE -56.803503:99.000035:-900.000000 --11.228503:89.000035:-900.000000 +-20.728503:89.000035:-900.000000 FIN_BOX BOX std:MagicBox:Box18 ISEXEC:FALSE 49.603373:96.995800:-900.000000 -95.178373:86.995800:-900.000000 +85.678373:86.995800:-900.000000 FIN_BOX BOX std:MagicBox:Box19 ISEXEC:FALSE -3.260461:98.605866:-900.000000 -42.314539:88.605866:-900.000000 +32.814539:88.605866:-900.000000 FIN_BOX CONNECTIONS:26 CONNECTION 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 index 0d1722f..3d005b6 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - 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 +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Multi-Widget.bbs # ---------------------------------- include std @@ -18,6 +18,7 @@ description "Description ??" category "" new creaMiniTools:LayerCol-VolRend-SurRend_Widget Box08 + set Box08.colorbarposition "0 100" set Box08.title "Layer-1" new wx:LayoutTab Box10 @@ -26,12 +27,15 @@ new wx:LayoutTab Box10 new wx:LayoutTab Box11 new creaMiniTools:LayerCol-VolRend-SurRend_Widget Box12 + set Box12.colorbarposition "60 100" set Box12.title "Layer-2" new creaMiniTools:LayerCol-VolRend-SurRend_Widget Box13 + set Box13.colorbarposition "120 100" set Box13.title "Layer-3" new creaMaracasVisu:ColorLayerImageView Box14 + set Box14.ColorBarPosition "180 100" set Box14.WinTitle "Layer-Base" set Box14.lstTransparenceBoundaries "0" 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 0d08547..84f249e 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file -# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbg # ---------------------------------- APP_START @@ -15,28 +15,32 @@ COMPLEX_PORT widgetLayer -331.526176:-242.692372:-900.000000 FIN_COMPLEX_PORT -COMPLEXINPUTS:5 +COMPLEXINPUTS:6 COMPLEX_PORT Rederer3D -6.791163:282.884110:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT vtkbaseview1 --391.405057:285.327934:-900.000000 +-399.770890:339.182984:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT vtkbaseview2 --365.476084:283.026149:-900.000000 +-372.273323:343.678439:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT vtkbaseview3 --333.787254:286.793158:-900.000000 +-342.153087:343.785396:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT title --304.265811:289.354543:-900.000000 +-269.438888:346.907509:-900.000000 FIN_COMPLEX_PORT -BOXES:36 +COMPLEX_PORT +colorbarposition +-216.202353:341.176658:-900.000000 +FIN_COMPLEX_PORT +BOXES:46 BOX wx:LayoutLine:Box06 ISEXEC:FALSE @@ -49,15 +53,15 @@ BOX wx:CommandButton:Box23 ISEXEC:FALSE -257.536202:235.521759:-900.000000 --211.961202:225.521759:-900.000000 +-214.761202:225.521759:-900.000000 PORT Label:"Load Image" FIN_BOX BOX creaImageIO:ImagesChooserDialogBox:Box24 ISEXEC:FALSE --139.270189:186.004326:-900.000000 --68.095189:176.004326:-900.000000 +-145.924829:198.362943:-900.000000 +-94.449829:188.362943:-900.000000 PORT BoxProcessMode:"Manual" PORT @@ -66,11 +70,13 @@ FIN_BOX BOX creaMaracasVisu:ColorLayerImageView:Box26 ISEXEC:FALSE --405.969489:118.743039:-900.000000 --334.794489:108.743039:-900.000000 +-406.559776:119.333326:-900.000000 +-336.679776:109.333326:-900.000000 PORT FittingMode:"-1" PORT +Opacity:"50" +PORT PlainOrGradientColor:"false" PORT TypeControlsInterface:"2" @@ -81,25 +87,25 @@ BOX vtk:VolumeRenderer:Box32 ISEXEC:FALSE -231.930975:39.582988:-900.000000 --176.952438:29.582988:-900.000000 +-189.305975:29.582988:-900.000000 FIN_BOX BOX creaMaracasVisu:TransferFunctionView:Box33 ISEXEC:FALSE -269.742969:79.625606:-900.000000 --198.567969:69.625606:-900.000000 +-223.117969:69.625606:-900.000000 FIN_BOX BOX creaVtk:Actor:Box34 ISEXEC:FALSE -262.924791:18.810861:-900.000000 --230.149791:8.810861:-900.000000 +-231.324791:8.810861:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box35 ISEXEC:FALSE -64.879661:-47.894946:-900.000000 --19.304661:-57.894946:-900.000000 +-24.554661:-57.894946:-900.000000 PORT Active:"true" FIN_BOX @@ -107,7 +113,7 @@ BOX wxvtk:IsoSurfaceWidget:Box36 ISEXEC:FALSE -116.137275:77.578915:-900.000000 --70.562275:67.578915:-900.000000 +-72.987275:67.578915:-900.000000 PORT Colour:"1 1 0" FIN_BOX @@ -115,7 +121,7 @@ BOX vtk:vtkImageDataPointerRelay:Box38 ISEXEC:FALSE -124.390007:165.848654:-900.000000 --53.215007:155.848654:-900.000000 +-72.215007:155.848654:-900.000000 FIN_BOX BOX wx:LayoutTab:Box27 @@ -149,13 +155,13 @@ 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 ISEXEC:FALSE --121.404862:47.404626:-900.000000 --63.844862:37.404626:-900.000000 +-122.939685:18.104690:-900.000000 +-65.379685:8.104690:-900.000000 PORT WinTitle:"Surface Rendering-1" FIN_BOX @@ -177,7 +183,7 @@ BOX wx:LayoutSplit:Box41 ISEXEC:FALSE -336.519542:-218.920349:-900.000000 --290.944542:-228.920349:-900.000000 +-297.439542:-228.920349:-900.000000 PORT Proportion:"10" PORT @@ -195,37 +201,37 @@ BOX toolsbbtk:ImageVtkPropertiesWidget:Box44 ISEXEC:FALSE -114.046325:-116.656292:-900.000000 --42.871325:-126.656292:-900.000000 +-61.896325:-126.656292:-900.000000 FIN_BOX BOX wxvtk:IsoSurfaceWidget:Box47 ISEXEC:FALSE --55.620898:77.017382:-900.000000 --10.045898:67.017382:-900.000000 +-10.623333:80.588617:-900.000000 +32.526667:70.588617:-900.000000 PORT Colour:"1 0 0" FIN_BOX BOX wx:LayoutLine:Box48 ISEXEC:FALSE --50.254138:48.588000:-900.000000 --4.679138:38.588000:-900.000000 +-3.177861:18.541051:-900.000000 +54.382139:8.541051:-900.000000 PORT WinTitle:"Surface Rendering-2" FIN_BOX BOX wxvtk:IsoSurfaceWidget:Box49 ISEXEC:FALSE -11.110327:77.496106:-900.000000 -56.685327:67.496106:-900.000000 +92.534493:89.281183:-900.000000 +135.684493:79.281183:-900.000000 PORT Colour:"0 0 1" FIN_BOX BOX wx:LayoutLine:Box50 ISEXEC:FALSE -15.484422:48.922481:-900.000000 -61.059422:38.922481:-900.000000 +79.048547:27.882552:-900.000000 +136.608547:17.882552:-900.000000 PORT WinTitle:"Surface Rendering-3" FIN_BOX @@ -233,13 +239,13 @@ BOX std:MultipleInputs:Box52 ISEXEC:FALSE -97.024399:-98.117170:-900.000000 --51.449399:-108.117170:-900.000000 +-57.324399:-108.117170:-900.000000 FIN_BOX BOX wx:LayoutSplit:Box53 ISEXEC:FALSE -108.345291:-140.977108:-900.000000 --62.770291:-150.977108:-900.000000 +-69.265291:-150.977108:-900.000000 PORT Proportion:"90" FIN_BOX @@ -247,7 +253,7 @@ BOX wx:CommandButton:Box54 ISEXEC:FALSE -46.959604:-72.461857:-900.000000 --1.384604:-82.461857:-900.000000 +-4.184604:-82.461857:-900.000000 PORT Label:"Refresh" FIN_BOX @@ -255,7 +261,7 @@ BOX wx:LayoutLine:Box55 ISEXEC:FALSE -201.484471:-169.361130:-900.000000 --130.811069:-179.361130:-900.000000 +-143.924471:-179.361130:-900.000000 PORT WinTitle:"Image Properties" FIN_BOX @@ -263,25 +269,25 @@ BOX std:MagicBox:Box56 ISEXEC:FALSE -11.246369:183.643876:-900.000000 -34.328631:173.643876:-900.000000 +24.828631:173.643876:-900.000000 FIN_BOX BOX creaMaracasVisu:ImageChangeInformation:Box57 ISEXEC:FALSE -344.740309:139.788910:-900.000000 --273.565309:129.788910:-900.000000 +-293.215309:129.788910:-900.000000 FIN_BOX BOX creaMaracasVisu:ImageChangeInformation:Box59 ISEXEC:FALSE -437.948998:7.260499:-900.000000 --366.773998:-2.739501:-900.000000 +-386.423998:-2.739501:-900.000000 FIN_BOX BOX creaMaracasVisu:SliderMinMax-flexible:Box60 ISEXEC:FALSE -472.391816:186.923334:-900.000000 --401.216816:176.923334:-900.000000 +-425.266816:176.923334:-900.000000 PORT maxIn:"1000" PORT @@ -293,13 +299,13 @@ BOX std:MultipleInputs:Box61 ISEXEC:FALSE -409.338655:154.856618:-900.000000 --363.763655:144.856618:-900.000000 +-369.638655:144.856618:-900.000000 FIN_BOX BOX std:ConcatStrings:Box62 ISEXEC:FALSE -485.624471:157.257221:-900.000000 --440.049471:147.257221:-900.000000 +-445.899471:147.257221:-900.000000 PORT In2:" " FIN_BOX @@ -307,9 +313,93 @@ BOX std:ConcatStrings:Box63 ISEXEC:FALSE -464.024069:141.514915:-900.000000 --418.449069:131.514915:-900.000000 +-424.299069:131.514915:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box64 +ISEXEC:FALSE +-94.902840:37.290548:-900.000000 +-25.022840:27.290548:-900.000000 +PORT +FittingMode:"-1" +PORT +Opacity:"0" +PORT +TypeControlsInterface:"2" +PORT +lstTransparenceBoundaries:"0" +FIN_BOX +BOX +std:MagicBox:Box66 +ISEXEC:FALSE +-378.916808:294.087720:-900.000000 +-342.841808:284.087720:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box67 +ISEXEC:FALSE +-329.605133:294.186576:-900.000000 +-293.530133:284.186576:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box68 +ISEXEC:FALSE +-443.469312:294.858668:-900.000000 +-407.394312:284.858668:-900.000000 +FIN_BOX +BOX +creaVtk:ImageThreshold:Box69 +ISEXEC:FALSE +-96.263709:56.700807:-900.000000 +-54.463709:46.700807:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box70 +ISEXEC:FALSE +12.235302:44.076978:-900.000000 +82.115302:34.076978:-900.000000 +PORT +FittingMode:"-1" +PORT +Opacity:"0" +PORT +TypeControlsInterface:"2" +PORT +lstTransparenceBoundaries:"0" +FIN_BOX +BOX +creaVtk:ImageThreshold:Box71 +ISEXEC:FALSE +9.088816:63.130112:-900.000000 +50.888816:53.130112:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ColorLayerImageView:Box72 +ISEXEC:FALSE +106.159874:49.792036:-900.000000 +176.039874:39.792036:-900.000000 +PORT +FittingMode:"-1" +PORT +Opacity:"0" +PORT +TypeControlsInterface:"2" +PORT +lstTransparenceBoundaries:"0" FIN_BOX -CONNECTIONS:69 +BOX +creaVtk:ImageThreshold:Box73 +ISEXEC:FALSE +107.298870:72.059283:-900.000000 +149.098870:62.059283:-900.000000 +FIN_BOX +BOX +wx:LayoutCenter:Box74 +ISEXEC:FALSE +-317.661384:11.427953:-900.000000 +-278.361384:1.427953:-900.000000 +FIN_BOX +CONNECTIONS:96 CONNECTION Box23:BoxChange:Box24:BoxExecute NumberOfControlPoints:0 @@ -344,9 +434,6 @@ CONNECTION Box33:Widget:Box30:Widget1 NumberOfControlPoints:0 CONNECTION -Box29:Widget:Box06:Widget3 -NumberOfControlPoints:0 -CONNECTION Box37:Widget:Box31:Widget1 NumberOfControlPoints:0 CONNECTION @@ -368,9 +455,6 @@ CONNECTION Box23:BoxChange:Box32:BoxExecute NumberOfControlPoints:0 CONNECTION -Box23:Widget:Box41:Widget1 -NumberOfControlPoints:0 -CONNECTION Box40:Widget:Box41:Widget2 NumberOfControlPoints:0 CONNECTION @@ -449,15 +533,6 @@ CONNECTION Box41:Widget:widgetLayer:widgetLayer NumberOfControlPoints:0 CONNECTION -vtkbaseview1:vtkbaseview1:Box26:WxVtkBaseView -NumberOfControlPoints:0 -CONNECTION -vtkbaseview2:vtkbaseview2:Box26:WxVtkBaseView1 -NumberOfControlPoints:0 -CONNECTION -vtkbaseview3:vtkbaseview3:Box26:WxVtkBaseView2 -NumberOfControlPoints:0 -CONNECTION title:title:Box41:WinTitle NumberOfControlPoints:0 CONNECTION @@ -517,4 +592,100 @@ NumberOfControlPoints:0 CONNECTION Box62:Out:Box26:lstRangeForColorBar NumberOfControlPoints:0 +CONNECTION +colorbarposition:colorbarposition:Box26:ColorBarPosition +NumberOfControlPoints:0 +CONNECTION +Box29:Widget:Box06:Widget7 +NumberOfControlPoints:0 +CONNECTION +Box64:Widget:Box37:Widget3 +NumberOfControlPoints:0 +CONNECTION +vtkbaseview1:vtkbaseview1:Box68:In +NumberOfControlPoints:0 +CONNECTION +vtkbaseview2:vtkbaseview2:Box66:In +NumberOfControlPoints:0 +CONNECTION +vtkbaseview3:vtkbaseview3:Box67:In +NumberOfControlPoints:0 +CONNECTION +Box68:Out:Box26:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box66:Out:Box26:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box26:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box68:Out:Box64:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box66:Out:Box64:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box64:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box36:BoxChange:Box64:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box69:Out:Box64:In +NumberOfControlPoints:0 +CONNECTION +Box36:OutIsovalue:Box69:Lower +NumberOfControlPoints:0 +CONNECTION +Box26:NewImage:Box69:In +NumberOfControlPoints:0 +CONNECTION +Box71:Out:Box70:In +NumberOfControlPoints:0 +CONNECTION +Box70:Widget:Box48:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box47:OutIsovalue:Box71:Lower +NumberOfControlPoints:0 +CONNECTION +Box47:BoxChange:Box70:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box73:Out:Box72:In +NumberOfControlPoints:0 +CONNECTION +Box49:OutIsovalue:Box73:Lower +NumberOfControlPoints:0 +CONNECTION +Box72:Widget:Box50:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box49:BoxChange:Box72:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box68:Out:Box70:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box66:Out:Box70:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box70:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box68:Out:Box72:WxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box66:Out:Box72:WxVtkBaseView1 +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box72:WxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box23:Widget:Box74:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box74:Widget:Box41:Widget1 +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 0a193bd..74e3db8 100644 --- a/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs +++ b/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs @@ -1,6 +1,6 @@ # ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) -# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs +# - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs # ---------------------------------- include std @@ -33,6 +33,7 @@ new creaImageIO:ImagesChooserDialogBox Box24 new creaMaracasVisu:ColorLayerImageView Box26 set Box26.FittingMode "-1" + set Box26.Opacity "50" set Box26.PlainOrGradientColor "false" set Box26.TypeControlsInterface "2" set Box26.lstTransparenceBoundaries "0" @@ -121,6 +122,38 @@ new std:ConcatStrings Box62 new std:ConcatStrings Box63 +new creaMaracasVisu:ColorLayerImageView Box64 + set Box64.FittingMode "-1" + set Box64.Opacity "0" + set Box64.TypeControlsInterface "2" + set Box64.lstTransparenceBoundaries "0" + +new std:MagicBox Box66 + +new std:MagicBox Box67 + +new std:MagicBox Box68 + +new creaVtk:ImageThreshold Box69 + +new creaMaracasVisu:ColorLayerImageView Box70 + set Box70.FittingMode "-1" + set Box70.Opacity "0" + set Box70.TypeControlsInterface "2" + set Box70.lstTransparenceBoundaries "0" + +new creaVtk:ImageThreshold Box71 + +new creaMaracasVisu:ColorLayerImageView Box72 + set Box72.FittingMode "-1" + set Box72.Opacity "0" + set Box72.TypeControlsInterface "2" + set Box72.lstTransparenceBoundaries "0" + +new creaVtk:ImageThreshold Box73 + +new wx:LayoutCenter Box74 + connect Box23.BoxChange Box24.BoxExecute connect Box33.Active Box34.Active @@ -133,7 +166,6 @@ connect Box28.Widget Box27.Widget1 connect Box27.Widget Box06.Widget2 connect Box30.Widget Box29.Widget1 connect Box33.Widget Box30.Widget1 -connect Box29.Widget Box06.Widget3 connect Box37.Widget Box31.Widget1 connect Box31.Widget Box06.Widget4 connect Box34.BoxChange Box35.BoxExecute @@ -141,7 +173,6 @@ connect Box36.Widget Box37.Widget1 connect Box23.BoxChange Box36.BoxExecute connect Box23.BoxChange Box33.BoxExecute connect Box23.BoxChange Box32.BoxExecute -connect Box23.Widget Box41.Widget1 connect Box40.Widget Box41.Widget2 connect Box06.Widget Box40.Widget1 connect Box39.Widget Box43.Widget1 @@ -185,13 +216,42 @@ connect Box63.Out Box26.lstTransparenceBoundaries connect Box60.outstart Box62.In1 connect Box60.outend Box62.In3 connect Box62.Out Box26.lstRangeForColorBar +connect Box29.Widget Box06.Widget7 +connect Box64.Widget Box37.Widget3 +connect Box68.Out Box26.WxVtkBaseView +connect Box66.Out Box26.WxVtkBaseView1 +connect Box67.Out Box26.WxVtkBaseView2 +connect Box68.Out Box64.WxVtkBaseView +connect Box66.Out Box64.WxVtkBaseView1 +connect Box67.Out Box64.WxVtkBaseView2 +connect Box36.BoxChange Box64.BoxExecute +connect Box69.Out Box64.In +connect Box36.OutIsovalue Box69.Lower +connect Box26.NewImage Box69.In +connect Box71.Out Box70.In +connect Box70.Widget Box48.Widget3 +connect Box47.OutIsovalue Box71.Lower +connect Box47.BoxChange Box70.BoxExecute +connect Box73.Out Box72.In +connect Box49.OutIsovalue Box73.Lower +connect Box72.Widget Box50.Widget4 +connect Box49.BoxChange Box72.BoxExecute +connect Box68.Out Box70.WxVtkBaseView +connect Box66.Out Box70.WxVtkBaseView1 +connect Box67.Out Box70.WxVtkBaseView2 +connect Box68.Out Box72.WxVtkBaseView +connect Box66.Out Box72.WxVtkBaseView1 +connect Box67.Out Box72.WxVtkBaseView2 +connect Box23.Widget Box74.Widget2 +connect Box74.Widget Box41.Widget1 # Complex input ports input Rederer3D Box56.In " " -input vtkbaseview1 Box26.WxVtkBaseView " " -input vtkbaseview2 Box26.WxVtkBaseView1 " " -input vtkbaseview3 Box26.WxVtkBaseView2 " " input title Box41.WinTitle " " +input colorbarposition Box26.ColorBarPosition " " +input vtkbaseview1 Box68.In " " +input vtkbaseview2 Box66.In " " +input vtkbaseview3 Box67.In " " # Complex output ports output widgetLayer Box41.Widget " " -- 2.45.1