]> Creatis software - bbtk.git/blobdiff - packages/vtk/bbs/appli/exampleMeasureLength.bbs
2391 BBTK Feature New Normal box castVector in std package
[bbtk.git] / packages / vtk / bbs / appli / exampleMeasureLength.bbs
index 4ffc5a7c40277b276ac073020fb5027b11f8bb3c..fe9bdc092f83bf5d6752103cb1988271aec67fac 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.4 BBS BlackBox Script
-# - /home/corredor/Software/CreaTools/All_Dec2012/creatools_source/bbtk/packages/vtk/bbs/appli/exampleMeasureLength.bbs
+# - /home/davila/Creatis/creaTools/creatools_source/bbtk/packages/vtk/bbs/appli/exampleMeasureLength.bbs
 # ----------------------------------
 
 # BBTK GEditor Script
@@ -11,6 +11,8 @@ include itkvtk
 include creaMaracasVisu
 include wx
 include vtk
+include std
+include creaImageIO
 
 author "Ricardo A Corredor"
 description "Evaluates the sum of the Euclidean distances among the points in the list following their order. Put some points in the image using the Points Widget and the click on Evaluate Length button. "
@@ -35,11 +37,37 @@ new PointsXYZtoVTKPoints Box05
 
 new OutputText Box06
 
-new MetaImageReader Box07
+new DrawAxe3D Box09
+
+new ConcatStrings Box10
+
+new ConcatStrings Box11
+
+new ConcatStrings Box12
+
+new ImageVtkProperties Box13
+
+new LoadHola Box14
+
+new Transform Box15
+
+new ConcatStrings Box16
+
+new vtkImageDataPointerRelay Box17
+
+new ImagesChooserDialogBox Box18
 
-new FileSelector Box08
-  set Box08.Message "Select an image ..."
-  set Box08.Title "Select an image ..."
+new LayoutSplit Box19
+  set Box19.Orientation "H"
+  set Box19.Proportion "30"
+
+new UpdateRender Box20
+  set Box20.Active "true"
+
+new LayoutSplit Box21
+  set Box21.Proportion "25"
+
+new LayoutLine Box22
 
 
 connect Box02.Renderer1 Box00.Renderer
@@ -56,21 +84,59 @@ connect Box00.lstPointsZ Box05.LstPointsZ
 
 connect Box05.Points Box04.Points
 
-connect Box03.BoxChange Box06.BoxExecute
-
 connect Box04.Length Box06.In
 
-connect Box07.Out Box02.In
+connect Box02.Renderer1 Box09.Renderer
+
+connect Box00.lstPointsX Box10.In1
+
+connect Box00.lstPointsY Box11.In1
+
+connect Box11.Out Box09.lstPointY
+
+connect Box10.Out Box09.lstPointX
+
+connect Box00.lstPointsZ Box12.In1
+
+connect Box12.Out Box09.lstPointZ
+
+connect Box15.Out Box09.Transform
+
+connect Box13.Spacing Box16.In1
+
+connect Box17.Out Box02.In
+
+connect Box17.Out Box00.Image
+
+connect Box17.Out Box04.ImageData
+
+connect Box17.Out Box13.In
+
+connect Box02.Widget Box19.Widget2
+
+connect Box16.Out Box15.Scale
+
+connect Box00.BoxChange Box09.BoxExecute
+
+connect Box02.Renderer1 Box20.Renderer
+
+connect Box00.BoxChange Box20.BoxExecute
+
+connect Box03.Widget Box22.Widget1
+
+connect Box06.Widget Box22.Widget2
+
+connect Box21.Widget Box19.Widget1
+
+connect Box03.BoxChange Box06.BoxExecute
 
-connect Box07.Out Box04.ImageData
+connect Box22.Widget Box21.Widget1
 
-connect Box07.Out Box00.Image
+connect Box00.Widget Box21.Widget2
 
-connect Box08.Out Box07.In
+connect Box18.Out Box17.In
 
 
 
 # Complex input ports
-exec Box00
-exec Box02
-exec Box03
+exec Box19