X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fgdcmvtk%2Fbbs%2Fappli%2FexampleGetInfoGdcmReader.bbs;h=3b3a4958bb2f2c4234818c99e0865c0eb38763cc;hb=e269992d2d446784afc40073782311deaa25008f;hp=a56b60e0dea27387ee8296298d2d2fe7d1d0cac4;hpb=cfad95b6e08e6e53846ffcda7fbc5932065f2c47;p=bbtk.git diff --git a/packages/gdcmvtk/bbs/appli/exampleGetInfoGdcmReader.bbs b/packages/gdcmvtk/bbs/appli/exampleGetInfoGdcmReader.bbs index a56b60e..3b3a495 100644 --- a/packages/gdcmvtk/bbs/appli/exampleGetInfoGdcmReader.bbs +++ b/packages/gdcmvtk/bbs/appli/exampleGetInfoGdcmReader.bbs @@ -1,56 +1,79 @@ - # --------------------------------------------------------------------- - # - # 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. - # ------------------------------------------------------------------------ */ - +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /tmpEED/creaTools2/creatools_source/bbtk/packages/gdcmvtk/bbs/appli/exampleGetInfoGdcmReader.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include wx +include gdcmvtk +include std +include creaMaracasVisu + +author "Author ??" +description "Description ??" category "example" +new wx:FileSelector openFileDialog + +new gdcmvtk:GetInfoGdcmReader readerginf + +new std:Configuration Box02 + +new std:ConcatStrings Box03 + set Box03.In2 "/gdcmvtk/dicom01/466" + +new wx:OutputText Box04 + set Box04.Title "IOP" + +new wx:LayoutLine Box05 + +new wx:OutputText Box06 + set Box06.Title "IPP" + +new wx:OutputText Box07 + set Box07.Title "InterSlice" + +new wx:OutputText Box08 + set Box08.Title "PixelSpacing" + +new creaMaracasVisu:ViewerNV Box09 + set Box09.nTypeView "0" + +new wx:LayoutSplit Box11 + set Box11.Orientation "H" + + +connect Box02.DataPath Box03.In1 + +connect Box03.Out readerginf.In + +connect readerginf.IOP Box04.In + +connect Box04.Widget Box05.Widget1 + +connect readerginf.IPP Box06.In + +connect Box06.Widget Box05.Widget2 -load gdcmvtk -load std -load wx +connect readerginf.InterSlice Box07.In +connect Box07.Widget Box05.Widget3 -//message all 9 +connect readerginf.PixelSpacing Box08.In -new FileSelector openFileDialog -new GetInfoGdcmReader readerginf - connect openFileDialog.Out readerginf.In -exec readerginf - -// No adaptor -//print $readerginf.Out$ +connect Box08.Widget Box05.Widget4 -print IOP -print $readerginf.IOP$ +connect readerginf.Out Box09.In -print IPP -print $readerginf.IPP$ +connect Box05.Widget Box11.Widget1 -print PixelSpacing -print $readerginf.PixelSpacing$ +connect Box09.Widget Box11.Widget2 -print InterSlice -print $readerginf.InterSlice$ +# Complex input ports +exec Box11