]> Creatis software - creaMiniTools.git/blobdiff - bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs
#2999 CreaMiniTools Feature New Normal - crop-viewer-widget-manaul
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / viewerNVExample.bbs
index 80f003d3045851854bc3fa0435107283f05d3b04..af89a1aa1658c0d464d9c0705296f45673b0f333 100755 (executable)
@@ -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