X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fdemo%2Fbbs%2Fappli%2FdemoPlane3Pts.bbs;h=b2f4f07faafec269a33b66869e635cf7fec02a9e;hb=HEAD;hp=23aa8c2f9a68c0df75fdc8e986fa07104dcbefc8;hpb=60705303d6e1ebac2defc005505c5121fbdec0d9;p=bbtk.git diff --git a/packages/demo/bbs/appli/demoPlane3Pts.bbs b/packages/demo/bbs/appli/demoPlane3Pts.bbs index 23aa8c2..b2f4f07 100644 --- a/packages/demo/bbs/appli/demoPlane3Pts.bbs +++ b/packages/demo/bbs/appli/demoPlane3Pts.bbs @@ -1,7 +1,35 @@ -description " ? ? ? " -author "???creatis.insa-lyon.fr" + # --------------------------------------------------------------------- + # + # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image + # pour la SantÈ) + # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton + # Previous Authors : Laurent Guigues, Jean-Pierre Roux + # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil + # + # This software is governed by the CeCILL-B license under French law and + # abiding by the rules of distribution of free software. You can use, + # modify and/ or redistribute the software under the terms of the CeCILL-B + # license as circulated by CEA, CNRS and INRIA at the following URL + # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html + # or in the file LICENSE.txt. + # + # As a counterpart to the access to the source code and rights to copy, + # modify and redistribute granted by the license, users are provided only + # with a limited warranty and the software's author, the holder of the + # economic rights, and the successive licensors have only limited + # liability. + # + # The fact that you are presently reading this means that you have had + # knowledge of the CeCILL-B license and that you accept its terms. + # ------------------------------------------------------------------------ */ + +description " How to choose points in a 3D image " +author "davila at creatis.insa-lyon.fr" category "demo" +// See also examplePlane3Pts.bbs +// To know how to read more images. + include vtk/boxes/bbLoadHola load vtk load wxvtk @@ -9,39 +37,21 @@ load creaMaracasVisu load std load wx -//new LoadHola image +new LoadHola reader -new FileSelector openFileDialog - set openFileDialog.Wildcard "(*.mhd)|*.mhd" -new MetaImageReader image - connect openFileDialog.Out image.In - new ImagePlanes planes -connect image.Out planes.In - -#new Viewer3D viewer - -#connect planes.PlaneX viewer.Obs1 -#connect planes.PlaneY viewer.Obs2 -#connect planes.PlaneZ viewer.Obs3 -#connect planes.Plane3Pts viewer.Obs4 -#set viewer.WinTitle "Show N Points" -#set viewer.WinWidth 350 -#set viewer.WinHeight 400 +connect reader.Out planes.In new ViewerNV viewernv #set viewernv.nTypeView "6 1 2 0" set viewernv.nTypeView "6" - connect image.Out viewernv.In + connect reader.Out viewernv.In new ShowNPoints showpoints - connect image.Out showpoints.Image + connect reader.Out showpoints.Image connect showpoints.lstPointsX planes.PointsX connect showpoints.lstPointsY planes.PointsY connect showpoints.lstPointsZ planes.PointsZ - #set planes.PointsX "10 10 50" - #set planes.PointsY "10 50 20" - #set planes.PointsZ "10 10 30" connect viewernv.BoxChange showpoints.BoxExecute connect viewernv.Point showpoints.In connect viewernv.Renderer1 showpoints.Renderer @@ -61,17 +71,18 @@ new CommandButton execplanes #connect execplanes.BoxChange viewer.BoxExecute new LayoutLine layoutline0 -connect showpoints.Widget layoutline0.Widget1 -connect execplanes.Widget layoutline0.Widget2 + connect showpoints.Widget layoutline0.Widget1 + connect execplanes.Widget layoutline0.Widget2 new LayoutLine layoutline1 -connect viewernv.Widget layoutline1.Widget1 + connect viewernv.Widget layoutline1.Widget1 new LayoutSplit mainSplit -set mainSplit.Orientation H -set mainSplit.Proportion 10 -connect layoutline0.Widget mainSplit.Widget1 -connect layoutline1.Widget mainSplit.Widget2 + set mainSplit.WinWidth 1500 + set mainSplit.Orientation H + set mainSplit.Proportion 15 + connect layoutline0.Widget mainSplit.Widget1 + connect layoutline1.Widget mainSplit.Widget2 exec mainSplit