# ----------------------------------
# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
-# - /home/davila/Creatis/creaTools/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Measure3DLength_Widget.bbs
+# - /tmpEED/creaTools/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/Measure3DLength_Widget.bbs
# ----------------------------------
include std
category "example"
-new vtkImageDataPointerRelay Box17
+new vtk:vtkImageDataPointerRelay Box17
-new MagicBox Box24
+new std:MagicBox Box24
-new ShowNPoints Box31
+new creaMaracasVisu:ShowNPoints Box31
-new LayoutSplit Box32
+new wx:LayoutSplit Box32
set Box32.Proportion "10"
-new LayoutTab Box33
+new wx:LayoutTab Box33
-new OutputText Box34
+new wx:OutputText Box34
+ set Box34.Title "Units"
-new LayoutLine Box35
+new wx:LayoutLine Box35
-new DrawAxe3D Box36
+new creaMaracasVisu:DrawAxe3D Box36
-new ImageVtkProperties Box38
+new vtk:ImageVtkProperties Box38
-new Transform Box39
+new vtk:Transform Box39
-new UpdateRender Box41
+new vtk:UpdateRender Box41
set Box41.Active "true"
-new MeasureLength Box42
+new vtk:MeasureLength Box42
-new PointsXYZtoVTKPoints Box43
+new vtk:PointsXYZtoVTKPoints Box43
+
+new wx:OutputText Box13
+ set Box13.Title "Voxels"
connect Box17.Out Box31.Image
connect Box31.BoxChange Box34.BoxExecute
connect Box17.Out Box42.ImageData
connect Box31.BoxChange Box36.BoxExecute
+connect Box42.LengthVoxels Box13.In
+connect Box13.Widget Box35.Widget2
+connect Box31.BoxChange Box13.BoxExecute
# Complex input ports
input vtkimagedata Box17.In " "
# Complex output ports
output widget Box33.Widget " "
+message
endefine