From 0c0227441e3ea97a023dce83ec3dc69f8344bf4f Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 27 Jul 2016 17:09:30 +0200 Subject: [PATCH] #2999 CreaMiniTools Feature New Normal - crop-viewer-widget-manaul --- .../bbs/appli/viewerNVExample.bbg | 549 ++++++------------ .../bbs/appli/viewerNVExample.bbs | 298 ++++------ .../bbs/boxes/crop-viewer-widget-manual.bbg | 246 ++++++++ .../bbs/boxes/crop-viewer-widget-manual.bbs | 101 ++++ .../bbs/boxes/crop-viewer-widget.bbg | 264 +++++++++ .../bbs/boxes/crop-viewer-widget.bbs | 106 ++++ 6 files changed, 994 insertions(+), 570 deletions(-) create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbg create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbg create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg index 83a66a5..c6d1feb 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbg @@ -9,12 +9,12 @@ DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE COMPLEXINPUTS:0 -BOXES:58 +BOXES:36 BOX creaImageIO:ImagesChooserDialogBox:Box00 ISEXEC:FALSE --19.703199:157.162984:-900.000000 -51.471801:147.162984:-900.000000 +-19.703199:161.952689:-900.000000 +51.471801:151.952689:-900.000000 FIN_BOX BOX creaMaracasVisu:ViewerNV:Box01 @@ -63,24 +63,24 @@ FIN_BOX BOX wx:LayoutTab:Box11 ISEXEC:FALSE --32.975878:-325.249668:-900.000000 -24.584122:-335.249668:-900.000000 +-119.524604:-326.768067:-900.000000 +-61.964604:-336.768067:-900.000000 FIN_BOX BOX wx:LayoutLine:Box14 ISEXEC:FALSE --122.874788:-77.534998:-900.000000 --65.314788:-87.534998:-900.000000 +-107.476803:-88.313588:-900.000000 +-49.916803:-98.313588:-900.000000 PORT Orientation:"H" FIN_BOX BOX wx:LayoutSplit:Box15 ISEXEC:FALSE --17.624297:-307.804136:-900.000000 -27.950703:-317.804136:-900.000000 +-88.989036:-293.379348:-900.000000 +-43.414036:-303.379348:-900.000000 PORT -Proportion:"5" +Proportion:"15" PORT WinTitle:"Crop" FIN_BOX @@ -92,9 +92,13 @@ ISEXEC:FALSE PORT In:"100" PORT +Label:"true" +PORT Max:"400" PORT ReactiveOnTrack:"true" +PORT +Title:"size X" FIN_BOX BOX wx:Slider:Box20 @@ -104,9 +108,13 @@ ISEXEC:FALSE PORT In:"100" PORT +Label:"true" +PORT Max:"400" PORT ReactiveOnTrack:"true" +PORT +Title:"size Y" FIN_BOX BOX wx:Slider:Box21 @@ -116,21 +124,19 @@ ISEXEC:FALSE PORT In:"100" PORT +Label:"true" +PORT Max:"400" PORT ReactiveOnTrack:"true" -FIN_BOX -BOX -vtk:ExtractVtkImageFilter:Box22 -ISEXEC:FALSE --3.534706:-111.784554:-900.000000 -67.640294:-121.784554:-900.000000 +PORT +Title:"size Z" FIN_BOX BOX std:ConcatStrings:Box23 ISEXEC:FALSE --48.084555:-9.255899:-900.000000 --2.509555:-19.255899:-900.000000 +-40.292769:-18.216453:-900.000000 +5.282231:-28.216453:-900.000000 PORT In2:" " PORT @@ -149,298 +155,186 @@ ISEXEC:FALSE -41.028558:146.948489:-900.000000 FIN_BOX BOX -vtk:VolumeRenderer:Box29 -ISEXEC:FALSE -83.777401:-191.363708:-900.000000 -129.352401:-201.363708:-900.000000 -FIN_BOX -BOX -creaVtk:Actor:Box30 -ISEXEC:FALSE -63.910074:-209.073426:-900.000000 -96.685074:-219.073426:-900.000000 -PORT -Active:"true" -FIN_BOX -BOX -creaMaracasVisu:TransferFunctionView:Box31 -ISEXEC:FALSE -95.265248:-168.393945:-900.000000 -166.440248:-178.393945:-900.000000 -FIN_BOX -BOX -wx:LayoutLine:Box32 -ISEXEC:FALSE -100.622410:-224.371098:-900.000000 -158.182410:-234.371098:-900.000000 -PORT -WinTitle:"Base Image" -FIN_BOX -BOX -vtk:UpdateRender:Box33 -ISEXEC:FALSE -49.061088:-222.497255:-900.000000 -94.636088:-232.497255:-900.000000 -PORT -Active:"true" -FIN_BOX -BOX std:MultipleInputs:Box34 ISEXEC:FALSE -128.460611:-110.413790:-900.000000 -174.035611:-120.413790:-900.000000 -FIN_BOX -BOX -wxvtk:IsoSurfaceWidget:Box35 -ISEXEC:FALSE -166.603519:-163.872543:-900.000000 -212.178519:-173.872543:-900.000000 +23.509727:-94.029608:-900.000000 +69.084727:-104.029608:-900.000000 FIN_BOX BOX wx:LayoutTab:Box36 ISEXEC:FALSE -96.766695:-245.028557:-900.000000 -154.326695:-255.028557:-900.000000 -FIN_BOX -BOX -vtk:ExtractVtkImageFilter:Box38 -ISEXEC:FALSE -426.417120:-25.902142:-900.000000 -497.592120:-35.902142:-900.000000 +85.590716:-276.693831:-900.000000 +143.150716:-286.693831:-900.000000 FIN_BOX BOX -vtk:VolumeRenderer:Box39 +std:MultipleInputs:Box50 ISEXEC:FALSE -305.495195:-96.092655:-900.000000 -351.070195:-106.092655:-900.000000 +-69.433744:-48.846784:-900.000000 +-23.858744:-58.846784:-900.000000 FIN_BOX BOX -creaVtk:Actor:Box40 +wx:LayoutLine:Box57 ISEXEC:FALSE -262.510079:-113.398264:-900.000000 -295.285079:-123.398264:-900.000000 +-147.527923:-145.339995:-900.000000 +-89.967923:-155.339995:-900.000000 PORT -Active:"true" -FIN_BOX -BOX -creaMaracasVisu:TransferFunctionView:Box41 -ISEXEC:FALSE -312.433239:-77.991269:-900.000000 -383.608239:-87.991269:-900.000000 +WinTitle:"Layer" FIN_BOX BOX -wx:LayoutLine:Box42 -ISEXEC:FALSE -324.617301:-166.036693:-900.000000 -382.177301:-176.036693:-900.000000 +creaVtk:OutputWindow:Box71 +ISEXEC:TRUE +-127.211392:-360.773780:-900.000000 +-81.636392:-370.773780:-900.000000 FIN_BOX BOX -vtk:UpdateRender:Box43 -ISEXEC:FALSE -248.166567:-127.198858:-900.000000 -293.741567:-137.198858:-900.000000 +wx:LayoutSplit:Box72 +ISEXEC:TRUE +-36.039635:-359.784631:-900.000000 +9.535365:-369.784631:-900.000000 PORT -Active:"true" -FIN_BOX -BOX -std:MultipleInputs:Box44 -ISEXEC:FALSE -350.281556:-10.351648:-900.000000 -395.856556:-20.351648:-900.000000 -FIN_BOX -BOX -wxvtk:IsoSurfaceWidget:Box45 -ISEXEC:FALSE -398.943756:-77.840714:-900.000000 -444.518756:-87.840714:-900.000000 -FIN_BOX -BOX -wx:DropFiles:Box46 -ISEXEC:FALSE -268.752177:86.671868:-900.000000 -314.327177:76.671868:-900.000000 +Orientation:"H" FIN_BOX BOX -vtk:MetaImageReader:Box47 +creaMaracasVisu:Measure3DLength_Widget:Box74 ISEXEC:FALSE -272.836826:58.732873:-900.000000 -318.411826:48.732873:-900.000000 +-274.335219:-145.856647:-900.000000 +-203.160219:-155.856647:-900.000000 FIN_BOX BOX -wx:OutputText:Box48 +wx:LayoutLine:Box75 ISEXEC:FALSE -395.723995:-97.247333:-900.000000 -441.298995:-107.247333:-900.000000 +-152.976375:-295.546787:-900.000000 +-95.416375:-305.546787:-900.000000 PORT -In:"Drop your *.MHD file here!" -FIN_BOX -BOX -wx:OutputText:Box49 -ISEXEC:FALSE -317.103321:15.441220:-900.000000 -362.678321:5.441220:-900.000000 -FIN_BOX -BOX -std:MultipleInputs:Box50 -ISEXEC:FALSE --69.716824:-40.631709:-900.000000 --24.141824:-50.631709:-900.000000 +WinTitle:"Tools" FIN_BOX BOX -wx:LayoutLine:Box52 +wx:LayoutLine:Box77 ISEXEC:FALSE -249.829988:-165.708142:-900.000000 -307.389988:-175.708142:-900.000000 +-248.998804:-81.162015:-900.000000 +-191.438804:-91.162015:-900.000000 PORT -WinTitle:"Image A" +Orientation:"H" FIN_BOX BOX -wx:LayoutSplit:Box53 +wx:Slider:Box78 ISEXEC:FALSE -234.764872:-191.826462:-900.000000 -280.339872:-201.826462:-900.000000 +-252.852156:3.171851:-900.000000 +-201.452156:-6.828149:-900.000000 PORT -Proportion:"25" +In:"0" PORT -WinTitle:"Image A" -FIN_BOX -BOX -std:MathOperationVector:Box54 -ISEXEC:FALSE --51.926182:-69.940546:-900.000000 -19.248818:-79.940546:-900.000000 +Label:"true" PORT -In1:"-2 -2 -2" +Max:"2000" PORT -Type:"3" -FIN_BOX -BOX -std:MathOperationVector:Box56 -ISEXEC:FALSE -34.449543:-64.270546:-900.000000 -105.624543:-74.270546:-900.000000 +Min:"-2000" PORT -In1:"-2 -2 -2" -FIN_BOX -BOX -wx:LayoutLine:Box57 -ISEXEC:FALSE --147.527923:-145.339995:-900.000000 --89.967923:-155.339995:-900.000000 +ReactiveOnTrack:"true" PORT -WinTitle:"Layer" +Title:"delta X" FIN_BOX BOX -creaImageIO:ImagesChooserDialogBox:Box58 +wx:Slider:Box79 ISEXEC:FALSE -411.972303:58.695318:-900.000000 -483.147303:48.695318:-900.000000 +-228.513959:18.615970:-900.000000 +-177.113959:8.615970:-900.000000 PORT -BoxProcessMode:"Manual" +In:"0" PORT -Title:"Load Image" -FIN_BOX -BOX -wx:CommandButton:Box59 -ISEXEC:FALSE -379.620954:94.019278:-900.000000 -425.195954:84.019278:-900.000000 +Label:"true" PORT -Label:"Load Image" -FIN_BOX -BOX -std:SharedMemory:Box60 -ISEXEC:FALSE -396.168144:10.589474:-900.000000 -441.743144:0.589474:-900.000000 -FIN_BOX -BOX -std:SharedMemory:Box61 -ISEXEC:FALSE -341.597292:37.223198:-900.000000 -387.172292:27.223198:-900.000000 -FIN_BOX -BOX -std:MultipleInputs:Box62 -ISEXEC:FALSE -323.985292:58.615385:-900.000000 -369.560292:48.615385:-900.000000 +Max:"2000" +PORT +Min:"-2000" +PORT +ReactiveOnTrack:"true" +PORT +Title:"delta Y" FIN_BOX BOX -wx:LayoutLine:Box64 +wx:Slider:Box80 ISEXEC:FALSE -374.663773:-124.687454:-900.000000 -432.223773:-134.687454:-900.000000 +-191.021078:3.992223:-900.000000 +-139.621078:-6.007777:-900.000000 PORT -Orientation:"H" +ChangeResolution:"true" +PORT +In:"0" +PORT +Label:"true" +PORT +Max:"2000" +PORT +Min:"-2000" +PORT +ReactiveOnTrack:"true" +PORT +Title:"delta Z" FIN_BOX BOX -vtk:vtkImageDataPointerRelay:Box67 +wx:LayoutLine:Box81 ISEXEC:FALSE -426.163492:36.703343:-900.000000 -497.338492:26.703343:-900.000000 +-115.952612:-113.323200:-900.000000 +-58.392612:-123.323200:-900.000000 PORT -BoxProcessMode:"Always" +Orientation:"V" FIN_BOX BOX -vtk:vtkImageDataPointerRelay:Box68 +std:ConcatStrings:Box86 ISEXEC:FALSE -281.306207:39.611975:-900.000000 -352.481207:29.611975:-900.000000 +-173.942465:-43.014228:-900.000000 +-128.367465:-53.014228:-900.000000 +PORT +In2:" " PORT -BoxProcessMode:"Always" +In4:" " FIN_BOX BOX -creaMaracasVisu:ImageChangeInformation:Box69 +std:MathOperationVector:Box87 ISEXEC:FALSE -98.960498:-132.545210:-900.000000 -170.135498:-142.545210:-900.000000 -PORT -NewSpacing:"1 1 1" +-153.040843:-77.209071:-900.000000 +-81.865843:-87.209071:-900.000000 FIN_BOX BOX -creaMaracasVisu:ImageChangeInformation:Box70 +creaMiniTools:crop-viewer-widget:Box88 ISEXEC:FALSE -365.763280:-44.853932:-900.000000 -436.938280:-54.853932:-900.000000 +20.852498:-188.623188:-900.000000 +66.427498:-198.623188:-900.000000 PORT -NewSpacing:"1 1 1" -FIN_BOX -BOX -creaVtk:OutputWindow:Box71 -ISEXEC:TRUE --23.201081:-358.496182:-900.000000 -22.373919:-368.496182:-900.000000 +title:"Base Image A" FIN_BOX BOX -wx:LayoutSplit:Box72 -ISEXEC:TRUE -37.602702:-358.266232:-900.000000 -83.177702:-368.266232:-900.000000 +creaMiniTools:crop-viewer-widget:Box89 +ISEXEC:FALSE +93.625618:-198.149131:-900.000000 +139.200618:-208.149131:-900.000000 PORT -Orientation:"H" +title:"Base Image B" FIN_BOX BOX -creaMaracasVisu:Measure3DLength_Widget:Box74 +creaMiniTools:crop-viewer-widget-manual:Box85 ISEXEC:FALSE -192.572382:-243.793363:-900.000000 -263.747382:-253.793363:-900.000000 +171.088596:-188.775244:-900.000000 +242.263596:-198.775244:-900.000000 +PORT +_title:"Image A" FIN_BOX BOX -wx:LayoutLine:Box75 +creaMiniTools:crop-viewer-widget-manual:Box90 ISEXEC:FALSE -123.372189:-287.954793:-900.000000 -180.932189:-297.954793:-900.000000 +247.547207:-186.402300:-900.000000 +318.722207:-196.402300:-900.000000 PORT -WinTitle:"Tools" +_title:"Image B" FIN_BOX BOX -vtk:CleanExternalPlane:Box76 +std:MultipleInputs:Box91 ISEXEC:FALSE -363.678747:-61.628741:-900.000000 -409.253747:-71.628741:-900.000000 +-259.067762:-50.286627:-900.000000 +-213.492762:-60.286627:-900.000000 FIN_BOX -CONNECTIONS:102 +CONNECTIONS:71 CONNECTION Box04:widget:Box05:Widget2 NumberOfControlPoints:0 @@ -466,9 +360,6 @@ CONNECTION Box01:wxVtkBaseView4:Box16:wxvtkbaseview3 NumberOfControlPoints:0 CONNECTION -Box14:Widget:Box15:Widget1 -NumberOfControlPoints:0 -CONNECTION Box15:Widget:Box11:Widget2 NumberOfControlPoints:0 CONNECTION @@ -490,9 +381,6 @@ CONNECTION Box21:Out:Box23:In5 NumberOfControlPoints:0 CONNECTION -Box23:Out:Box22:Size -NumberOfControlPoints:0 -CONNECTION Box24:Out:Box01:In NumberOfControlPoints:0 CONNECTION @@ -502,90 +390,12 @@ CONNECTION Box24:Out:Box06:In NumberOfControlPoints:0 CONNECTION -Box24:Out:Box22:In -NumberOfControlPoints:0 -CONNECTION -Box01:Renderer1:Box30:Renderer -NumberOfControlPoints:0 -CONNECTION -Box31:Widget:Box32:Widget1 -NumberOfControlPoints:0 -CONNECTION -Box31:Active:Box30:Active -NumberOfControlPoints:0 -CONNECTION -Box31:OpacityFunction:Box29:OpacityFunction -NumberOfControlPoints:0 -CONNECTION -Box31:ColorFunction:Box29:ColorFunction1 -NumberOfControlPoints:0 -CONNECTION -Box29:Out:Box30:In -NumberOfControlPoints:0 -CONNECTION -Box30:BoxChange:Box33:BoxExecute -NumberOfControlPoints:0 -CONNECTION -Box01:Renderer1:Box33:Renderer -NumberOfControlPoints:0 -CONNECTION Box01:BoxChange:Box34:In1 NumberOfControlPoints:0 CONNECTION -Box34:BoxChange:Box31:BoxExecute -NumberOfControlPoints:0 -CONNECTION -Box34:BoxChange:Box29:BoxExecute -NumberOfControlPoints:0 -CONNECTION -Box22:Out:Box29:In -NumberOfControlPoints:0 -CONNECTION -Box22:Out:Box35:In -NumberOfControlPoints:0 -CONNECTION -Box01:Renderer1:Box35:vtkRenderer -NumberOfControlPoints:0 -CONNECTION -Box35:Widget:Box32:Widget2 -NumberOfControlPoints:0 -CONNECTION Box36:Widget:Box15:Widget2 NumberOfControlPoints:0 CONNECTION -Box32:Widget:Box36:Widget1 -NumberOfControlPoints:0 -CONNECTION -Box41:Active:Box40:Active -NumberOfControlPoints:0 -CONNECTION -Box41:OpacityFunction:Box39:OpacityFunction -NumberOfControlPoints:0 -CONNECTION -Box41:ColorFunction:Box39:ColorFunction1 -NumberOfControlPoints:0 -CONNECTION -Box39:Out:Box40:In -NumberOfControlPoints:0 -CONNECTION -Box40:BoxChange:Box43:BoxExecute -NumberOfControlPoints:0 -CONNECTION -Box23:Out:Box38:Size -NumberOfControlPoints:0 -CONNECTION -Box46:LstPaths:Box47:In -NumberOfControlPoints:0 -CONNECTION -Box01:BoxChange:Box44:In1 -NumberOfControlPoints:0 -CONNECTION -Box01:Renderer1:Box45:vtkRenderer -NumberOfControlPoints:0 -CONNECTION -Box01:Renderer1:Box40:Renderer -NumberOfControlPoints:0 -CONNECTION Box19:BoxChange:Box50:In1 NumberOfControlPoints:0 CONNECTION @@ -595,156 +405,147 @@ CONNECTION Box21:BoxChange:Box50:In3 NumberOfControlPoints:0 CONNECTION -Box50:Out:Box44:In2 -NumberOfControlPoints:0 -CONNECTION -Box49:Widget:Box52:Widget2 -NumberOfControlPoints:0 -CONNECTION -Box45:Widget:Box42:Widget2 -NumberOfControlPoints:0 -CONNECTION -Box41:Widget:Box42:Widget1 +Box57:Widget:Box11:Widget1 NumberOfControlPoints:0 CONNECTION -Box52:Widget:Box53:Widget1 +Box16:widget:Box57:Widget1 NumberOfControlPoints:0 CONNECTION -Box42:Widget:Box53:Widget2 +Box11:Widget:Box72:Widget1 NumberOfControlPoints:0 CONNECTION -Box53:Widget:Box36:Widget2 +Box05:Widget:Box72:Widget2 NumberOfControlPoints:0 CONNECTION -Box53:Widget:Box46:Widget +Box01:Point:Box74:point NumberOfControlPoints:0 CONNECTION -Box01:Renderer1:Box43:Renderer +Box24:Out:Box74:vtkimagedata NumberOfControlPoints:0 CONNECTION -Box44:BoxChange:Box39:BoxExecute +Box01:Renderer1:Box74:vtkrender NumberOfControlPoints:0 CONNECTION -Box44:BoxChange:Box41:BoxExecute +Box74:widget:Box75:Widget1 NumberOfControlPoints:0 CONNECTION -Box46:BoxChange:Box47:BoxExecute +Box75:Widget:Box11:Widget3 NumberOfControlPoints:0 CONNECTION -Box23:Out:Box54:In0 +Box26:Out:Box24:In NumberOfControlPoints:0 CONNECTION -Box01:Point:Box56:In0 +Box78:Widget:Box77:Widget1 NumberOfControlPoints:0 CONNECTION -Box54:Out:Box56:In1 +Box79:Widget:Box77:Widget2 NumberOfControlPoints:0 CONNECTION -Box56:Out:Box22:Index +Box80:Widget:Box77:Widget3 NumberOfControlPoints:0 CONNECTION -Box57:Widget:Box11:Widget1 +Box81:Widget:Box15:Widget1 NumberOfControlPoints:0 CONNECTION -Box16:widget:Box57:Widget1 +Box14:Widget:Box81:Widget1 NumberOfControlPoints:0 CONNECTION -Box59:BoxChange:Box58:BoxExecute +Box77:Widget:Box81:Widget2 NumberOfControlPoints:0 CONNECTION -Box46:LstPaths:Box61:In +Box78:Out:Box86:In1 NumberOfControlPoints:0 CONNECTION -Box58:FileName:Box61:In1 +Box79:Out:Box86:In3 NumberOfControlPoints:0 CONNECTION -Box61:Out:Box49:In +Box80:Out:Box86:In5 NumberOfControlPoints:0 CONNECTION -Box46:BoxChange:Box62:In1 +Box86:Out:Box87:In0 NumberOfControlPoints:0 CONNECTION -Box59:BoxChange:Box62:In2 +Box01:Point:Box87:In1 NumberOfControlPoints:0 CONNECTION -Box62:BoxChange:Box49:BoxExecute +Box50:Out:Box34:In2 NumberOfControlPoints:0 CONNECTION -Box58:BoxChange:Box44:In3 +Box01:Renderer1:Box88:renderer NumberOfControlPoints:0 CONNECTION -Box56:Out:Box38:Index +Box23:Out:Box88:size NumberOfControlPoints:0 CONNECTION -Box48:Widget:Box64:Widget2 +Box87:Out:Box88:position NumberOfControlPoints:0 CONNECTION -Box59:Widget:Box64:Widget1 +Box24:Out:Box88:image NumberOfControlPoints:0 CONNECTION -Box64:Widget:Box52:Widget1 +Box34:BoxChange:Box88:box_Execute NumberOfControlPoints:0 CONNECTION -Box44:BoxChange:Box38:BoxExecute +Box88:widget:Box36:Widget1 NumberOfControlPoints:0 CONNECTION -Box58:Out:Box67:In +Box01:Renderer1:Box89:renderer NumberOfControlPoints:0 CONNECTION -Box67:Out:Box60:In1 +Box23:Out:Box89:size NumberOfControlPoints:0 CONNECTION -Box47:Out:Box68:In +Box87:Out:Box89:position NumberOfControlPoints:0 CONNECTION -Box58:Out:Box38:In +Box34:BoxChange:Box89:box_Execute NumberOfControlPoints:0 CONNECTION -Box68:Out:Box60:In +Box01:Renderer1:Box85:_renderer NumberOfControlPoints:0 CONNECTION -Box22:Out:Box69:In +Box34:BoxChange:Box85:_execute NumberOfControlPoints:0 CONNECTION -Box69:Out:Box31:In +Box23:Out:Box85:_size NumberOfControlPoints:0 CONNECTION -Box00:Out:Box24:In +Box87:Out:Box85:_position NumberOfControlPoints:0 CONNECTION -Box11:Widget:Box72:Widget1 +Box85:wxwidget:Box36:Widget3 NumberOfControlPoints:0 CONNECTION -Box05:Widget:Box72:Widget2 +Box01:Renderer1:Box90:_renderer NumberOfControlPoints:0 CONNECTION -Box01:Point:Box74:point +Box23:Out:Box90:_size NumberOfControlPoints:0 CONNECTION -Box24:Out:Box74:vtkimagedata +Box87:Out:Box90:_position NumberOfControlPoints:0 CONNECTION -Box01:Renderer1:Box74:vtkrender +Box34:BoxChange:Box90:_execute NumberOfControlPoints:0 CONNECTION -Box74:widget:Box75:Widget1 +Box90:wxwidget:Box36:Widget4 NumberOfControlPoints:0 CONNECTION -Box75:Widget:Box11:Widget3 +Box89:widget:Box36:Widget2 NumberOfControlPoints:0 CONNECTION -Box38:Out:Box70:In +Box24:Out:Box89:image NumberOfControlPoints:0 CONNECTION -Box38:Out:Box39:In +Box78:BoxChange:Box91:In1 NumberOfControlPoints:0 CONNECTION -Box38:Out:Box45:In +Box79:BoxChange:Box91:In2 NumberOfControlPoints:0 CONNECTION -Box70:Out:Box76:In +Box80:BoxChange:Box91:In3 NumberOfControlPoints:0 CONNECTION -Box76:Out:Box41:In +Box91:BoxChange:Box34:In3 NumberOfControlPoints:0 APP_END diff --git a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs index 80f003d..af89a1a 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs @@ -13,10 +13,9 @@ include creaMaracasVisu include toolsbbtk include wx include creaMiniTools -include vtk include std +include vtk include creaVtk -include wxvtk author "Author ??" description "Description ??" @@ -46,25 +45,29 @@ new wx:LayoutLine Box14 set Box14.Orientation "H" new wx:LayoutSplit Box15 - set Box15.Proportion "5" + set Box15.Proportion "15" set Box15.WinTitle "Crop" new wx:Slider Box19 set Box19.In "100" + set Box19.Label "true" set Box19.Max "400" set Box19.ReactiveOnTrack "true" + set Box19.Title "size X" new wx:Slider Box20 set Box20.In "100" + set Box20.Label "true" set Box20.Max "400" set Box20.ReactiveOnTrack "true" + set Box20.Title "size Y" new wx:Slider Box21 set Box21.In "100" + set Box21.Label "true" set Box21.Max "400" set Box21.ReactiveOnTrack "true" - -new vtk:ExtractVtkImageFilter Box22 + set Box21.Title "size Z" new std:ConcatStrings Box23 set Box23.In2 " " @@ -74,110 +77,75 @@ new vtk:vtkImageDataPointerRelay Box24 new vtk:LoadHola Box26 -new vtk:VolumeRenderer Box29 - -new creaVtk:Actor Box30 - set Box30.Active "true" - -new creaMaracasVisu:TransferFunctionView Box31 - -new wx:LayoutLine Box32 - set Box32.WinTitle "Base Image" - -new vtk:UpdateRender Box33 - set Box33.Active "true" - new std:MultipleInputs Box34 -new wxvtk:IsoSurfaceWidget Box35 - new wx:LayoutTab Box36 -new vtk:ExtractVtkImageFilter Box38 - -new vtk:VolumeRenderer Box39 - -new creaVtk:Actor Box40 - set Box40.Active "true" - -new creaMaracasVisu:TransferFunctionView Box41 - -new wx:LayoutLine Box42 - -new vtk:UpdateRender Box43 - set Box43.Active "true" - -new std:MultipleInputs Box44 - -new wxvtk:IsoSurfaceWidget Box45 - -new wx:DropFiles Box46 - -new vtk:MetaImageReader Box47 - -new wx:OutputText Box48 - set Box48.In "Drop your *.MHD file here!" - -new wx:OutputText Box49 - new std:MultipleInputs Box50 -new wx:LayoutLine Box52 - set Box52.WinTitle "Image A" - -new wx:LayoutSplit Box53 - set Box53.Proportion "25" - set Box53.WinTitle "Image A" - -new std:MathOperationVector Box54 - set Box54.In1 "-2 -2 -2" - set Box54.Type "3" - -new std:MathOperationVector Box56 - set Box56.In1 "-2 -2 -2" - new wx:LayoutLine Box57 set Box57.WinTitle "Layer" -new creaImageIO:ImagesChooserDialogBox Box58 - set Box58.BoxProcessMode "Manual" - set Box58.Title "Load Image" +new creaVtk:OutputWindow Box71 -new wx:CommandButton Box59 - set Box59.Label "Load Image" +new wx:LayoutSplit Box72 + set Box72.Orientation "H" -new std:SharedMemory Box60 +new creaMaracasVisu:Measure3DLength_Widget Box74 -new std:SharedMemory Box61 +new wx:LayoutLine Box75 + set Box75.WinTitle "Tools" -new std:MultipleInputs Box62 +new wx:LayoutLine Box77 + set Box77.Orientation "H" -new wx:LayoutLine Box64 - set Box64.Orientation "H" +new wx:Slider Box78 + set Box78.In "0" + set Box78.Label "true" + set Box78.Max "2000" + set Box78.Min "-2000" + set Box78.ReactiveOnTrack "true" + set Box78.Title "delta X" -new vtk:vtkImageDataPointerRelay Box67 - set Box67.BoxProcessMode "Always" +new wx:Slider Box79 + set Box79.In "0" + set Box79.Label "true" + set Box79.Max "2000" + set Box79.Min "-2000" + set Box79.ReactiveOnTrack "true" + set Box79.Title "delta Y" -new vtk:vtkImageDataPointerRelay Box68 - set Box68.BoxProcessMode "Always" +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.ReactiveOnTrack "true" + set Box80.Title "delta Z" -new creaMaracasVisu:ImageChangeInformation Box69 - set Box69.NewSpacing "1 1 1" +new wx:LayoutLine Box81 + set Box81.Orientation "V" -new creaMaracasVisu:ImageChangeInformation Box70 - set Box70.NewSpacing "1 1 1" +new std:ConcatStrings Box86 + set Box86.In2 " " + set Box86.In4 " " -new creaVtk:OutputWindow Box71 +new std:MathOperationVector Box87 -new wx:LayoutSplit Box72 - set Box72.Orientation "H" +new creaMiniTools:crop-viewer-widget Box88 + set Box88.title "Base Image A" -new creaMaracasVisu:Measure3DLength_Widget Box74 +new creaMiniTools:crop-viewer-widget Box89 + set Box89.title "Base Image B" -new wx:LayoutLine Box75 - set Box75.WinTitle "Tools" +new creaMiniTools:crop-viewer-widget-manual Box85 + set Box85._title "Image A" + +new creaMiniTools:crop-viewer-widget-manual Box90 + set Box90._title "Image B" -new vtk:CleanExternalPlane Box76 +new std:MultipleInputs Box91 connect Box04.widget Box05.Widget2 @@ -196,8 +164,6 @@ connect Box01.wxVtkBaseView3 Box16.wxvtkbaseview2 connect Box01.wxVtkBaseView4 Box16.wxvtkbaseview3 -connect Box14.Widget Box15.Widget1 - connect Box15.Widget Box11.Widget2 connect Box19.Widget Box14.Widget1 @@ -212,177 +178,117 @@ connect Box20.Out Box23.In3 connect Box21.Out Box23.In5 -connect Box23.Out Box22.Size - connect Box24.Out Box01.In connect Box24.Out Box04.in connect Box24.Out Box06.In -connect Box24.Out Box22.In - -connect Box01.Renderer1 Box30.Renderer - -connect Box31.Widget Box32.Widget1 - -connect Box31.Active Box30.Active - -connect Box31.OpacityFunction Box29.OpacityFunction - -connect Box31.ColorFunction Box29.ColorFunction1 - -connect Box29.Out Box30.In - -connect Box30.BoxChange Box33.BoxExecute - -connect Box01.Renderer1 Box33.Renderer - connect Box01.BoxChange Box34.In1 -connect Box34.BoxChange Box31.BoxExecute - -connect Box34.BoxChange Box29.BoxExecute - -connect Box22.Out Box29.In - -connect Box22.Out Box35.In - -connect Box01.Renderer1 Box35.vtkRenderer - -connect Box35.Widget Box32.Widget2 - connect Box36.Widget Box15.Widget2 -connect Box32.Widget Box36.Widget1 - -connect Box41.Active Box40.Active - -connect Box41.OpacityFunction Box39.OpacityFunction - -connect Box41.ColorFunction Box39.ColorFunction1 - -connect Box39.Out Box40.In - -connect Box40.BoxChange Box43.BoxExecute - -connect Box23.Out Box38.Size - -connect Box46.LstPaths Box47.In - -connect Box01.BoxChange Box44.In1 - -connect Box01.Renderer1 Box45.vtkRenderer - -connect Box01.Renderer1 Box40.Renderer - connect Box19.BoxChange Box50.In1 connect Box20.BoxChange Box50.In2 connect Box21.BoxChange Box50.In3 -connect Box50.Out Box44.In2 - -connect Box49.Widget Box52.Widget2 - -connect Box45.Widget Box42.Widget2 - -connect Box41.Widget Box42.Widget1 +connect Box57.Widget Box11.Widget1 -connect Box52.Widget Box53.Widget1 +connect Box16.widget Box57.Widget1 -connect Box42.Widget Box53.Widget2 +connect Box11.Widget Box72.Widget1 -connect Box53.Widget Box36.Widget2 +connect Box05.Widget Box72.Widget2 -connect Box53.Widget Box46.Widget +connect Box01.Point Box74.point -connect Box01.Renderer1 Box43.Renderer +connect Box24.Out Box74.vtkimagedata -connect Box44.BoxChange Box39.BoxExecute +connect Box01.Renderer1 Box74.vtkrender -connect Box44.BoxChange Box41.BoxExecute +connect Box74.widget Box75.Widget1 -connect Box46.BoxChange Box47.BoxExecute +connect Box75.Widget Box11.Widget3 -connect Box23.Out Box54.In0 +connect Box26.Out Box24.In -connect Box01.Point Box56.In0 +connect Box78.Widget Box77.Widget1 -connect Box54.Out Box56.In1 +connect Box79.Widget Box77.Widget2 -connect Box56.Out Box22.Index +connect Box80.Widget Box77.Widget3 -connect Box57.Widget Box11.Widget1 +connect Box81.Widget Box15.Widget1 -connect Box16.widget Box57.Widget1 +connect Box14.Widget Box81.Widget1 -connect Box59.BoxChange Box58.BoxExecute +connect Box77.Widget Box81.Widget2 -connect Box46.LstPaths Box61.In +connect Box78.Out Box86.In1 -connect Box58.FileName Box61.In1 +connect Box79.Out Box86.In3 -connect Box61.Out Box49.In +connect Box80.Out Box86.In5 -connect Box46.BoxChange Box62.In1 +connect Box86.Out Box87.In0 -connect Box59.BoxChange Box62.In2 +connect Box01.Point Box87.In1 -connect Box62.BoxChange Box49.BoxExecute +connect Box50.Out Box34.In2 -connect Box58.BoxChange Box44.In3 +connect Box01.Renderer1 Box88.renderer -connect Box56.Out Box38.Index +connect Box23.Out Box88.size -connect Box48.Widget Box64.Widget2 +connect Box87.Out Box88.position -connect Box59.Widget Box64.Widget1 +connect Box24.Out Box88.image -connect Box64.Widget Box52.Widget1 +connect Box34.BoxChange Box88.box_Execute -connect Box44.BoxChange Box38.BoxExecute +connect Box88.widget Box36.Widget1 -connect Box58.Out Box67.In +connect Box01.Renderer1 Box89.renderer -connect Box67.Out Box60.In1 +connect Box23.Out Box89.size -connect Box47.Out Box68.In +connect Box87.Out Box89.position -connect Box58.Out Box38.In +connect Box34.BoxChange Box89.box_Execute -connect Box68.Out Box60.In +connect Box01.Renderer1 Box85._renderer -connect Box22.Out Box69.In +connect Box34.BoxChange Box85._execute -connect Box69.Out Box31.In +connect Box23.Out Box85._size -connect Box00.Out Box24.In +connect Box87.Out Box85._position -connect Box11.Widget Box72.Widget1 +connect Box85.wxwidget Box36.Widget3 -connect Box05.Widget Box72.Widget2 +connect Box01.Renderer1 Box90._renderer -connect Box01.Point Box74.point +connect Box23.Out Box90._size -connect Box24.Out Box74.vtkimagedata +connect Box87.Out Box90._position -connect Box01.Renderer1 Box74.vtkrender +connect Box34.BoxChange Box90._execute -connect Box74.widget Box75.Widget1 +connect Box90.wxwidget Box36.Widget4 -connect Box75.Widget Box11.Widget3 +connect Box89.widget Box36.Widget2 -connect Box38.Out Box70.In +connect Box24.Out Box89.image -connect Box38.Out Box39.In +connect Box78.BoxChange Box91.In1 -connect Box38.Out Box45.In +connect Box79.BoxChange Box91.In2 -connect Box70.Out Box76.In +connect Box80.BoxChange Box91.In3 -connect Box76.Out Box41.In +connect Box91.BoxChange Box34.In3 diff --git a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbg b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbg new file mode 100644 index 0000000..742212e --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbg @@ -0,0 +1,246 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:crop-viewer-widget-manual +PACKAGENAME:creaMiniTools +COMPLEXOUTPUTS:1 +COMPLEX_PORT +wxwidget +197.870034:-172.595754:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:5 +COMPLEX_PORT +_title +-36.651464:167.150712:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_size +-65.931745:166.765222:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_renderer +-99.943564:166.351469:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_position +-145.279212:165.352495:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +_execute +-169.125433:164.442652:-900.000000 +FIN_COMPLEX_PORT +BOXES:16 +BOX +wx:DropFiles:Box46 +ISEXEC:FALSE +268.752177:86.671868:-900.000000 +314.327177:76.671868:-900.000000 +FIN_BOX +BOX +vtk:MetaImageReader:Box47 +ISEXEC:FALSE +272.836826:58.732873:-900.000000 +318.411826:48.732873:-900.000000 +FIN_BOX +BOX +wx:OutputText:Box48 +ISEXEC:FALSE +399.208097:-52.527858:-900.000000 +444.783097:-62.527858:-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 +FIN_BOX +BOX +wx:LayoutLine:Box52 +ISEXEC:FALSE +315.908353:-120.866096:-900.000000 +373.468353:-130.866096:-900.000000 +PORT +WinTitle:"Image A" +FIN_BOX +BOX +wx:LayoutSplit:Box53 +ISEXEC:FALSE +192.996204:-146.308379:-900.000000 +238.571204:-156.308379:-900.000000 +PORT +Proportion:"25" +PORT +WinTitle:"Image A" +FIN_BOX +BOX +creaImageIO:ImagesChooserDialogBox:Box58 +ISEXEC:FALSE +411.972303:58.695318:-900.000000 +483.147303:48.695318:-900.000000 +PORT +BoxProcessMode:"Manual" +PORT +Title:"Load Image" +FIN_BOX +BOX +wx:CommandButton:Box59 +ISEXEC:FALSE +379.620954:94.019278:-900.000000 +425.195954:84.019278:-900.000000 +PORT +Label:"Load Image" +FIN_BOX +BOX +std:SharedMemory:Box60 +ISEXEC:FALSE +396.168144:10.589474:-900.000000 +441.743144:0.589474:-900.000000 +FIN_BOX +BOX +std:SharedMemory:Box61 +ISEXEC:FALSE +350.962193:35.744529:-900.000000 +396.537193:25.744529:-900.000000 +FIN_BOX +BOX +std:MultipleInputs:Box62 +ISEXEC:FALSE +337.985850:57.791823:-900.000000 +383.560850:47.791823:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box64 +ISEXEC:FALSE +360.112523:-92.633715:-900.000000 +417.672523:-102.633715:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box67 +ISEXEC:FALSE +426.163492:36.703343:-900.000000 +497.338492:26.703343:-900.000000 +PORT +BoxProcessMode:"Always" +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box68 +ISEXEC:FALSE +277.355638:34.878881:-900.000000 +348.530638:24.878881:-900.000000 +PORT +BoxProcessMode:"Always" +FIN_BOX +BOX +creaMiniTools:crop-viewer-widget:Box89 +ISEXEC:FALSE +164.689570:-117.921425:-900.000000 +210.264570:-127.921425:-900.000000 +PORT +title:"Image B" +FIN_BOX +BOX +std:MultipleInputs:Box15 +ISEXEC:FALSE +181.341066:-78.685848:-900.000000 +226.916066:-88.685848:-900.000000 +FIN_BOX +CONNECTIONS:29 +CONNECTION +Box46:LstPaths:Box47:In +NumberOfControlPoints:0 +CONNECTION +Box49:Widget:Box52:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box52:Widget:Box53:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box46:BoxChange:Box47:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box59:BoxChange:Box58:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box46:LstPaths:Box61:In +NumberOfControlPoints:0 +CONNECTION +Box58:FileName:Box61:In1 +NumberOfControlPoints:0 +CONNECTION +Box61:Out:Box49:In +NumberOfControlPoints:0 +CONNECTION +Box46:BoxChange:Box62:In1 +NumberOfControlPoints:0 +CONNECTION +Box59:BoxChange:Box62:In2 +NumberOfControlPoints:0 +CONNECTION +Box62:BoxChange:Box49:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box48:Widget:Box64:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box59:Widget:Box64:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box64:Widget:Box52:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box58:Out:Box67:In +NumberOfControlPoints:0 +CONNECTION +Box67:Out:Box60:In1 +NumberOfControlPoints:0 +CONNECTION +Box47:Out:Box68:In +NumberOfControlPoints:0 +CONNECTION +Box68:Out:Box60:In +NumberOfControlPoints:0 +CONNECTION +Box89:widget:Box53:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box52:Widget:Box46:Widget +NumberOfControlPoints:0 +CONNECTION +Box53:Widget:wxwidget:wxwidget +NumberOfControlPoints:0 +CONNECTION +_size:_size:Box89:size +NumberOfControlPoints:0 +CONNECTION +_renderer:_renderer:Box89:renderer +NumberOfControlPoints:0 +CONNECTION +_position:_position:Box89:position +NumberOfControlPoints:0 +CONNECTION +_title:_title:Box53:WinTitle +NumberOfControlPoints:0 +CONNECTION +Box58:Out:Box89:image +NumberOfControlPoints:0 +CONNECTION +_execute:_execute:Box15:In1 +NumberOfControlPoints:0 +CONNECTION +Box15:BoxChange:Box89:box_Execute +NumberOfControlPoints:0 +CONNECTION +Box62:BoxChange:Box15:In2 +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs new file mode 100644 index 0000000..a813620 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs @@ -0,0 +1,101 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include vtk +include creaImageIO +include std +include creaMiniTools + +define crop-viewer-widget-manual creaMiniTools + +author "Author ??" +description "Description ??" + +category "" + +new wx:DropFiles Box46 + +new vtk:MetaImageReader Box47 + +new wx:OutputText Box48 + set Box48.In "Drop your *.MHD file here!" + +new wx:OutputText Box49 + +new wx:LayoutLine Box52 + set Box52.WinTitle "Image A" + +new wx:LayoutSplit Box53 + set Box53.Proportion "25" + set Box53.WinTitle "Image A" + +new creaImageIO:ImagesChooserDialogBox Box58 + set Box58.BoxProcessMode "Manual" + set Box58.Title "Load Image" + +new wx:CommandButton Box59 + set Box59.Label "Load Image" + +new std:SharedMemory Box60 + +new std:SharedMemory Box61 + +new std:MultipleInputs Box62 + +new wx:LayoutLine Box64 + set Box64.Orientation "H" + +new vtk:vtkImageDataPointerRelay Box67 + set Box67.BoxProcessMode "Always" + +new vtk:vtkImageDataPointerRelay Box68 + set Box68.BoxProcessMode "Always" + +new creaMiniTools:crop-viewer-widget Box89 + set Box89.title "Image B" + +new std:MultipleInputs Box15 + + +connect Box46.LstPaths Box47.In +connect Box49.Widget Box52.Widget2 +connect Box52.Widget Box53.Widget1 +connect Box46.BoxChange Box47.BoxExecute +connect Box59.BoxChange Box58.BoxExecute +connect Box46.LstPaths Box61.In +connect Box58.FileName Box61.In1 +connect Box61.Out Box49.In +connect Box46.BoxChange Box62.In1 +connect Box59.BoxChange Box62.In2 +connect Box62.BoxChange Box49.BoxExecute +connect Box48.Widget Box64.Widget2 +connect Box59.Widget Box64.Widget1 +connect Box64.Widget Box52.Widget1 +connect Box58.Out Box67.In +connect Box67.Out Box60.In1 +connect Box47.Out Box68.In +connect Box68.Out Box60.In +connect Box89.widget Box53.Widget2 +connect Box52.Widget Box46.Widget +connect Box58.Out Box89.image +connect Box15.BoxChange Box89.box_Execute +connect Box62.BoxChange Box15.In2 + +# Complex input ports +input _size Box89.size " " +input _renderer Box89.renderer " " +input _position Box89.position " " +input _title Box53.WinTitle " " +input _execute Box15.In1 " " + +# Complex output ports +output wxwidget Box53.Widget " " + +message + +endefine diff --git a/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbg b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbg new file mode 100644 index 0000000..7e2d2af --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbg @@ -0,0 +1,264 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:crop-viewer-widget +PACKAGENAME:creaMiniTools +COMPLEXOUTPUTS:1 +COMPLEX_PORT +widget +92.063053:-400.366981:-900.000000 +FIN_COMPLEX_PORT +COMPLEXINPUTS:6 +COMPLEX_PORT +renderer +201.138428:-16.074645:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +box_Execute +133.150186:-18.145728:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +image +92.314810:-14.225578:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +position +40.901574:-16.489887:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +size +1.369389:-19.001168:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +title +167.087228:-19.215667:-900.000000 +FIN_COMPLEX_PORT +BOXES:16 +BOX +vtk:ExtractVtkImageFilter:Box22 +ISEXEC:FALSE +12.947100:-159.196100:-900.000000 +84.122100:-169.196100:-900.000000 +FIN_BOX +BOX +vtk:VolumeRenderer:Box29 +ISEXEC:FALSE +9.708222:-280.850162:-900.000000 +55.283222:-290.850162:-900.000000 +FIN_BOX +BOX +creaVtk:Actor:Box30 +ISEXEC:FALSE +31.395224:-301.832042:-900.000000 +64.170224:-311.832042:-900.000000 +PORT +Active:"true" +FIN_BOX +BOX +creaMaracasVisu:TransferFunctionView:Box31 +ISEXEC:FALSE +46.335305:-245.397816:-900.000000 +117.510305:-255.397816:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box32 +ISEXEC:FALSE +96.324299:-380.642083:-900.000000 +153.884299:-390.642083:-900.000000 +FIN_BOX +BOX +vtk:UpdateRender:Box33 +ISEXEC:FALSE +33.173879:-329.402871:-900.000000 +78.748879:-339.402871:-900.000000 +PORT +Active:"true" +FIN_BOX +BOX +std:MultipleInputs:Box34 +ISEXEC:FALSE +108.182051:-127.242714:-900.000000 +153.757051:-137.242714:-900.000000 +FIN_BOX +BOX +wxvtk:IsoSurfaceWidget:Box35 +ISEXEC:FALSE +111.025183:-343.234341:-900.000000 +156.600183:-353.234341:-900.000000 +FIN_BOX +BOX +std:MathOperationVector:Box54 +ISEXEC:FALSE +-46.375674:-89.238759:-900.000000 +24.799326:-99.238759:-900.000000 +PORT +In1:"-2 -2 -2" +PORT +Type:"3" +FIN_BOX +BOX +std:MathOperationVector:Box56 +ISEXEC:FALSE +-38.438797:-116.012843:-900.000000 +32.736203:-126.012843:-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 +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 +PORT +In0:"Open" +PORT +In1:"Close" +FIN_BOX +BOX +std:MathOperation:Box84 +ISEXEC:FALSE +48.074061:-123.305171:-900.000000 +93.649061:-133.305171:-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 +250.575453:-215.651384:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box89 +ISEXEC:FALSE +-30.073336:-60.226027:-900.000000 +15.501664:-70.226027:-900.000000 +FIN_BOX +CONNECTIONS:35 +CONNECTION +Box31:Active:Box30:Active +NumberOfControlPoints:0 +CONNECTION +Box31:OpacityFunction:Box29:OpacityFunction +NumberOfControlPoints:0 +CONNECTION +Box31:ColorFunction:Box29:ColorFunction1 +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box30:In +NumberOfControlPoints:0 +CONNECTION +Box30:BoxChange:Box33:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box34:BoxChange:Box31:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box34:BoxChange:Box29:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box29:In +NumberOfControlPoints:0 +CONNECTION +Box54:Out:Box56:In1 +NumberOfControlPoints:0 +CONNECTION +Box56:Out:Box22:Index +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box69:In +NumberOfControlPoints:0 +CONNECTION +Box35:Widget:Box32:Widget3 +NumberOfControlPoints:0 +CONNECTION +Box31:Widget:Box32:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box83:Widget:Box32:Widget1 +NumberOfControlPoints:0 +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 +renderer:renderer:Box88:In +NumberOfControlPoints:0 +CONNECTION +Box88:Out:Box35:vtkRenderer +NumberOfControlPoints:0 +CONNECTION +Box88:Out:Box30:Renderer +NumberOfControlPoints:0 +CONNECTION +Box88:Out:Box33:Renderer +NumberOfControlPoints:0 +CONNECTION +box_Execute:box_Execute:Box34:In1 +NumberOfControlPoints:0 +CONNECTION +image:image:Box22:In +NumberOfControlPoints:0 +CONNECTION +position:position:Box56:In0 +NumberOfControlPoints:0 +CONNECTION +size:size:Box89:In +NumberOfControlPoints:0 +CONNECTION +Box89:Out:Box54:In0 +NumberOfControlPoints:0 +CONNECTION +Box89:Out:Box22:Size +NumberOfControlPoints:0 +CONNECTION +Box32:Widget:widget:widget +NumberOfControlPoints:0 +CONNECTION +title:title:Box32:WinTitle +NumberOfControlPoints:0 +CONNECTION +Box83:BoxChange:Box34:In2 +NumberOfControlPoints:0 +CONNECTION +Box34:BoxChange:Box85:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box85:Out:Box35:In +NumberOfControlPoints:0 +CONNECTION +Box34:BoxChange:Box35:BoxExecute +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 new file mode 100644 index 0000000..6aabbb9 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs @@ -0,0 +1,106 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs +# ---------------------------------- + +include std +include itkvtk +include vtk +include creaVtk +include creaMaracasVisu +include wx +include std +include wxvtk + +define crop-viewer-widget creaMiniTools + +author "Author ??" +description "Description ??" + +category "" + +new vtk:ExtractVtkImageFilter Box22 + +new vtk:VolumeRenderer Box29 + +new creaVtk:Actor Box30 + set Box30.Active "true" + +new creaMaracasVisu:TransferFunctionView Box31 + +new wx:LayoutLine Box32 + +new vtk:UpdateRender Box33 + set Box33.Active "true" + +new std:MultipleInputs Box34 + +new wxvtk:IsoSurfaceWidget Box35 + +new std:MathOperationVector Box54 + set Box54.In1 "-2 -2 -2" + set Box54.Type "3" + +new std:MathOperationVector Box56 + set Box56.In1 "-2 -2 -2" + +new creaMaracasVisu:ImageChangeInformation Box69 + set Box69.NewSpacing "1 1 1" + +new wx:RadioButton Box83 + set Box83.In0 "Open" + set Box83.In1 "Close" + +new std:MathOperation Box84 + set Box84.In2 "-1" + +new vtk:CleanExternalPlane Box85 + +new std:MagicBox Box88 + +new std:MagicBox Box89 + + +connect Box31.Active Box30.Active +connect Box31.OpacityFunction Box29.OpacityFunction +connect Box31.ColorFunction Box29.ColorFunction1 +connect Box29.Out Box30.In +connect Box30.BoxChange Box33.BoxExecute +connect Box34.BoxChange Box31.BoxExecute +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 +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 + +# 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 " " + +# Complex output ports +output widget Box32.Widget " " + +message + +endefine -- 2.47.1