From 2c72a4807a6dd861fc034cd8cc6f3580679ef926 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Tue, 3 Mar 2009 13:52:04 +0000 Subject: [PATCH] Add some commented out code (as exemples for newbees) --- packages/demo/bbs/appli/demoViewing1.bbs | 29 ++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/packages/demo/bbs/appli/demoViewing1.bbs b/packages/demo/bbs/appli/demoViewing1.bbs index 7387d78..7112a6f 100644 --- a/packages/demo/bbs/appli/demoViewing1.bbs +++ b/packages/demo/bbs/appli/demoViewing1.bbs @@ -3,6 +3,7 @@ author "jpr@creatis.insa-lyon.fr" category "demo" // To show how easy it is to add smthing +// ===================================== load wxvtk include wx @@ -18,18 +19,42 @@ new LayoutLine upleft new LayoutLine down connect upright.Widget main.Widget1 -connect upleft.Widget main.Widget2 -connect down.Widget main.Widget3 +connect upleft.Widget main.Widget2 +connect down.Widget main.Widget3 # Here loads hola.mhd +# ------------------- include vtk/boxes/bbLoadHola new LoadHola reader + # uncomment next lines to have a file selector +# -------------------------------------------- #new FileSelector openFileDialog #new ImageReader reader # connect openFileDialog.Out reader.In +# uncomment next lines to use Gimmick +# ----------------------------------- +#load creaImageIO +#new Gimmick reader +# uncomment next lines to Read a MHD file (and nothing else !) +# ------------------------------------------------------------ +#new FileSelector openFileDialog +#new MetaImageReader reader +# connect openFileDialog.Out reader.In + +# uncomment the following lines to read a 3D images stack +# ------------------------------------------------------- +// To choose the directory +#new DirectorySelector ds +// To get the image names into a vector +#new FilesFromDirectory fd +// To read all the files, as a bbitk::ImagePointer +#new ImageSeriesReader reader + +#print "Image properties : $reader.Out" + #Get image dimensions, ... new ImageProperties mc connect reader.Out mc.In -- 2.47.1