]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Wed, 7 May 2008 13:14:48 +0000 (13:14 +0000)
committerguigues <guigues>
Wed, 7 May 2008 13:14:48 +0000 (13:14 +0000)
packages/wx/src/bbwxColourSelector.h
packages/wx/src/bbwxColourSelectorButton.h
packages/wx/src/bbwxCommandButton.h
packages/wxvtk/bbs/appli/ExampleIsoSurfaceWithGUI.bbs [new file with mode: 0644]

index 84d43187cd8c5fd9b699c1b4db0408245a66d25a..3bdebbd2f2a94fca2a38b0e8b8882b0595665821 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxColourSelector.h,v $
   Language:  C++
-  Date:      $Date: 2008/04/18 12:59:52 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/05/07 13:14:48 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -67,7 +67,7 @@ namespace bbwx
   BBTK_NAME("ColourSelector");
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
   BBTK_DESCRIPTION("Colour Selector dialog (bbfication of wxColourSelector)");
-  BBTK_OUTPUT(ColourSelector,Out,"The colour selected by the user",std::string,"color");
+  BBTK_OUTPUT(ColourSelector,Out,"The colour selected by the user",std::string,"colour");
   BBTK_END_DESCRIBE_BLACK_BOX(ColourSelector);
   //=================================================================
 
index 22dd10193913eadedb0866696affa9aedd387c39..ba752c6bf02ba27faec8848dd5f39348887fd44d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxColourSelectorButton.h,v $
   Language:  C++
-  Date:      $Date: 2008/04/18 12:59:52 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/05/07 13:14:49 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -102,8 +102,8 @@ private:
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
   // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
   BBTK_DESCRIPTION("A button which displays a colour picker dialog when clicked");
-  BBTK_INPUT(ColourSelectorButton,In,"Initial colour",std::string,"color");
-  BBTK_OUTPUT(ColourSelectorButton,Out,"Colour choosen in format '[0,1] [0,1] [0,1]'",std::string,"color");
+  BBTK_INPUT(ColourSelectorButton,In,"Initial colour",std::string,"colour");
+  BBTK_OUTPUT(ColourSelectorButton,Out,"Colour choosen in format '[0,1] [0,1] [0,1]'",std::string,"colour");
   BBTK_END_DESCRIBE_BLACK_BOX(ColourSelectorButton);
   //=================================================================
   
index 4702c6234c16661f4b7979b71bb70c8c857c032a..289c2d9c18dd3bf036faf2b339e7f45d4a446824 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk 
   Module:    $RCSfile: bbwxCommandButton.h,v $ 
   Language:  C++ 
-  Date:      $Date: 2008/04/18 12:59:52 $ 
-  Version:   $Revision: 1.3 $ 
+  Date:      $Date: 2008/05/07 13:14:49 $ 
+  Version:   $Revision: 1.4 $ 
                                                                                  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 
   l'Image). All rights reserved. See Doc/License.txt or 
@@ -96,7 +96,7 @@ namespace bbwx
   
   BBTK_INPUT(CommandButton,In,"Commands to be executed separated by commas (;). Each single quote (') is replaced by a double quote (\").",std::string,"");   
   BBTK_INPUT(CommandButton,Label,"Label of the button",std::string,""); 
-  BBTK_INPUT(CommandButton,Colour,"Colour of the button (-1 -1 -1  Background)",vectorcolour,"color"); 
+  BBTK_INPUT(CommandButton,Colour,"Colour of the button (-1 -1 -1  Background)",vectorcolour,"colour"); 
   //   BBTK_OUTPUT(CommandButton,Out,"..Out..",int); 
   BBTK_END_DESCRIBE_BLACK_BOX(CommandButton); 
   //================================================================= 
diff --git a/packages/wxvtk/bbs/appli/ExampleIsoSurfaceWithGUI.bbs b/packages/wxvtk/bbs/appli/ExampleIsoSurfaceWithGUI.bbs
new file mode 100644 (file)
index 0000000..0f154ee
--- /dev/null
@@ -0,0 +1,27 @@
+include vtk
+include std
+include wx
+include wxvtk
+
+# Pipeline : Reader -> IsoSurfaceExtractor -> Viewer
+new LoadHola r
+new IsoSurfaceExtractor i
+new Viewer3D v
+connect r.Out i.In
+connect i.Out v.In1
+
+# GUI
+message echo 2
+newgui    i      ig
+message echo 0
+
+# Layout
+new LayoutLine l
+connect v.Widget l.Widget1
+connect ig.Widget l.Widget2
+
+# Changes in GUI update the view
+connect ig.BoxChange v.BoxExecute
+
+# GO !
+exec l