description "creaMaracasVisu::ContourVOI box example. " category "example" author "eduardo.davila@creatis.insa-lyon.fr" load wx load std load creaMaracasVisu load vtk load itk load itkvtk new MetaImageReader reader include std/boxes/bbPrependPackageDataPath.bbs new PrependPackageDataPath prependDatapath set prependDatapath.In "vtk/hola.mhd" connect prependDatapath.Out reader.In new ViewerNV vmA set vmA.nTypeView "-1" connect reader.Out vmA.In new ContourVOI countourvoi connect vmA.wxVtkBaseView1 countourvoi.wxVtkBaseView connect reader.Out countourvoi.In new CommandButton commandbutton set commandbutton.Label "RUN VOI" # set commandbutton.In "exec countourvoi; exec viewernv;" new LayoutLine sizerA set sizerA.Orientation H connect countourvoi.Widget sizerA.Widget1 connect commandbutton.Widget sizerA.Widget2 new LayoutSplit mainSplit set mainSplit.Proportion 10 connect sizerA.Widget mainSplit.Widget1 connect vmA.Widget mainSplit.Widget2 new ImageRegion imageregion connect countourvoi.Index imageregion.Index connect countourvoi.Size imageregion.Size new ExtractImageFilter extractImagefilter connect reader.Out extractImagefilter.In connect imageregion.Out extractImagefilter.Region new ImageChangeInformation imagechangeinformation connect extractImagefilter.Out imagechangeinformation.In new ViewerMPR viewernv #new Viewer2D viewernv ## new ViewerNV viewernv ## set viewernv.nTypeView "-1" connect imagechangeinformation.Out viewernv.In connect commandbutton.BoxChange countourvoi.BoxExecute connect commandbutton.BoxChange viewernv.BoxExecute exec mainSplit