# ---------------------------------- # - BBTKGEditor v 1.4 BBG BlackBox Diagram file # - /home/corredor/Software/CreaTools/All_Dec2012/creatools_source/bbtk/packages/vtk/bbs/appli/exampleMeasureLength.bbg # ---------------------------------- APP_START CATEGORY:example 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. AUTHOR:Ricardo A Corredor COMPLEXBOX:FALSE COMPLEXINPUTS:0 BOXES:8 BOX creaMaracasVisu:ShowNPoints:Box00 ISEXEC:TRUE -51.309471:11.810349:-900.000000 -2.989471:1.810349:-900.000000 PORT WinTitle:"Points Widget" PORT WinWidth:"200" FIN_BOX BOX creaMaracasVisu:ViewerNV:Box02 ISEXEC:TRUE -26.721828:47.483487:-900.000000 33.918172:37.483487:-900.000000 PORT WinTitle:"Image Viewer" FIN_BOX BOX wx:CommandButton:Box03 ISEXEC:TRUE -128.980270:47.281481:-900.000000 -83.405270:37.281481:-900.000000 PORT Label:"Evaluate length..." PORT WinHeight:"200" PORT WinTitle:"Measure Length" PORT WinWidth:"200" FIN_BOX BOX vtk:MeasureLength:Box04 ISEXEC:FALSE -112.956474:-50.441103:-900.000000 -67.381474:-60.441103:-900.000000 FIN_BOX BOX vtk:PointsXYZtoVTKPoints:Box05 ISEXEC:FALSE -54.277786:-36.674180:-900.000000 16.897214:-46.674180:-900.000000 FIN_BOX BOX wx:OutputText:Box06 ISEXEC:FALSE -113.407849:-80.683196:-900.000000 -67.832849:-90.683196:-900.000000 FIN_BOX BOX vtk:MetaImageReader:Box07 ISEXEC:FALSE -58.531222:83.907503:-900.000000 -12.956222:73.907503:-900.000000 FIN_BOX BOX wx:FileSelector:Box08 ISEXEC:FALSE -57.766108:111.196570:-900.000000 -12.191108:101.196570:-900.000000 PORT Message:"Select an image ..." PORT Title:"Select an image ..." FIN_BOX CONNECTIONS:13 CONNECTION Box02:Renderer1:Box00:Renderer NumberOfControlPoints:0 CONNECTION Box02:Point:Box00:In NumberOfControlPoints:0 CONNECTION Box02:BoxChange:Box00:BoxExecute NumberOfControlPoints:0 CONNECTION Box00:lstPointsX:Box05:LstPointsX NumberOfControlPoints:0 CONNECTION Box00:lstPointsY:Box05:LstPointsY NumberOfControlPoints:0 CONNECTION Box00:lstPointsZ:Box05:LstPointsZ NumberOfControlPoints:0 CONNECTION Box05:Points:Box04:Points NumberOfControlPoints:0 CONNECTION Box03:BoxChange:Box06:BoxExecute NumberOfControlPoints:0 CONNECTION Box04:Length:Box06:In NumberOfControlPoints:0 CONNECTION Box07:Out:Box02:In NumberOfControlPoints:0 CONNECTION Box07:Out:Box04:ImageData NumberOfControlPoints:0 CONNECTION Box07:Out:Box00:Image NumberOfControlPoints:0 CONNECTION Box08:Out:Box07:In NumberOfControlPoints:0 APP_END