6 new LayoutSplit splitMain
7 set splitMain.Orientation VERTICAL
8 set splitMain.Proportion 10
9 new LayoutSplit splitViewer
10 set splitViewer.Orientation HORIZONTAL
13 new CommandButton runBtn
17 new ContourCrown contourCrown
18 new ContourStatistics contourStatistics
21 connect contourCrown.LstValue contourStatistics.LstValue
24 new ViewerNV viewerMaracas
25 set viewerMaracas.nTypeView "-1"
26 new ViewerNV viewerMaracasResultValues
27 set viewerMaracasResultValues.nTypeView "-1"
28 new ViewerNV viewerMaracasResultMask
29 set viewerMaracasResultMask.nTypeView "-1"
31 new MetaImageReader reader
33 include std/boxes/bbPrependPackageDataPath.bbs
34 new PrependPackageDataPath prependDatapath
35 set prependDatapath.In "vtk/hola.mhd"
36 connect prependDatapath.Out reader.In
38 #new FileDialog fileDialog
39 #connect fileDialog.Out reader.Filename
41 connect viewerMaracas.wxVtkBaseView1 contourCrown.wxVtkBaseView
42 connect reader.Out viewerMaracas.In
43 connect reader.Out contourCrown.In
44 connect contourCrown.ImageValueResult viewerMaracasResultValues.In
45 connect contourCrown.ImageMaskResult viewerMaracasResultMask.In
47 new LayoutLine sizerResults
48 new LayoutSplit splitup
49 set splitup.Orientation HORIZONTAL
50 connect sizerA.Widget splitup.Widget1
51 connect sizerResults.Widget splitup.Widget2
53 new OutputText averageText
54 set averageText.Title "Average"
55 connect contourStatistics.Average averageText.In
57 new OutputText maxText
58 set maxText.Title "Max"
59 connect contourStatistics.Max maxText.In
61 new OutputText minText
62 set minText.Title "Min"
63 connect contourStatistics.Min minText.In
65 new OutputText standarDeviationText
66 set standarDeviationText.Title "Standar deviation"
67 connect contourStatistics.StandarDeviation standarDeviationText.In
69 new OutputText nPointsText
70 set nPointsText.Title "n Points"
71 connect contourStatistics.nPoints nPointsText.In
73 connect averageText.Widget sizerResults.Widget1
74 connect maxText.Widget sizerResults.Widget2
75 connect minText.Widget sizerResults.Widget3
76 connect standarDeviationText.Widget sizerResults.Widget4
77 connect nPointsText.Widget sizerResults.Widget5
79 connect runBtn.BoxChange contourCrown.BoxExecute
80 connect runBtn.BoxChange averageText.BoxExecute
81 connect runBtn.BoxChange minText.BoxExecute
82 connect runBtn.BoxChange maxText.BoxExecute
83 connect runBtn.BoxChange standarDeviationText.BoxExecute
84 connect runBtn.BoxChange nPointsText.BoxExecute
86 connect runBtn.BoxChange viewerMaracasResultValues.BoxExecute
87 connect runBtn.BoxChange viewerMaracasResultMask.BoxExecute
88 connect runBtn.BoxChange viewerMaracas.BoxExecute
90 connect splitup.Widget splitMain.Widget2
92 connect splitViewer.Widget splitMain.Widget1
93 connect viewerMaracas.Widget splitViewer.Widget1
94 connect sizerB.Widget splitViewer.Widget2
96 connect contourCrown.Widget sizerA.Widget1
97 connect runBtn.Widget sizerA.Widget2
98 connect viewerMaracasResultValues.Widget sizerB.Widget1
99 connect viewerMaracasResultMask.Widget sizerB.Widget2