]> Creatis software - creaMiniTools.git/blobdiff - bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
no message
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / ThresholdWidget.bbs
index 524f034ff381be5d1bc8ebf00dbe5b86d5425667..95c2b178002340f04c2d11e3d40b7f76f4d8477f 100644 (file)
@@ -11,6 +11,8 @@ include creaMaracasVisu
 include creaMiniToolsBase
 include toolsbbtk
 include wxvtk
+include vtk
+include std
 
 define ThresholdWidget creaMiniTools
 
@@ -43,11 +45,6 @@ new SliderMinMax Box07
   set Box07.InMin 0
   set Box07.InMinShow 1000
 
-new Slider Box08
-  set Box08.Label true
-  set Box08.Max 5000
-  set Box08.Title "Iso Min"
-
 new LayoutTab Box09
 
 new SaveMHD-Button Box10
@@ -58,27 +55,44 @@ new OutputText Box11
 new IsoSurfaceWidget Box12
   set Box12.Title "Iso Surface"
 
+new vtkImageDataPointerRelay Box13
+
+new ImageVtkProperties Box14
+
+new GetVectorFloatElement Box15
+  set Box15.I 0
+
+new GetVectorFloatElement Box16
+  set Box16.I 1
+
 
 connect Box00.Widget Box01.Widget5
 connect Box00.BoxChange Box03.BoxExecute
 connect Box02.Out Box03.In
 connect Box03.Widget Box05.Widget2
-connect Box08.Out Box02.LowerThreshold
 connect Box01.Widget Box09.Widget1
 connect Box09.Widget Box05.Widget1
 connect Box02.Out Box10.In
 connect Box11.Widget Box01.Widget1
 connect Box07.Widget Box01.Widget2
-connect Box08.Widget Box01.Widget4
 connect Box02.Out Box12.In
 connect Box00.BoxChange Box12.BoxExecute
 connect Box12.Widget Box09.Widget2
 connect Box10.Widget Box09.Widget3
+connect Box13.Out Box02.In
+connect Box13.Out Box14.In
+connect Box14.MinMax Box15.In
+connect Box14.MinMax Box16.In
+connect Box16.Out Box07.InMax
+connect Box15.Out Box07.InMin
+connect Box07.OutEnd Box02.UpperThreshold
+connect Box07.OutStart Box02.LowerThreshold
+connect Box00.BoxChange Box07.BoxExecute
 
 
 # Complex input ports
 input vtkRenderer Box12.vtkRenderer " "
-input In Box02.In " "
+input In Box13.In " "
 
 # Complex output ports
 output Widget Box05.Widget " "