]> Creatis software - bbtk.git/commitdiff
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
authorEduardo DAVILA <davila@localhost.localdomain>
Tue, 22 Aug 2017 18:57:56 +0000 (20:57 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Tue, 22 Aug 2017 18:57:56 +0000 (20:57 +0200)
25 files changed:
packages/vtk/src/bbvtkMIPCreator.cxx
packages/wxvtk/bbs/appli/exampleImagePlanes.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleImagePlanes.bbs
packages/wxvtk/bbs/appli/exampleIsoSurfaceWidget.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleIsoSurfaceWidget.bbs
packages/wxvtk/bbs/appli/exampleMIPWidget.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleMIPWidget.bbs
packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbs
packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicerMHD.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicerMHD.bbs
packages/wxvtk/bbs/appli/exampleView2D3D.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleView2D3D.bbs
packages/wxvtk/bbs/appli/exampleView3DImage1.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleView3DImage1.bbs
packages/wxvtk/bbs/appli/exampleView3DImage1_Stereo.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleView3DImage1_Stereo.bbs
packages/wxvtk/bbs/appli/exampleViewerInLayoutTab.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleViewerInLayoutTab.bbs
packages/wxvtk/bbs/appli/exampleVolumeRendering.bbg [new file with mode: 0644]
packages/wxvtk/bbs/appli/exampleVolumeRendering.bbs
packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbg [new file with mode: 0644]
packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbs
packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbg [new file with mode: 0644]
packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs

index c822385d7eaba8a256b5c4148a0cadf43148d8c6..b65e51d22893d90ba8a461a1a5044b6052be254f 100644 (file)
@@ -54,9 +54,6 @@ namespace bbvtk
        //---------------------------------------------------------------------
    void MIPCreator::bbUserSetDefaultValues()
    {
-
-
-
        std::vector<double> opaValues;
        std::vector<double> denPoints;
        opaValues.push_back(0.0);
@@ -65,28 +62,21 @@ namespace bbvtk
        bbSetInputOpacityValues(opaValues);
        bbSetInputMinColorWindow(0.0);
        bbSetInputMaxColorWindow(255.0);
-
-       opacityTransferFunction = vtkPiecewiseFunction::New();
-       grayTransferFunction = vtkPiecewiseFunction::New();
-
+       opacityTransferFunction         = vtkPiecewiseFunction::New();
+       grayTransferFunction    = vtkPiecewiseFunction::New();
           mCast        = NULL;
           mMIP         = NULL;
           mMapper      = NULL;
           mVolume      = NULL;
-
-
    }
+
        //---------------------------------------------------------------------
    void MIPCreator::bbUserInitializeProcessing()
    {
-
-
     // Create the pipeline
     mCast = vtkImageShiftScale::New();
     mCast->SetOutputScalarTypeToUnsignedChar();
     mCast->ClampOverflowOn();
-
-
 }
 
 //---------------------------------------------------------------------
@@ -120,9 +110,6 @@ namespace bbvtk
 
    void MIPCreator::Process()
    {
-
-
-
         double ranges[2];
         vtkImageData *image =  bbGetInputIn();
 //EED 2017-01-01 Migration VTK7
@@ -133,9 +120,7 @@ namespace bbvtk
        // ..
 #endif
         image->GetScalarRange(ranges);
-
           scale = 255/(ranges[1]/100);
-
 //EED 2017-01-01 Migration VTK7
 #if (VTK_MAJOR_VERSION <= 5) 
        mCast->SetInput( bbGetInputIn() );
@@ -145,49 +130,26 @@ namespace bbvtk
 #endif
        mCast->SetScale( scale / 100.0 );
      //mCast->SetShift( -bbGetInputShift() );
-
-
-
-
-
-
-
-
-
      DensityPoints = bbGetInputDensityPoints();
-
      //We assign by default the values of density by regarding at range from the image
      if(DensityPoints.size()==0)
      {
             DensityPoints.push_back(ranges[0]);
             DensityPoints.push_back(ranges[1]);
      }
-
-
      OpacityValues = bbGetInputOpacityValues();
-
      while(DensityPoints.size()>OpacityValues.size())
      {
          OpacityValues.push_back(1.0);
      }
-
-
-
       double factor = scale/ 100.0 ;
-
        double minCF = bbGetInputMinColorWindow();
        double maxCF = bbGetInputMaxColorWindow();
-
        grayTransferFunction->AddSegment( minCF , 0.0 , maxCF , 1.0 );
-
-
-
-
         for(int i =0; i< DensityPoints.size(); i++)
         {
-         cout<<"MIPCreator::Process::dPoint"<<i<<"::"<<DensityPoints.at(i)<<endl;
-         cout<<"MIPCreator::Process::oPoint"<<i<<"::"<<OpacityValues.at(i)<<endl;
-
+               cout<<"MIPCreator::Process::dPoint"<<i<<"::"<<DensityPoints.at(i)<<endl;
+           cout<<"MIPCreator::Process::oPoint"<<i<<"::"<<OpacityValues.at(i)<<endl;
             opacityTransferFunction->AddPoint(DensityPoints.at(i)*factor, OpacityValues.at(i));
         }
           //opacityTransferFunction = vtkPiecewiseFunction::New();
@@ -197,33 +159,23 @@ namespace bbvtk
 //        opacityTransferFunction->AddPoint( 210 ,   50.0/100.0 );
 //        opacityTransferFunction->AddPoint( 255 ,   90.0/100.0 );
 
-
-
           // Create a set of properties for mip
           vtkVolumeProperty *mipProperty;
           mipProperty = vtkVolumeProperty::New();
           mipProperty->SetScalarOpacity( opacityTransferFunction );
           mipProperty->SetColor( grayTransferFunction );
-
 //        mipProperty->SetInterpolationTypeToLinear();
           mipProperty->SetInterpolationTypeToNearest();
-
 //        mipProperty->ShadeOff();
           mipProperty->ShadeOn();
-
 //        mipProperty->SetAmbient(0.9);
 //        mipProperty->SetDiffuse(0.9);
 //        mipProperty->SetSpecular(0.9);
-
-
-
-
-
         mMIP = vtkVolumeRayCastMIPFunction::New();
         mMIP->SetMaximizeMethodToScalarValue();
-
         mMapper = vtkVolumeRayCastMapper::New();
         mMapper->SetVolumeRayCastFunction(mMIP);
+               mCast->Update();
 
 //EED 2017-01-01 Migration VTK7
 #if (VTK_MAJOR_VERSION <= 5) 
@@ -236,11 +188,7 @@ namespace bbvtk
         mVolume = vtkVolume::New();
         mVolume->SetMapper(mMapper);
         mVolume->SetProperty( mipProperty );
-
-
-
         mMapper->Update();
-
       bbSetOutputOut(mVolume);
      //     mVolume->GetProperty()->SetColor( bbGetInputColour()[0],  bbGetInputColour()[1], bbGetInputColour()[2] );
      //     mVolume->GetProperty()->SetOpacity( bbGetInputOpacity() );
diff --git a/packages/wxvtk/bbs/appli/exampleImagePlanes.bbg b/packages/wxvtk/bbs/appli/exampleImagePlanes.bbg
new file mode 100644 (file)
index 0000000..d9ce4a4
--- /dev/null
@@ -0,0 +1,50 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleImagePlanes.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:example
+DESCRIPTION:Example of the box vtk::ImagePlanes.
+AUTHOR:laurent.guigues@creatis.insa-lyon.fr
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:3
+BOX
+vtk:LoadHola:reader
+ISEXEC:FALSE
+0.000000:70.000000:-900.000000
+36.250000:60.000000:-900.000000
+FIN_BOX
+BOX
+vtk:ImagePlanes:planes
+ISEXEC:FALSE
+-2.010756:46.011610:-900.000000
+37.614244:36.011610:-900.000000
+FIN_BOX
+BOX
+wxvtk:Viewer3D:viewer
+ISEXEC:TRUE
+0.000000:10.000000:-900.000000
+63.720000:0.000000:-900.000000
+PORT
+WinHeight:"400"
+PORT
+WinTitle:"ExampleImagePlanes"
+PORT
+WinWidth:"350"
+FIN_BOX
+CONNECTIONS:4
+CONNECTION
+reader:Out:planes:In
+NumberOfControlPoints:0
+CONNECTION
+planes:PlaneX:viewer:Obs1
+NumberOfControlPoints:0
+CONNECTION
+planes:PlaneY:viewer:Obs2
+NumberOfControlPoints:0
+CONNECTION
+planes:PlaneZ:viewer:Obs3
+NumberOfControlPoints:0
+APP_END
index 565a7c3f9114632e6db8cf59b889a48356ff805c..1a0d2fe3aa3acbb5c8c737a278077f180445e9d9 100644 (file)
@@ -1,50 +1,39 @@
- # ---------------------------------------------------------------------
- #
- # 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/wxvtk/bbs/appli/exampleImagePlanes.bbs
+# ----------------------------------
 
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include vtk
+include wxvtk
 
-description "Example of the box vtk::ImagePlanes."
 author "laurent.guigues@creatis.insa-lyon.fr"
+description "Example of the box vtk::ImagePlanes."
 category "example"
 
-include vtk/boxes/bbLoadHola
-load vtk
-load wxvtk
+new vtk:LoadHola reader
+
+new vtk:ImagePlanes planes
+
+new wxvtk:Viewer3D viewer
+  set viewer.WinHeight "400"
+  set viewer.WinTitle "ExampleImagePlanes"
+  set viewer.WinWidth "350"
+
 
-new LoadHola reader
-new ImagePlanes planes
-new Viewer3D viewer
 connect reader.Out planes.In
+
 connect planes.PlaneX viewer.Obs1
+
 connect planes.PlaneY viewer.Obs2
+
 connect planes.PlaneZ viewer.Obs3
 
-load std
-set viewer.WinTitle "ExampleImagePlanes"
-set viewer.WinWidth 350
-set viewer.WinHeight 400
-#set viewer.Slice 20
 
-exec viewer
 
+# Complex input ports
+exec viewer
diff --git a/packages/wxvtk/bbs/appli/exampleIsoSurfaceWidget.bbg b/packages/wxvtk/bbs/appli/exampleIsoSurfaceWidget.bbg
new file mode 100644 (file)
index 0000000..24e61fd
--- /dev/null
@@ -0,0 +1,107 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/appli/bbs/appli/exampleIsoSurfaceWidget.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:example
+DESCRIPTION:Example of IsoSurfaceWidget.
+AUTHOR:laurent.guigues at creatis.insa-lyon.fr
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:7
+BOX
+wxvtk:IsoSurfaceWidget:surface1
+ISEXEC:FALSE
+-17.763434:48.350814:-900.000000
+27.861566:38.350814:-900.000000
+PORT
+Colour:"0.5 0 0"
+PORT
+Isovalue:"100"
+PORT
+Opacity:"100"
+PORT
+Title:"Iso-surface 1"
+FIN_BOX
+BOX
+wxvtk:IsoSurfaceWidget:surface2
+ISEXEC:FALSE
+-76.685492:44.440859:-900.000000
+-31.060492:34.440859:-900.000000
+PORT
+Isovalue:"200"
+PORT
+Opacity:"20"
+PORT
+Title:"Iso-surface 2"
+FIN_BOX
+BOX
+wxvtk:Viewer3D:viewer
+ISEXEC:FALSE
+-71.608845:-32.743264:-900.000000
+-7.888845:-42.743264:-900.000000
+FIN_BOX
+BOX
+vtk:LoadHola:reader1
+ISEXEC:FALSE
+-8.962398:102.678719:-900.000000
+28.412602:92.678719:-900.000000
+FIN_BOX
+BOX
+std:MultipleInputs:refresh
+ISEXEC:FALSE
+-28.865581:0.514767:-900.000000
+11.509419:-9.485233:-900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:main
+ISEXEC:TRUE
+-31.022958:-128.884139:-900.000000
+26.537042:-138.884139:-900.000000
+PORT
+WinHeight:"800"
+PORT
+WinWidth:"800"
+FIN_BOX
+BOX
+wx:LayoutLine:controls
+ISEXEC:FALSE
+64.947557:-18.962398:-900.000000
+122.507557:-28.962398:-900.000000
+FIN_BOX
+CONNECTIONS:11
+CONNECTION
+reader1:Out:surface1:In
+NumberOfControlPoints:0
+CONNECTION
+reader1:Out:surface2:In
+NumberOfControlPoints:0
+CONNECTION
+surface1:Out:viewer:In1
+NumberOfControlPoints:0
+CONNECTION
+surface2:Out:viewer:In2
+NumberOfControlPoints:0
+CONNECTION
+surface1:BoxChange:refresh:In1
+NumberOfControlPoints:0
+CONNECTION
+surface2:BoxChange:refresh:In2
+NumberOfControlPoints:0
+CONNECTION
+viewer:Widget:main:Widget1
+NumberOfControlPoints:0
+CONNECTION
+controls:Widget:main:Widget2
+NumberOfControlPoints:0
+CONNECTION
+surface1:Widget:controls:Widget1
+NumberOfControlPoints:0
+CONNECTION
+surface2:Widget:controls:Widget2
+NumberOfControlPoints:0
+CONNECTION
+refresh:Out:viewer:BoxExecute
+NumberOfControlPoints:0
+APP_END
index 6b2714134b6738529db85fd39690f8147c35db12..64fb87102be995d7aa98f129b28bf7812a954b0b 100644 (file)
@@ -1,76 +1,69 @@
- # ---------------------------------------------------------------------
- #
- # 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/appli/bbs/appli/exampleIsoSurfaceWidget.bbs
+# ----------------------------------
 
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include wxvtk
+include vtk
+include std
+include wx
 
-description "Example of IsoSurfaceWidget."
 author "laurent.guigues at creatis.insa-lyon.fr"
+description "Example of IsoSurfaceWidget."
 category "example"
 
-include wxvtk
+new wxvtk:IsoSurfaceWidget surface1
+  set surface1.Colour "0.5 0 0"
+  set surface1.Isovalue "100"
+  set surface1.Opacity "100"
+  set surface1.Title "Iso-surface 1"
 
-include wxvtk/boxes/bbIsoSurfaceWidget
-include vtk/boxes/bbLoadHola
-new IsoSurfaceWidget surface1
-new IsoSurfaceWidget surface2
+new wxvtk:IsoSurfaceWidget surface2
+  set surface2.Isovalue "200"
+  set surface2.Opacity "20"
+  set surface2.Title "Iso-surface 2"
 
-//load wxvtk
-new Viewer3D viewer
-new LoadHola reader1
+new wxvtk:Viewer3D viewer
 
-connect reader1.Out surface1.In
-connect reader1.Out surface2.In
+new vtk:LoadHola reader1
+
+new std:MultipleInputs refresh
+
+new wx:LayoutLine main
+  set main.WinHeight "800"
+  set main.WinWidth "800"
 
-set surface1.Isovalue 100
-set surface1.Opacity 100
-set surface1.Colour "0.5 0 0"
-set surface1.Title "Iso-surface 1"
+new wx:LayoutLine controls
 
-set surface2.Isovalue 200
-set surface2.Opacity 20
-set surface2.Title "Iso-surface 2"
 
+connect reader1.Out surface1.In
+
+connect reader1.Out surface2.In
 
 connect surface1.Out viewer.In1
+
 connect surface2.Out viewer.In2
-new MultipleInputs refresh
+
 connect surface1.BoxChange refresh.In1
+
 connect surface2.BoxChange refresh.In2
 
-new LayoutLine main
-new LayoutLine controls
 connect viewer.Widget main.Widget1
-connect controls.Widget main.Widget2 
-connect surface1.Widget controls.Widget1 
-connect surface2.Widget controls.Widget2
 
-set main.WinWidth 800
-set main.WinHeight  800
+connect controls.Widget main.Widget2
 
-exec main
+connect surface1.Widget controls.Widget1
+
+connect surface2.Widget controls.Widget2
 
-# BUG in pipeline update : have to plug forced execution of viewer 
-# after creation of all windows
 connect refresh.Out viewer.BoxExecute
+
+
+
+# Complex input ports
+exec main
diff --git a/packages/wxvtk/bbs/appli/exampleMIPWidget.bbg b/packages/wxvtk/bbs/appli/exampleMIPWidget.bbg
new file mode 100644 (file)
index 0000000..26ac4b1
--- /dev/null
@@ -0,0 +1,57 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleMIPWidget.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:example
+DESCRIPTION:Example of MIPWidget.
+AUTHOR:laurent.guigues at creatis.insa-lyon.fr
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:4
+BOX
+wxvtk:MIPWidget:MIP
+ISEXEC:FALSE
+2.104064:58.878521:-900.000000
+36.379064:48.878521:-900.000000
+PORT
+Title:"MIP Controls"
+FIN_BOX
+BOX
+wxvtk:Viewer3D:viewer
+ISEXEC:FALSE
+-72.647174:20.161687:-900.000000
+-8.927174:10.161687:-900.000000
+FIN_BOX
+BOX
+vtk:LoadHola:reader
+ISEXEC:FALSE
+-32.763275:78.532355:-900.000000
+3.486725:68.532355:-900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:main
+ISEXEC:TRUE
+-34.172870:-23.907547:-900.000000
+23.387130:-33.907547:-900.000000
+PORT
+WinTitle:"ExampleMIPWidget"
+FIN_BOX
+CONNECTIONS:5
+CONNECTION
+reader:Out:MIP:In
+NumberOfControlPoints:0
+CONNECTION
+MIP:Out:viewer:In1
+NumberOfControlPoints:0
+CONNECTION
+MIP:BoxChange:viewer:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+viewer:Widget:main:Widget1
+NumberOfControlPoints:0
+CONNECTION
+MIP:Widget:main:Widget2
+NumberOfControlPoints:0
+APP_END
index 10c4c05902dceae9f2b74d3a99044169e0cdca29..39dcc461411c906700f9f630000fba2e20b6b8c1 100644 (file)
@@ -1,54 +1,43 @@
- # ---------------------------------------------------------------------
- #
- # 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/wxvtk/bbs/appli/exampleMIPWidget.bbs
+# ----------------------------------
 
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include wxvtk
+include vtk
+include wx
 
-description "Example of MIPWidget."
 author "laurent.guigues at creatis.insa-lyon.fr"
+description "Example of MIPWidget."
 category "example"
 
-include wxvtk/boxes/bbMIPWidget
-include vtk/boxes/bbLoadHola
-new MIPWidget MIP
+new wxvtk:MIPWidget MIP
+  set MIP.Title "MIP Controls"
+
+new wxvtk:Viewer3D viewer
+
+new vtk:LoadHola reader
+
+new wx:LayoutLine main
+  set main.WinTitle "ExampleMIPWidget"
 
-load wxvtk
-new Viewer3D viewer
-new LoadHola reader
 
 connect reader.Out MIP.In
+
 connect MIP.Out viewer.In1
+
 connect MIP.BoxChange viewer.BoxExecute
 
-new LayoutLine main
 connect viewer.Widget main.Widget1
-connect MIP.Widget main.Widget2 
 
-set MIP.Shift 300
-set MIP.Scale 200
-#set MIP.Colour "0.5 0 0"
-set MIP.Title "MIP Controls"
+connect MIP.Widget main.Widget2
+
+
 
-set main.WinTitle "ExampleMIPWidget"
+# Complex input ports
 exec main
diff --git a/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbg b/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbg
new file mode 100644 (file)
index 0000000..3ecd66e
--- /dev/null
@@ -0,0 +1,144 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:tool image viewer
+DESCRIPTION:elementary image synchronization tool
+AUTHOR:info-dev at creatis.Insa-lyon.fr
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:12
+BOX
+creaImageIO:ImagesChooserDialogBox:chooser1
+ISEXEC:FALSE
+34.805229:92.592868:-900.000000
+89.430229:82.592868:-900.000000
+FIN_BOX
+BOX
+vtk:ConcatImages:reader1
+ISEXEC:FALSE
+46.468061:65.212081:-900.000000
+89.068061:55.212081:-900.000000
+FIN_BOX
+BOX
+creaImageIO:ImagesChooserDialogBox:chooser2
+ISEXEC:FALSE
+-91.028897:89.210524:-900.000000
+-36.403897:79.210524:-900.000000
+FIN_BOX
+BOX
+vtk:ConcatImages:reader2
+ISEXEC:FALSE
+-101.880062:-4.332819:-900.000000
+-59.280062:-14.332819:-900.000000
+FIN_BOX
+BOX
+creaMaracasVisu:ViewerNV:viewer1
+ISEXEC:FALSE
+32.876971:-62.895296:-900.000000
+96.596971:-72.895296:-900.000000
+PORT
+nTypeView:"0"
+FIN_BOX
+BOX
+creaMaracasVisu:ViewerNV:viewer2
+ISEXEC:FALSE
+-100.594549:-63.561510:-900.000000
+-36.874549:-73.561510:-900.000000
+PORT
+nTypeView:"0"
+FIN_BOX
+BOX
+wx:Slider:slider
+ISEXEC:FALSE
+-19.017545:-28.450304:-900.000000
+32.382455:-38.450304:-900.000000
+PORT
+ReactiveOnTrack:"1"
+PORT
+Title:"Slice number"
+FIN_BOX
+BOX
+wx:LayoutSplit:layout
+ISEXEC:TRUE
+-55.328435:-151.513368:-900.000000
+-16.248435:-161.513368:-900.000000
+PORT
+Proportion:"10"
+FIN_BOX
+BOX
+wx:LayoutLine:layout_line
+ISEXEC:FALSE
+-17.426729:-112.296567:-900.000000
+40.133271:-122.296567:-900.000000
+PORT
+Orientation:"H"
+FIN_BOX
+BOX
+itk:ImageProperties:imProperties
+ISEXEC:FALSE
+-17.395966:41.194134:-900.000000
+30.879034:31.194134:-900.000000
+FIN_BOX
+BOX
+std:GetVectorIntElement:imSize
+ISEXEC:FALSE
+-35.036257:20.479935:-900.000000
+11.688743:10.479935:-900.000000
+PORT
+I:"2"
+FIN_BOX
+BOX
+std:Add:add
+ISEXEC:FALSE
+-9.017909:-1.097942:-900.000000
+19.607091:-11.097942:-900.000000
+PORT
+In1:"-1"
+FIN_BOX
+CONNECTIONS:14
+CONNECTION
+reader1:Out:viewer1:In
+NumberOfControlPoints:0
+CONNECTION
+slider:BoxChange:viewer1:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+reader2:Out:viewer2:In
+NumberOfControlPoints:0
+CONNECTION
+slider:BoxChange:viewer2:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+slider:Widget:layout:Widget1
+NumberOfControlPoints:0
+CONNECTION
+layout_line:Widget:layout:Widget2
+NumberOfControlPoints:0
+CONNECTION
+viewer1:Widget:layout_line:Widget1
+NumberOfControlPoints:0
+CONNECTION
+viewer2:Widget:layout_line:Widget2
+NumberOfControlPoints:0
+CONNECTION
+reader1:Out:imProperties:In
+NumberOfControlPoints:0
+CONNECTION
+imProperties:Size:imSize:In
+NumberOfControlPoints:0
+CONNECTION
+imSize:Out:add:In2
+NumberOfControlPoints:0
+CONNECTION
+add:Out:slider:Max
+NumberOfControlPoints:0
+CONNECTION
+chooser2:OutImages:reader2:In
+NumberOfControlPoints:0
+CONNECTION
+chooser1:OutImages:reader1:In
+NumberOfControlPoints:0
+APP_END
index 117da984a500d7ee2ba50b1b494695bbb3f1b42e..6962a3692275950b8c1f8669cff7fcbef6af9e7c 100644 (file)
@@ -1,86 +1,86 @@
- # ---------------------------------------------------------------------
- #
- # 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/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbs
+# ----------------------------------
 
-
-
-description "elementary image synchronization tool"
-author "info-dev at creatis.Insa-lyon.fr"
-category  "tool image viewer"
+# BBTK GEditor Script
+# ----------------------
 
 include std
+include itkvtk
+include creaImageIO
 include vtk
+include creaMaracasVisu
 include wx
 include itk
-include wxvtk
-include itkvtk
+include std
+
+author "info-dev at creatis.Insa-lyon.fr"
+description "elementary image synchronization tool"
+category "tool image viewer"
+
+new creaImageIO:ImagesChooserDialogBox chooser1
+
+new vtk:ConcatImages reader1
+
+new creaImageIO:ImagesChooserDialogBox chooser2
+
+new vtk:ConcatImages reader2
+
+new creaMaracasVisu:ViewerNV viewer1
+  set viewer1.nTypeView "0"
 
-load creaImageIO
-load creaMaracasVisu
+new creaMaracasVisu:ViewerNV viewer2
+  set viewer2.nTypeView "0"
 
-new ImagesChooserDialogBox chooser1
-new ConcatImages reader1
-   connect chooser1.Out reader1.In
+new wx:Slider slider
+  set slider.ReactiveOnTrack "1"
+  set slider.Title "Slice number"
 
-new ImagesChooserDialogBox chooser2
-new ConcatImages reader2
-   connect chooser2.Out reader2.In
+new wx:LayoutSplit layout
+  set layout.Proportion "10"
 
-new ViewerNV viewer1
-   set viewer1.nTypeView 0
-new ViewerNV viewer2
-   set viewer2.nTypeView 0
+new wx:LayoutLine layout_line
+  set layout_line.Orientation "H"
 
-# slider is useless, since ViewerNV has no entry 'Slice Number' :-(
-new Slider       slider
-new LayoutSplit layout 
-new LayoutLine layout_line
-new ImageProperties imProperties
-new GetVectorIntElement imSize
-new Add add
+new itk:ImageProperties imProperties
+
+new std:GetVectorIntElement imSize
+  set imSize.I "2"
+
+new std:Add add
+  set add.In1 "-1"
+
+
+connect reader1.Out viewer1.In
 
-connect reader1.Out      viewer1.In
 connect slider.BoxChange viewer1.BoxExecute
 
-connect reader2.Out       viewer2.In
+connect reader2.Out viewer2.In
+
 connect slider.BoxChange viewer2.BoxExecute
 
 connect slider.Widget layout.Widget1
+
 connect layout_line.Widget layout.Widget2
+
 connect viewer1.Widget layout_line.Widget1
+
 connect viewer2.Widget layout_line.Widget2
+
 connect reader1.Out imProperties.In
+
 connect imProperties.Size imSize.In
+
 connect imSize.Out add.In2
+
 connect add.Out slider.Max
 
-set slider.Title "Slice number"
-set slider.ReactiveOnTrack 1
-set layout.Proportion 10
-set layout_line.Orientation H
+connect chooser2.OutImages reader2.In
+
+connect chooser1.OutImages reader1.In
+
 
-set imSize.I 2
-set add.In1 -1
 
+# Complex input ports
 exec layout
diff --git a/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicerMHD.bbg b/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicerMHD.bbg
new file mode 100644 (file)
index 0000000..03712e4
--- /dev/null
@@ -0,0 +1,154 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicerMHD.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:application image viewer
+DESCRIPTION:elementary 3D image synchronization tool
+AUTHOR:maciej.orkisz at creatis.Insa-lyon.fr
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:12
+BOX
+wx:FileSelector:fileDialog1
+ISEXEC:FALSE
+0.000000:70.000000:-900.000000
+37.375000:60.000000:-900.000000
+PORT
+DefaultDir:"."
+PORT
+Message:"Select the first (left) MHD image file"
+FIN_BOX
+BOX
+vtk:MetaImageReader:reader1
+ISEXEC:FALSE
+2.407568:40.470839:-900.000000
+48.907568:30.470839:-900.000000
+FIN_BOX
+BOX
+wx:FileSelector:fileDialog2
+ISEXEC:FALSE
+-68.507131:64.617369:-900.000000
+-26.757131:54.617369:-900.000000
+PORT
+DefaultDir:"."
+PORT
+Message:"Select the second (right) MHD image file"
+FIN_BOX
+BOX
+vtk:MetaImageReader:reader2
+ISEXEC:FALSE
+-71.607188:38.192114:-900.000000
+-25.107188:28.192114:-900.000000
+FIN_BOX
+BOX
+wxvtk:Viewer2D:viewer1
+ISEXEC:FALSE
+29.269295:-74.222865:-900.000000
+68.349295:-84.222865:-900.000000
+FIN_BOX
+BOX
+wxvtk:Viewer2D:viewer2
+ISEXEC:FALSE
+-77.795707:-75.458213:-900.000000
+-38.715707:-85.458213:-900.000000
+FIN_BOX
+BOX
+wx:Slider:slider
+ISEXEC:FALSE
+9.033110:-36.675368:-900.000000
+60.433110:-46.675368:-900.000000
+PORT
+ReactiveOnTrack:"1"
+PORT
+Title:"Slice number"
+FIN_BOX
+BOX
+wx:LayoutSplit:layout
+ISEXEC:TRUE
+-43.782767:-167.503045:-900.000000
+-4.702767:-177.503045:-900.000000
+PORT
+Proportion:"10"
+FIN_BOX
+BOX
+wx:LayoutLine:layout_line
+ISEXEC:FALSE
+-94.368246:-112.268838:-900.000000
+-36.808246:-122.268838:-900.000000
+PORT
+Orientation:"H"
+FIN_BOX
+BOX
+itk:ImageProperties:imProperties
+ISEXEC:FALSE
+22.779648:22.396181:-900.000000
+71.054648:12.396181:-900.000000
+FIN_BOX
+BOX
+std:GetVectorIntElement:imSize
+ISEXEC:FALSE
+29.521617:3.296470:-900.000000
+76.246617:-6.703530:-900.000000
+PORT
+I:"2"
+FIN_BOX
+BOX
+std:Add:add
+ISEXEC:FALSE
+24.504482:-12.520390:-900.000000
+53.129482:-22.520390:-900.000000
+PORT
+In1:"-1"
+FIN_BOX
+CONNECTIONS:16
+CONNECTION
+fileDialog1:Out:reader1:In
+NumberOfControlPoints:0
+CONNECTION
+reader1:Out:viewer1:In
+NumberOfControlPoints:0
+CONNECTION
+slider:Out:viewer1:Slice
+NumberOfControlPoints:0
+CONNECTION
+slider:BoxChange:viewer1:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+fileDialog2:Out:reader2:In
+NumberOfControlPoints:0
+CONNECTION
+reader2:Out:viewer2:In
+NumberOfControlPoints:0
+CONNECTION
+slider:Out:viewer2:Slice
+NumberOfControlPoints:0
+CONNECTION
+slider:BoxChange:viewer2:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+slider:Widget:layout:Widget1
+NumberOfControlPoints:0
+CONNECTION
+layout_line:Widget:layout:Widget2
+NumberOfControlPoints:0
+CONNECTION
+viewer1:Widget:layout_line:Widget1
+NumberOfControlPoints:0
+CONNECTION
+viewer2:Widget:layout_line:Widget2
+NumberOfControlPoints:0
+CONNECTION
+reader1:Out:imProperties:In
+NumberOfControlPoints:0
+CONNECTION
+imProperties:Size:imSize:In
+NumberOfControlPoints:0
+CONNECTION
+imSize:Out:add:In2
+NumberOfControlPoints:0
+CONNECTION
+add:Out:slider:Max
+NumberOfControlPoints:0
+APP_END
index 2b1c5970ca0bd34b6648598c2ecdc24c61761467..412175a46ad87f8329c492257a564677d8f81c34 100644 (file)
@@ -1,87 +1,91 @@
- # ---------------------------------------------------------------------
- #
- # 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.
- # ------------------------------------------------------------------------ */
-
-
-# my_MHD_slicer.bbs
-description "elementary 3D image synchronization tool"
-author "maciej.orkisz at creatis.Insa-lyon.fr"
-#category "example"
-category  "application image viewer"
-#category "image"
-#category "viewer"
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicerMHD.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
 
 include std
-include vtk
+include itkvtk
 include wx
-include itk
+include vtk
 include wxvtk
-include itkvtk
+include itk
+include std
+
+author "maciej.orkisz at creatis.Insa-lyon.fr"
+description "elementary 3D image synchronization tool"
+category "application image viewer"
+
+new wx:FileSelector fileDialog1
+  set fileDialog1.DefaultDir "."
+  set fileDialog1.Message "Select the first (left) MHD image file"
+
+new vtk:MetaImageReader reader1
+
+new wx:FileSelector fileDialog2
+  set fileDialog2.DefaultDir "."
+  set fileDialog2.Message "Select the second (right) MHD image file"
+
+new vtk:MetaImageReader reader2
+
+new wxvtk:Viewer2D viewer1
+
+new wxvtk:Viewer2D viewer2
+
+new wx:Slider slider
+  set slider.ReactiveOnTrack "1"
+  set slider.Title "Slice number"
+
+new wx:LayoutSplit layout
+  set layout.Proportion "10"
+
+new wx:LayoutLine layout_line
+  set layout_line.Orientation "H"
+
+new itk:ImageProperties imProperties
+
+new std:GetVectorIntElement imSize
+  set imSize.I "2"
+
+new std:Add add
+  set add.In1 "-1"
+
+
+connect fileDialog1.Out reader1.In
+
+connect reader1.Out viewer1.In
+
+connect slider.Out viewer1.Slice
 
-new FileSelector fileDialog1
-new MetaImageReader reader1
-new FileSelector fileDialog2
-new MetaImageReader reader2
-new Viewer2D     viewer1
-new Viewer2D     viewer2
-new Slider       slider
-new LayoutSplit layout 
-new LayoutLine layout_line
-new ImageProperties imProperties
-new GetVectorIntElement imSize
-new Add add
-
-connect fileDialog1.Out   reader1.In 
-connect reader1.Out       viewer1.In
-connect slider.Out       viewer1.Slice
 connect slider.BoxChange viewer1.BoxExecute
 
-connect fileDialog2.Out   reader2.In 
-connect reader2.Out       viewer2.In
-connect slider.Out       viewer2.Slice
+connect fileDialog2.Out reader2.In
+
+connect reader2.Out viewer2.In
+
+connect slider.Out viewer2.Slice
+
 connect slider.BoxChange viewer2.BoxExecute
 
 connect slider.Widget layout.Widget1
+
 connect layout_line.Widget layout.Widget2
+
 connect viewer1.Widget layout_line.Widget1
+
 connect viewer2.Widget layout_line.Widget2
+
 connect reader1.Out imProperties.In
+
 connect imProperties.Size imSize.In
+
 connect imSize.Out add.In2
+
 connect add.Out slider.Max
 
-set fileDialog1.Message "Select the first (left) MHD image file"
-set fileDialog2.Message "Select the second (right) MHD image file"
-set slider.Title "Slice number"
-set slider.ReactiveOnTrack 1
-set layout.Proportion 10
-set layout_line.Orientation H
 
-set fileDialog1.DefaultDir "."
-set fileDialog2.DefaultDir "."
-set imSize.I 2
-set add.In1 -1
 
+# Complex input ports
 exec layout
diff --git a/packages/wxvtk/bbs/appli/exampleView2D3D.bbg b/packages/wxvtk/bbs/appli/exampleView2D3D.bbg
new file mode 100644 (file)
index 0000000..6fa5275
--- /dev/null
@@ -0,0 +1,82 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleView2D3D.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:<VOID>
+DESCRIPTION:Description ??
+AUTHOR:Author ??
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:6
+BOX
+vtk:LoadHola:reader
+ISEXEC:FALSE
+0.000000:70.000000:-900.000000
+35.550000:60.000000:-900.000000
+FIN_BOX
+BOX
+wx:Slider:slider
+ISEXEC:FALSE
+30.657931:45.414653:-900.000000
+82.057931:35.414653:-900.000000
+PORT
+In:"20"
+FIN_BOX
+BOX
+wxvtk:Viewer2D:v2d
+ISEXEC:FALSE
+31.546239:3.408249:-900.000000
+70.626239:-6.591751:-900.000000
+FIN_BOX
+BOX
+wxvtk:Viewer3D:v3d
+ISEXEC:FALSE
+-79.518486:-19.529161:-900.000000
+-15.798486:-29.529161:-900.000000
+FIN_BOX
+BOX
+wx:LayoutTab:layout
+ISEXEC:TRUE
+-7.062591:-52.589617:-900.000000
+50.497409:-62.589617:-900.000000
+FIN_BOX
+BOX
+wxvtk:IsoSurfaceWidget:surface
+ISEXEC:FALSE
+-76.222611:12.755360:-900.000000
+-31.722611:2.755360:-900.000000
+FIN_BOX
+CONNECTIONS:10
+CONNECTION
+reader:Out:v2d:In
+NumberOfControlPoints:0
+CONNECTION
+slider:Out:v2d:Slice
+NumberOfControlPoints:0
+CONNECTION
+slider:Widget:layout:Widget1
+NumberOfControlPoints:0
+CONNECTION
+v2d:Widget:layout:Widget2
+NumberOfControlPoints:0
+CONNECTION
+slider:BoxChange:v2d:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+reader:Out:surface:In
+NumberOfControlPoints:0
+CONNECTION
+surface:Out:v3d:In1
+NumberOfControlPoints:0
+CONNECTION
+surface:Widget:layout:Widget3
+NumberOfControlPoints:0
+CONNECTION
+v3d:Widget:layout:Widget4
+NumberOfControlPoints:0
+CONNECTION
+surface:BoxChange:v3d:BoxExecute
+NumberOfControlPoints:0
+APP_END
index 05dfb4c99d6437dcf6b01dd7d4b32d5f28036c3f..3f58e14d651be84fcf9aa5fe0c15b64b5c762376 100644 (file)
@@ -1,50 +1,56 @@
- # ---------------------------------------------------------------------
- #
- # 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 wx
-include wxvtk
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleView2D3D.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
 include vtk
+include wx
+include wxvtk
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new vtk:LoadHola reader
+
+new wx:Slider slider
+  set slider.In "20"
+
+new wxvtk:Viewer2D v2d
+
+new wxvtk:Viewer3D v3d
+
+new wx:LayoutTab layout
+
+new wxvtk:IsoSurfaceWidget surface
 
-new LoadHola reader
-new Slider slider
-new Viewer2D v2d
-new Viewer3D v3d
-new LayoutTab layout
 
-set slider.In 20
 connect reader.Out v2d.In
+
 connect slider.Out v2d.Slice
+
 connect slider.Widget layout.Widget1
+
 connect v2d.Widget layout.Widget2
+
 connect slider.BoxChange v2d.BoxExecute
-new IsoSurfaceWidget surface
+
 connect reader.Out surface.In
+
 connect surface.Out v3d.In1
+
 connect surface.Widget layout.Widget3
+
 connect v3d.Widget layout.Widget4
+
 connect surface.BoxChange v3d.BoxExecute
 
+
+
+# Complex input ports
 exec layout
diff --git a/packages/wxvtk/bbs/appli/exampleView3DImage1.bbg b/packages/wxvtk/bbs/appli/exampleView3DImage1.bbg
new file mode 100644 (file)
index 0000000..45442bd
--- /dev/null
@@ -0,0 +1,96 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleView3DImage1.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:example
+DESCRIPTION:Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWidget. Screenshot : <img src=ExampleView3DImage1.jpg></img>
+AUTHOR:laurent.guigues at creatis.insa-lyon.fr
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:6
+BOX
+vtk:LoadHola:reader
+ISEXEC:FALSE
+-35.783794:49.518486:-900.000000
+0.466206:39.518486:-900.000000
+FIN_BOX
+BOX
+vtk:ImagePlanes:planes
+ISEXEC:FALSE
+-67.747502:16.928870:-900.000000
+-28.122502:6.928870:-900.000000
+FIN_BOX
+BOX
+wxvtk:IsoSurfaceWidget:surface
+ISEXEC:FALSE
+-15.302280:20.593886:-900.000000
+29.197720:10.593886:-900.000000
+PORT
+Colour:"1.0 0.31 0.31"
+PORT
+Isovalue:"100"
+PORT
+Opacity:"100"
+PORT
+Title:"Iso-surface"
+FIN_BOX
+BOX
+wxvtk:Viewer3D:viewer
+ISEXEC:FALSE
+-71.985056:-11.524891:-900.000000
+-8.265056:-21.524891:-900.000000
+PORT
+Stereo:"FALSE"
+PORT
+WinHeight:"400"
+PORT
+WinTitle:"ExampleView3DImage1"
+PORT
+WinWidth:"350"
+FIN_BOX
+BOX
+wx:LayoutSplit:main
+ISEXEC:TRUE
+-26.602426:-49.058321:-900.000000
+12.477574:-59.058321:-900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:controls
+ISEXEC:FALSE
+-1.829987:-12.669967:-900.000000
+55.730013:-22.669967:-900.000000
+FIN_BOX
+CONNECTIONS:10
+CONNECTION
+reader:Out:planes:In
+NumberOfControlPoints:0
+CONNECTION
+planes:PlaneX:viewer:Obs1
+NumberOfControlPoints:0
+CONNECTION
+planes:PlaneY:viewer:Obs2
+NumberOfControlPoints:0
+CONNECTION
+planes:PlaneZ:viewer:Obs3
+NumberOfControlPoints:0
+CONNECTION
+reader:Out:surface:In
+NumberOfControlPoints:0
+CONNECTION
+surface:Out:viewer:In1
+NumberOfControlPoints:0
+CONNECTION
+surface:BoxChange:viewer:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+viewer:Widget:main:Widget1
+NumberOfControlPoints:0
+CONNECTION
+controls:Widget:main:Widget2
+NumberOfControlPoints:0
+CONNECTION
+surface:Widget:controls:Widget1
+NumberOfControlPoints:0
+APP_END
index 9fac56df538bb6eabd4a0206ea8443a9ca1e7645..8e14d765229d4694a54af3b4485926fea0041777 100644 (file)
@@ -1,69 +1,63 @@
- # ---------------------------------------------------------------------
- #
- # 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/wxvtk/bbs/appli/exampleView3DImage1.bbs
+# ----------------------------------
 
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include vtk
+include wxvtk
+include wx
 
-description "Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWidget. Screenshot : <img src=ExampleView3DImage1.jpg></img>"
 author "laurent.guigues at creatis.insa-lyon.fr"
+description "Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWidget. Screenshot : <img src=ExampleView3DImage1.jpg></img>"
 category "example"
 
-load vtk
-load wxvtk
-include vtk/boxes/bbLoadHola
-include wxvtk/bbs/boxes/bbIsoSurfaceWidget
+new vtk:LoadHola reader
+
+new vtk:ImagePlanes planes
+
+new wxvtk:IsoSurfaceWidget surface
+  set surface.Colour "1.0 0.31 0.31"
+  set surface.Isovalue "100"
+  set surface.Opacity "100"
+  set surface.Title "Iso-surface"
+
+new wxvtk:Viewer3D viewer
+  set viewer.Stereo "FALSE"
+  set viewer.WinHeight "400"
+  set viewer.WinTitle "ExampleView3DImage1"
+  set viewer.WinWidth "350"
+
+new wx:LayoutSplit main
+
+new wx:LayoutLine controls
 
-new LoadHola reader
-new ImagePlanes planes
-new IsoSurfaceWidget surface
-new Viewer3D viewer
 
 connect reader.Out planes.In
+
 connect planes.PlaneX viewer.Obs1
+
 connect planes.PlaneY viewer.Obs2
+
 connect planes.PlaneZ viewer.Obs3
 
 connect reader.Out surface.In
+
 connect surface.Out viewer.In1
+
 connect surface.BoxChange viewer.BoxExecute
 
-new LayoutSplit main
-new LayoutLine controls
 connect viewer.Widget main.Widget1
-connect controls.Widget main.Widget2 
-connect surface.Widget controls.Widget1 
 
-set surface.Isovalue 100
-set surface.Opacity 100
-set surface.Colour "1.0 0.31 0.31"
-set surface.Title "Iso-surface"
+connect controls.Widget main.Widget2
 
-load std
-set viewer.WinTitle "ExampleView3DImage1"
-set viewer.WinWidth 350
-set viewer.WinHeight 400
-set viewer.Stereo FALSE
+connect surface.Widget controls.Widget1
 
 
-exec main
 
+# Complex input ports
+exec main
diff --git a/packages/wxvtk/bbs/appli/exampleView3DImage1_Stereo.bbg b/packages/wxvtk/bbs/appli/exampleView3DImage1_Stereo.bbg
new file mode 100644 (file)
index 0000000..4d6d0f0
--- /dev/null
@@ -0,0 +1,96 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleView3DImage1_Stereo.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:example
+DESCRIPTION:Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWidget. Screenshot : <img src=ExampleView3DImage1.jpg></img>
+AUTHOR:laurent.guigues at creatis.insa-lyon.fr
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:6
+BOX
+vtk:LoadHola:reader
+ISEXEC:FALSE
+0.000000:70.000000:-900.000000
+35.550000:60.000000:-900.000000
+FIN_BOX
+BOX
+vtk:ImagePlanes:planes
+ISEXEC:FALSE
+-70.337118:27.758176:-900.000000
+-30.712118:17.758176:-900.000000
+FIN_BOX
+BOX
+wxvtk:IsoSurfaceWidget:surface
+ISEXEC:FALSE
+-0.470839:28.362736:-900.000000
+44.029161:18.362736:-900.000000
+PORT
+Colour:"1.0 0.31 0.31"
+PORT
+Isovalue:"100"
+PORT
+Opacity:"100"
+PORT
+Title:"Iso-surface"
+FIN_BOX
+BOX
+wxvtk:Viewer3D:viewer
+ISEXEC:FALSE
+-62.568268:-7.287336:-900.000000
+1.151732:-17.287336:-900.000000
+PORT
+Stereo:"TRUE"
+PORT
+WinHeight:"400"
+PORT
+WinTitle:"ExampleView3DImage1"
+PORT
+WinWidth:"350"
+FIN_BOX
+BOX
+wx:LayoutSplit:main
+ISEXEC:TRUE
+-29.898301:-53.531295:-900.000000
+9.181699:-63.531295:-900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:controls
+ISEXEC:FALSE
+7.115961:-6.313635:-900.000000
+64.675961:-16.313635:-900.000000
+FIN_BOX
+CONNECTIONS:10
+CONNECTION
+reader:Out:planes:In
+NumberOfControlPoints:0
+CONNECTION
+planes:PlaneX:viewer:Obs1
+NumberOfControlPoints:0
+CONNECTION
+planes:PlaneY:viewer:Obs2
+NumberOfControlPoints:0
+CONNECTION
+planes:PlaneZ:viewer:Obs3
+NumberOfControlPoints:0
+CONNECTION
+reader:Out:surface:In
+NumberOfControlPoints:0
+CONNECTION
+surface:Out:viewer:In1
+NumberOfControlPoints:0
+CONNECTION
+surface:BoxChange:viewer:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+viewer:Widget:main:Widget1
+NumberOfControlPoints:0
+CONNECTION
+controls:Widget:main:Widget2
+NumberOfControlPoints:0
+CONNECTION
+surface:Widget:controls:Widget1
+NumberOfControlPoints:0
+APP_END
index 78787555c82e15d8396643ec0407e2410a82d18a..4dd77ad7271765b447271a46c5546ffd72fb59d9 100644 (file)
@@ -1,69 +1,63 @@
- # ---------------------------------------------------------------------
- #
- # 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/wxvtk/bbs/appli/exampleView3DImage1_Stereo.bbs
+# ----------------------------------
 
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include vtk
+include wxvtk
+include wx
 
-description "Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWidget. Screenshot : <img src=ExampleView3DImage1.jpg></img>"
 author "laurent.guigues at creatis.insa-lyon.fr"
+description "Example of complex 3D view of an image using vtk::ImagePlanes and wxvtk::IsoSurfaceWidget. Screenshot : <img src=ExampleView3DImage1.jpg></img>"
 category "example"
 
-include vtk/boxes/bbLoadHola
-include wxvtk/boxes/bbIsoSurfaceWidget
-load vtk
-load wxvtk
+new vtk:LoadHola reader
+
+new vtk:ImagePlanes planes
+
+new wxvtk:IsoSurfaceWidget surface
+  set surface.Colour "1.0 0.31 0.31"
+  set surface.Isovalue "100"
+  set surface.Opacity "100"
+  set surface.Title "Iso-surface"
+
+new wxvtk:Viewer3D viewer
+  set viewer.Stereo "TRUE"
+  set viewer.WinHeight "400"
+  set viewer.WinTitle "ExampleView3DImage1"
+  set viewer.WinWidth "350"
+
+new wx:LayoutSplit main
+
+new wx:LayoutLine controls
 
-new LoadHola reader
-new ImagePlanes planes
-new IsoSurfaceWidget surface
-new Viewer3D viewer
 
 connect reader.Out planes.In
+
 connect planes.PlaneX viewer.Obs1
+
 connect planes.PlaneY viewer.Obs2
+
 connect planes.PlaneZ viewer.Obs3
 
 connect reader.Out surface.In
+
 connect surface.Out viewer.In1
+
 connect surface.BoxChange viewer.BoxExecute
 
-new LayoutSplit main
-new LayoutLine controls
 connect viewer.Widget main.Widget1
-connect controls.Widget main.Widget2 
-connect surface.Widget controls.Widget1 
 
-set surface.Isovalue 100
-set surface.Opacity 100
-set surface.Colour "1.0 0.31 0.31"
-set surface.Title "Iso-surface"
+connect controls.Widget main.Widget2
 
-load std
-set viewer.WinTitle "ExampleView3DImage1"
-set viewer.WinWidth 350
-set viewer.WinHeight 400
-set viewer.Stereo TRUE
+connect surface.Widget controls.Widget1
 
 
-exec main
 
+# Complex input ports
+exec main
diff --git a/packages/wxvtk/bbs/appli/exampleViewerInLayoutTab.bbg b/packages/wxvtk/bbs/appli/exampleViewerInLayoutTab.bbg
new file mode 100644 (file)
index 0000000..2300de5
--- /dev/null
@@ -0,0 +1,81 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleViewerInLayoutTab.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:example
+DESCRIPTION:Example :Viewer in a LayoutTab
+AUTHOR:jpr@creatis.univ-lyon1.fr
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:7
+BOX
+wx:Slider:slider1
+ISEXEC:FALSE
+-10.656945:-20.720661:-900.000000
+40.743055:-30.720661:-900.000000
+PORT
+Orientation:"V"
+FIN_BOX
+BOX
+wx:Slider:slider2
+ISEXEC:FALSE
+-85.517485:-0.988251:-900.000000
+-34.117485:-10.988251:-900.000000
+FIN_BOX
+BOX
+wx:Slider:slider3
+ISEXEC:FALSE
+-66.947476:-23.063855:-900.000000
+-15.547476:-33.063855:-900.000000
+FIN_BOX
+BOX
+vtk:LoadHola:reader
+ISEXEC:FALSE
+36.701776:15.273737:-900.000000
+72.951776:5.273737:-900.000000
+FIN_BOX
+BOX
+wxvtk:Viewer2D:viewer2DImageOriginal
+ISEXEC:FALSE
+13.662750:-65.575535:-900.000000
+66.262750:-75.575535:-900.000000
+PORT
+Slice:"20"
+FIN_BOX
+BOX
+wx:LayoutLine:sizer
+ISEXEC:FALSE
+-78.959365:-80.273255:-900.000000
+-21.399365:-90.273255:-900.000000
+FIN_BOX
+BOX
+wx:LayoutTab:main
+ISEXEC:TRUE
+-12.023220:-110.546510:-900.000000
+45.536780:-120.546510:-900.000000
+FIN_BOX
+CONNECTIONS:7
+CONNECTION
+reader:Out:viewer2DImageOriginal:In
+NumberOfControlPoints:0
+CONNECTION
+slider2:Widget:sizer:Widget1
+NumberOfControlPoints:0
+CONNECTION
+slider3:Widget:sizer:Widget2
+NumberOfControlPoints:0
+CONNECTION
+slider1:Widget:main:Widget1
+NumberOfControlPoints:0
+CONNECTION
+sizer:Widget:main:Widget2
+NumberOfControlPoints:0
+CONNECTION
+slider1:BoxChange:viewer2DImageOriginal:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+viewer2DImageOriginal:Widget:main:Widget3
+NumberOfControlPoints:0
+APP_END
index db01bb368b98e0f4e1c2659d12096eb722066d5e..53c7ea159129cc4fd768ac58211225121fbcfefa 100644 (file)
@@ -1,62 +1,53 @@
- # ---------------------------------------------------------------------
- #
- # 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/wxvtk/bbs/appli/exampleViewerInLayoutTab.bbs
+# ----------------------------------
 
+# BBTK GEditor Script
+# ----------------------
 
+include std
+include itkvtk
+include wx
+include vtk
+include wxvtk
 
-description "Example :Viewer in a LayoutTab"
 author "jpr@creatis.univ-lyon1.fr"
+description "Example :Viewer in a LayoutTab"
 category "example"
 
-// WARNING : Doesn't work, right now (25 Nov 2008)
-include std
-include vtk
-include wx
-include wxvtk
+new wx:Slider slider1
+  set slider1.Orientation "V"
 
+new wx:Slider slider2
 
-new Slider slider1
-   set slider1.Orientation V
-new Slider slider2
-new Slider slider3
+new wx:Slider slider3
 
-new LoadHola reader
+new vtk:LoadHola reader
 
-new Viewer2D viewer2DImageOriginal
-connect reader.Out viewer2DImageOriginal.In
-set viewer2DImageOriginal.Slice 20
+new wxvtk:Viewer2D viewer2DImageOriginal
+  set viewer2DImageOriginal.Slice "20"
 
-new LayoutLine  sizer
-new LayoutTab main
+new wx:LayoutLine sizer
+
+new wx:LayoutTab main
+
+
+connect reader.Out viewer2DImageOriginal.In
 
 connect slider2.Widget sizer.Widget1
+
 connect slider3.Widget sizer.Widget2
 
 connect slider1.Widget main.Widget1
+
 connect sizer.Widget main.Widget2
+
 connect slider1.BoxChange viewer2DImageOriginal.BoxExecute
+
 connect viewer2DImageOriginal.Widget main.Widget3
 
-exec viewer2DImageOriginal
+
+
+# Complex input ports
 exec main
diff --git a/packages/wxvtk/bbs/appli/exampleVolumeRendering.bbg b/packages/wxvtk/bbs/appli/exampleVolumeRendering.bbg
new file mode 100644 (file)
index 0000000..d0f8042
--- /dev/null
@@ -0,0 +1,64 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleVolumeRendering.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:example
+DESCRIPTION:Volume rendering example
+AUTHOR:laurent.guigues at creatis.insa-lyon.fr
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:5
+BOX
+vtk:LoadHola:reader
+ISEXEC:FALSE
+0.000000:70.000000:-900.000000
+36.250000:60.000000:-900.000000
+FIN_BOX
+BOX
+vtk:PiecewiseFunction:color
+ISEXEC:FALSE
+-43.190285:17.155882:-900.000000
+0.109715:7.155882:-900.000000
+PORT
+X:"0 500 1000"
+PORT
+Y:"0 0.01 1"
+FIN_BOX
+BOX
+vtk:PiecewiseFunction:opacity
+ISEXEC:FALSE
+15.329606:15.711030:-900.000000
+61.104606:5.711030:-900.000000
+PORT
+X:"0 500 1000"
+PORT
+Y:"0 0.01 0.1"
+FIN_BOX
+BOX
+vtk:VolumeRenderer:renderer
+ISEXEC:FALSE
+-11.929912:-20.300581:-900.000000
+33.195088:-30.300581:-900.000000
+FIN_BOX
+BOX
+wxvtk:Viewer3D:viewer
+ISEXEC:TRUE
+-15.930767:-53.606966:-900.000000
+47.789233:-63.606966:-900.000000
+FIN_BOX
+CONNECTIONS:4
+CONNECTION
+reader:Out:renderer:In
+NumberOfControlPoints:0
+CONNECTION
+color:Out:renderer:ColorFunction
+NumberOfControlPoints:0
+CONNECTION
+opacity:Out:renderer:OpacityFunction
+NumberOfControlPoints:0
+CONNECTION
+renderer:Out:viewer:In1
+NumberOfControlPoints:0
+APP_END
index b983e0486d84f152da509a44cca39e57b638ffe2..8d31c6edd10de34e2244e18955c910b5535d5d39 100644 (file)
@@ -1,51 +1,44 @@
- # ---------------------------------------------------------------------
- #
- # 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/wxvtk/bbs/appli/exampleVolumeRendering.bbs
+# ----------------------------------
 
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include vtk
+include wxvtk
 
-description "Volume rendering example"
 author "laurent.guigues at creatis.insa-lyon.fr"
-category "example"     
+description "Volume rendering example"
+category "example"
 
-include vtk
-load wxvtk
+new vtk:LoadHola reader
+
+new vtk:PiecewiseFunction color
+  set color.X "0 500 1000"
+  set color.Y "0 0.01 1"
+
+new vtk:PiecewiseFunction opacity
+  set opacity.X "0 500 1000"
+  set opacity.Y "0 0.01 0.1"
+
+new vtk:VolumeRenderer renderer
+
+new wxvtk:Viewer3D viewer
 
-new LoadHola reader
-new PiecewiseFunction color
-new PiecewiseFunction opacity
-new VolumeRenderer renderer
-new Viewer3D viewer
 
 connect reader.Out renderer.In
+
 connect color.Out renderer.ColorFunction
+
 connect opacity.Out renderer.OpacityFunction
+
 connect renderer.Out viewer.In1
 
-load std
-set color.X "0 500 1000"
-set color.Y "0 0.01 1"
-set opacity.X "0 500 1000"
-set opacity.Y "0 0.01 0.1"
 
+
+# Complex input ports
 exec viewer
diff --git a/packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbg b/packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbg
new file mode 100644 (file)
index 0000000..06d4b25
--- /dev/null
@@ -0,0 +1,113 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:viewer
+DESCRIPTION:Simple viewer of an iso-surface of an image
+AUTHOR:laurent.guigues@creatis.insa-lyon.fr
+COMPLEXBOX:TRUE
+COMPLEXBOXNAME:SimpleIsoSurfaceViewer
+PACKAGENAME:wxvtk
+COMPLEXOUTPUTS:1
+COMPLEX_PORT
+Widget
+29.396698:-80.884809:-900.000000
+FIN_COMPLEX_PORT
+COMPLEXINPUTS:6
+COMPLEX_PORT
+In
+-50.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+WinDialog
+0.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+WinTitle
+50.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+WinWidth
+100.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+WinHeight
+150.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+BoxExecute
+200.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+BOXES:4
+BOX
+wx:LayoutSplit:main
+ISEXEC:TRUE
+41.534742:-43.421797:-900.000000
+80.614742:-53.421797:-900.000000
+PORT
+Proportion:"80"
+FIN_BOX
+BOX
+wxvtk:Viewer3D:viewer
+ISEXEC:FALSE
+-23.852972:-1.002246:-900.000000
+39.867028:-11.002246:-900.000000
+FIN_BOX
+BOX
+wxvtk:IsoSurfaceWidget:surface
+ISEXEC:FALSE
+-35.677279:56.327213:-900.000000
+8.822721:46.327213:-900.000000
+PORT
+Isovalue:"10"
+PORT
+Title:"Surface"
+PORT
+Vertical:"0"
+FIN_BOX
+BOX
+std:MultipleInputs:refresh
+ISEXEC:FALSE
+-4.150594:22.599736:-900.000000
+36.224406:12.599736:-900.000000
+FIN_BOX
+CONNECTIONS:12
+CONNECTION
+viewer:Widget:main:Widget1
+NumberOfControlPoints:0
+CONNECTION
+surface:Widget:main:Widget2
+NumberOfControlPoints:0
+CONNECTION
+surface:Out:viewer:In1
+NumberOfControlPoints:0
+CONNECTION
+surface:BoxChange:refresh:In1
+NumberOfControlPoints:0
+CONNECTION
+refresh:Out:viewer:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+In:In:surface:In
+NumberOfControlPoints:0
+CONNECTION
+WinDialog:WinDialog:main:WinDialog
+NumberOfControlPoints:0
+CONNECTION
+WinTitle:WinTitle:main:WinTitle
+NumberOfControlPoints:0
+CONNECTION
+WinWidth:WinWidth:main:WinWidth
+NumberOfControlPoints:0
+CONNECTION
+WinHeight:WinHeight:main:WinHeight
+NumberOfControlPoints:0
+CONNECTION
+BoxExecute:BoxExecute:refresh:In2
+NumberOfControlPoints:0
+CONNECTION
+main:Widget:Widget:Widget
+NumberOfControlPoints:0
+APP_END
index 2e95fa2c25ab58f1a205675d1d696fa626cbceec..adb0cd0f25628c518e87ae1b34c6d65bd70f6937 100644 (file)
@@ -1,74 +1,51 @@
- # ---------------------------------------------------------------------
- #
- # 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 (Complex Box)
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbs
+# ----------------------------------
 
+include std
+include itkvtk
+include wx
+include wxvtk
+include std
 
-load std
-load wx
-load wxvtk 
-load vtk
+define SimpleIsoSurfaceViewer wxvtk
 
-include wxvtk/boxes/bbIsoSurfaceWidget
+author "laurent.guigues@creatis.insa-lyon.fr"
+description "Simple viewer of an iso-surface of an image"
 
-define SimpleIsoSurfaceViewer wxvtk
+category "viewer"
 
- description "Simple viewer of an iso-surface of an image"
- author "laurent.guigues@creatis.insa-lyon.fr"
- category "viewer"
+new wx:LayoutSplit main
+  set main.Proportion "80"
 
- new LayoutSplit main
- new Viewer3D viewer
+new wxvtk:Viewer3D viewer
 
- new IsoSurfaceWidget surface
+new wxvtk:IsoSurfaceWidget surface
+  set surface.Isovalue "10"
+  set surface.Title "Surface"
+  set surface.Vertical "0"
 
- set surface.Isovalue 10
- set surface.Title "Surface"
- set surface.Vertical 0
+new std:MultipleInputs refresh
 
- connect viewer.Widget  main.Widget1
- connect surface.Widget main.Widget2 
 
- # WE NEED A MultipleInputs BOX TO CONNECT BOTH 
- # surface.BoxChange AND THE INPUT BoxExecute 
- # OF THE COMPLEX BOX TO viewer.BoxExecute
- new MultipleInputs refresh
+connect viewer.Widget main.Widget1
+connect surface.Widget main.Widget2
+connect surface.Out viewer.In1
+connect surface.BoxChange refresh.In1
+connect refresh.Out viewer.BoxExecute
 
-  
- connect surface.Out       viewer.In1
- connect surface.BoxChange refresh.In1
- connect refresh.Out       viewer.BoxExecute
+# Complex input ports
+input In surface.In " "
+input WinDialog main.WinDialog " "
+input WinTitle main.WinTitle " "
+input WinWidth main.WinWidth " "
+input WinHeight main.WinHeight " "
+input BoxExecute refresh.In2 " "
 
- set main.Proportion 80
+# Complex output ports
+output Widget main.Widget " "
 
- input In         surface.In     "Input image"
- input WinDialog  main.WinDialog "Dialog mode"
- input WinTitle   main.WinTitle  "Title of the window"
- input WinWidth   main.WinWidth  "Width of the window"
- input WinHeight  main.WinHeight "Height of the window"
- input BoxExecute refresh.In2    "Execute the box"
+exec main
 
- output Widget main.Widget "Widget"
- # EXECUTING THE COMPLEX BOX EXECUTES the main
- exec main
 endefine
diff --git a/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbg b/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbg
new file mode 100644 (file)
index 0000000..96ae7c9
--- /dev/null
@@ -0,0 +1,156 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:viewer
+DESCRIPTION:Simple 2D viewer of a slice of a 3D image. The slice is controlled by a slider. See <a href='#exampleSimpleSlicer'>exampleSimpleSlicer.bbs</a>. Screenshot : <center><img src='ExampleSimpleSlicer.jpg'></center>
+AUTHOR:info-dev@creatis.insa-lyon.fr
+COMPLEXBOX:TRUE
+COMPLEXBOXNAME:SimpleSlicer
+PACKAGENAME:wxvtk
+COMPLEXOUTPUTS:1
+COMPLEX_PORT
+Widget
+190.888578:-140.367383:-900.000000
+FIN_COMPLEX_PORT
+COMPLEXINPUTS:13
+COMPLEX_PORT
+In
+176.539300:98.168146:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+WinDialog
+0.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+WinTitle
+50.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+WinWidth
+100.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+WinHeight
+150.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+BoxExecute
+268.389223:98.168146:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+Orientation
+250.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+Slice
+384.265292:96.336292:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+Interpolate
+204.672902:104.274326:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+SliderSize
+400.000000:100.000000:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+SliderTitle
+464.654833:98.778764:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+SliderOrientation
+413.902854:99.389382:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+SliderReactiveOnTrack
+442.531221:97.557528:-900.000000
+FIN_COMPLEX_PORT
+BOXES:4
+BOX
+wx:LayoutSplit:main
+ISEXEC:TRUE
+189.908352:-94.533066:-900.000000
+228.988352:-104.533066:-900.000000
+PORT
+Proportion:"80"
+FIN_BOX
+BOX
+wxvtk:Viewer2D:viewer2D
+ISEXEC:FALSE
+214.458844:-51.932394:-900.000000
+253.538844:-61.932394:-900.000000
+FIN_BOX
+BOX
+wx:Slider:slider
+ISEXEC:FALSE
+359.090705:25.563987:-900.000000
+410.490705:15.563987:-900.000000
+FIN_BOX
+BOX
+std:MultipleInputs:refresh
+ISEXEC:FALSE
+239.657507:-22.837623:-900.000000
+280.032507:-32.837623:-900.000000
+FIN_BOX
+CONNECTIONS:19
+CONNECTION
+viewer2D:Widget:main:Widget1
+NumberOfControlPoints:0
+CONNECTION
+slider:Widget:main:Widget2
+NumberOfControlPoints:0
+CONNECTION
+slider:Out:viewer2D:Slice
+NumberOfControlPoints:0
+CONNECTION
+slider:BoxChange:refresh:In1
+NumberOfControlPoints:0
+CONNECTION
+refresh:Out:viewer2D:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+In:In:viewer2D:In
+NumberOfControlPoints:0
+CONNECTION
+WinDialog:WinDialog:main:WinDialog
+NumberOfControlPoints:0
+CONNECTION
+WinTitle:WinTitle:main:WinTitle
+NumberOfControlPoints:0
+CONNECTION
+WinWidth:WinWidth:main:WinWidth
+NumberOfControlPoints:0
+CONNECTION
+WinHeight:WinHeight:main:WinHeight
+NumberOfControlPoints:0
+CONNECTION
+BoxExecute:BoxExecute:refresh:In2
+NumberOfControlPoints:0
+CONNECTION
+Orientation:Orientation:viewer2D:Orientation
+NumberOfControlPoints:0
+CONNECTION
+Slice:Slice:slider:In
+NumberOfControlPoints:0
+CONNECTION
+Interpolate:Interpolate:viewer2D:Interpolate
+NumberOfControlPoints:0
+CONNECTION
+SliderSize:SliderSize:slider:Max
+NumberOfControlPoints:0
+CONNECTION
+SliderTitle:SliderTitle:slider:Title
+NumberOfControlPoints:0
+CONNECTION
+SliderOrientation:SliderOrientation:slider:Orientation
+NumberOfControlPoints:0
+CONNECTION
+SliderReactiveOnTrack:SliderReactiveOnTrack:slider:ReactiveOnTrack
+NumberOfControlPoints:0
+CONNECTION
+main:Widget:Widget:Widget
+NumberOfControlPoints:0
+APP_END
index c4e388d8ebfb92384b82b9f2f0b89727ca7cc247..ddf04dfef50b607ac98178291d0f0a0db43746af 100644 (file)
@@ -1,76 +1,55 @@
- # ---------------------------------------------------------------------
- #
- # 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 (Complex Box)
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/boxes/bbSimpleSlicer.bbs
+# ----------------------------------
 
-
-load std
-load wx
-load wxvtk 
+include std
+include itkvtk
+include wx
+include wxvtk
+include std
 
 define SimpleSlicer wxvtk
 
- description "Simple 2D viewer of a slice of a 3D image. The slice is controlled by a slider. See <a href='#exampleSimpleSlicer'>exampleSimpleSlicer.bbs</a>. Screenshot : <center><img src='ExampleSimpleSlicer.jpg'></center>"
- author "info-dev@creatis.insa-lyon.fr"
- category "viewer"
+author "info-dev@creatis.insa-lyon.fr"
+description "Simple 2D viewer of a slice of a 3D image. The slice is controlled by a slider. See <a href='#exampleSimpleSlicer'>exampleSimpleSlicer.bbs</a>. Screenshot : <center><img src='ExampleSimpleSlicer.jpg'></center>"
+
+category "viewer"
+
+new wx:LayoutSplit main
+  set main.Proportion "80"
+
+new wxvtk:Viewer2D viewer2D
+
+new wx:Slider slider
+
+new std:MultipleInputs refresh
 
- new LayoutSplit main
- set main.Proportion 80
- new Viewer2D viewer2D
- new Slider   slider
- # WE NEED a MultipleInputs Box to connect BOTH 
- # slider.BoxChange AND the input BoxExecute 
- # of the Complex box to viewer2D.BoxExecute
- new MultipleInputs refresh
 
- connect viewer2D.Widget  main.Widget1
- connect slider.Widget    main.Widget2
- connect slider.Out       viewer2D.Slice
+connect viewer2D.Widget main.Widget1
+connect slider.Widget main.Widget2
+connect slider.Out viewer2D.Slice
+connect slider.BoxChange refresh.In1
+connect refresh.Out viewer2D.BoxExecute
 
- connect slider.BoxChange refresh.In1
- connect refresh.Out      viewer2D.BoxExecute
+# Complex input ports
+input In viewer2D.In " "
+input WinDialog main.WinDialog " "
+input WinTitle main.WinTitle " "
+input WinWidth main.WinWidth " "
+input WinHeight main.WinHeight " "
+input BoxExecute refresh.In2 " "
+input Orientation viewer2D.Orientation " "
+input Slice slider.In " "
+input Interpolate viewer2D.Interpolate " "
+input SliderSize slider.Max " "
+input SliderTitle slider.Title " "
+input SliderOrientation slider.Orientation " "
+input SliderReactiveOnTrack slider.ReactiveOnTrack " "
 
- #set main.Proportion 80
+# Complex output ports
+output Widget main.Widget " "
 
- input In                    viewer2D.In            "Input image"
- input WinDialog             main.WinDialog         "Execute in dialog mode"
- input WinTitle              main.WinTitle          "Title of the window"
- input WinWidth              main.WinWidth          "Width of the window"
- input WinHeight             main.WinHeight         "Height of the window"
- input BoxExecute            refresh.In2            "Execute the box"
- input Orientation           viewer2D.Orientation   "Slicing orientation : 0:yz / 1:xz / 2:xy"
- input Slice                 slider.In              "Initial slice"
- input Interpolate           viewer2D.Interpolate   "Pixels Interpolation (true/false)" 
- input SliderSize            slider.Max             "Slider Size"
- input SliderTitle           slider.Title           "Slider Title" 
- input SliderOrientation     slider.Orientation     "Slider Orientation (H/V)"
- input SliderReactiveOnTrack slider.ReactiveOnTrack "Reactive On track (default : 0)"
-   
- output Widget main.Widget "Widget"
+exec main
 
- # EXECUTING THE COMPLEX BOX EXECUTES main
- exec main
 endefine