# --------------------------------------------------------------------- # # 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. # ------------------------------------------------------------------------ */ load vtk load wxvtk load creaMaracasVisu load std load wx new FileSelector filselect0 set filselect0.Message "Select image" set filselect0.Wildcard "*.mhd" #set filselect0.DefaultDir "C:\Creatis\creaAppli\Data\Images" new MetaImageReader gimm connect filselect0.Out gimm.In new ImageCastToUShort image connect gimm.Out image.In new VolumeRendering volrend connect image.Out volrend.In1 new SurfaceRendering surrend # connect image.Out surrend.In0 new ViewerNV view1 set view1.nTypeView 6 connect gimm.Out view1.In new CutModule2 cut connect view1.Interactor1 cut.Interactor connect view1.Renderer1 cut.Renderer connect image.Out cut.In new ViewerNV view2 set view2.nTypeView 6 connect image.Out view2.In connect view1.BoxChange cut.BoxExecute new LayoutSplit layoutsplit1 set layoutsplit1.Orientation V connect volrend.Widget layoutsplit1.Widget1 connect surrend.Widget layoutsplit1.Widget2 new LayoutSplit layoutsplit2 set layoutsplit2.Orientation H connect layoutsplit1.Widget layoutsplit2.Widget1 #connect view1.Widget layoutsplit2.Widget2 new LayoutTab laytab connect laytab.Widget layoutsplit2.Widget2 connect view1.Widget laytab.Widget2 connect view2.Widget laytab.Widget1 new LayoutLine layoutline1 connect cut.Widget layoutline1.Widget1 new LayoutSplit layoutsplit3 set layoutsplit3.Orientation H set layoutsplit3.Proportion 80 set layoutsplit3.WinTitle "Cutting Tool" connect layoutline1.Widget layoutsplit3.Widget2 connect layoutsplit2.Widget layoutsplit3.Widget1 exec layoutsplit3 set cut.BoxExecute 1 exec cut connect view2.Renderer1 volrend.Renderer connect view2.Renderer1 surrend.Renderer exec volrend exec surrend #connect cut.BoxChange volrend.BoxExecute #connect cut.BoxChange volrend.BoxExecute