]> Creatis software - bbtk.git/commitdiff
Another ugly bug fixed in pipeline executing (bad transfer to parent in some cases...
authorguigues <guigues>
Thu, 13 Nov 2008 14:46:41 +0000 (14:46 +0000)
committerguigues <guigues>
Thu, 13 Nov 2008 14:46:41 +0000 (14:46 +0000)
18 files changed:
kernel/appli/bbi/bbi.cxx
kernel/src/bbtkAtomicBlackBox.cxx
kernel/src/bbtkAtomicBlackBoxMacros.h
kernel/src/bbtkBlackBox.cxx
kernel/src/bbtkBlackBox.h
kernel/src/bbtkConnection.h
kernel/src/bbtkWxBlackBox.cxx
kernel/src/bbtkWxBlackBox.h
packages/wx/src/bbwxLayoutLine.cxx
packages/wx/src/bbwxLayoutLine.h
packages/wx/src/bbwxLayoutSplit.cxx
packages/wx/src/bbwxLayoutSplit.h
packages/wx/src/bbwxLayoutTab.cxx
packages/wx/src/bbwxLayoutTab.h
packages/wxvtk/src/bbwxvtkViewer2D.cxx
packages/wxvtk/src/bbwxvtkViewer2D.h
packages/wxvtk/src/bbwxvtkViewer3D.cxx
packages/wxvtk/src/bbwxvtkViewer3D.h

index 86952f5632ec0b33e23f72010eca28c04f2f500c..c4ef2fd628b33456beb9f968900320e08976b8bc 100644 (file)
@@ -151,7 +151,7 @@ bool wxBBIApp::OnCmdLineParsed(wxCmdLineParser& parser)
 // main frame
 bool wxBBIApp::OnInit( )
 {
-      std::cout << "OnInit"<<std::endl;
+  //      std::cout << "OnInit"<<std::endl;
   wxApp::OnInit();
 #ifdef __WXGTK__
   //See http://www.wxwindows.org/faqgtk.htm#locale
@@ -212,7 +212,7 @@ bool wxBBIApp::OnInit( )
       //      std::cout << "!I->Close"<<std::endl;
     }
        
-       std::cout << "EO OnInit"<<std::endl;
+  //   std::cout << "EO OnInit"<<std::endl;
 
   return true;
 
index a947d006315da4263a2f615af8fa5691327f93c8..1b11dcf7b355dd804d5e10dc9b26683aee2226f5 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkAtomicBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:12 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/11/13 14:46:43 $
+  Version:   $Revision: 1.9 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -92,7 +92,18 @@ namespace bbtk
                        "=> AtomicBlackBox::bbBackwardUpdate("
                        <<(caller?caller->GetFullName():"0")<<") ["
                        <<bbGetFullName()<<"]"<<std::endl);
-    
+
+    // If already executing : return
+    if (bbGetExecuting()) 
+      {
+       bbtkDebugMessage("process",3,
+                        " -> already executing : bailing out"<<std::endl);
+       return bbGetStatus();
+      }
+    bbSetExecuting(true);
+    bool wasExecuting = bbGlobalGetSomeBoxExecuting();
+    bbGlobalSetSomeBoxExecuting(true);
+
     bbtkDebugMessage("process",5,"Initial Status  = "<<bbGetStatus()
                     <<std::endl);
     bbtkDebugMessage("process",5,"BoxProcessMode  = "
@@ -103,15 +114,14 @@ namespace bbtk
         ( bbBoxProcessModeIsAlways() ) )
       {
 
-       bbSetStatus(UPDATING);
-       
-       bool wasExecuting = bbGlobalGetSomeBoxExecuting();
-        bbGlobalSetSomeBoxExecuting(true);
+       //      bbSetStatus(UPDATING);
 
         // Updates its inputs
         IOStatus s = bbUpdateInputs();
     
-        bbtkDebugMessage("process",6,"Inputs post-update status = "<<s<<std::endl);
+        bbtkDebugMessage("process",6,"=> AtomicBlackBox::bbBackwardUpdate("
+                       <<(caller?caller->GetFullName():"0")<<") ["
+                       <<bbGetFullName()<<"] : Inputs post-update status = "<<s<<std::endl);
         // If all inputs are in UPTODATE post-update status 
         // and mProcessMode is not "Always"
         // then the box is now UPTODATE
@@ -134,7 +144,6 @@ namespace bbtk
         // Displays the window (WxBlackbox)
         bbShowWindow(caller);
 
-        bbGlobalSetSomeBoxExecuting(wasExecuting);
 
       }
     else 
@@ -142,12 +151,16 @@ namespace bbtk
         bbtkDebugMessage("process",5,"Up-to-date : nothing to do"<<std::endl);
       }
 
-    bbtkDebugMessage("process",5,"Final Status    = "
-            <<bbGetStatus()<<std::endl);
+    bbtkDebugMessage("process",5,"=> AtomicBlackBox::bbBackwardUpdate("
+                    <<(caller?caller->GetFullName():"0")<<") ["
+                    <<bbGetFullName()<<"] : Final Status    = "
+                    <<bbGetStatus()<<std::endl);
     bbtkDebugMessage("process",3,
             "<= AtomicBlackBox::bbBackwardUpdate() ["
             <<bbGetFullName()<<"]"<<std::endl);
 
+    bbSetExecuting(false);
+    bbGlobalSetSomeBoxExecuting(wasExecuting);
 
     return bbGetStatus();
 
index d68ce239eb5eaf23284dde7a264e93301571edfc..8c026f2e1757f7d14b9b0e9cc043ba72f345d24b 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkAtomicBlackBoxMacros.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:12 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2008/11/13 14:46:43 $
+  Version:   $Revision: 1.12 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
     bbtkDebugMessage("process",1,"**> Processing ["<<bbGetFullName()   \
                     <<"]"<<std::endl);                                 \
     CALLBACK();                                                                \
-    bbtkDebugMessage("process",2,"<** Processing ["<<bbGetFullName()   \
+    bbtkDebugMessage("process",1,"<** Processing ["<<bbGetFullName()   \
                     <<"]"<<std::endl);                                 \
   }
 //============================================================================
index 6d134c9ce3faae64d0c348add99e51c91ab78f3e..3b3955622d59b996fb88bcd0989b5b2923b99b4b 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/13 10:37:27 $
-  Version:   $Revision: 1.27 $
+  Date:      $Date: 2008/11/13 14:46:43 $
+  Version:   $Revision: 1.28 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -103,6 +103,7 @@ namespace bbtk
   BlackBox::BlackBox(const std::string &name) 
     : 
     bbmStatus(MODIFIED), 
+    bbmExecuting(false),
     bbmName(name),
     bbmBoxProcessMode("Pipeline"),
     bbmParent()
@@ -123,6 +124,7 @@ namespace bbtk
   BlackBox::BlackBox(BlackBox& from, const std::string &name) 
     :
       bbmStatus(from.bbmStatus), 
+      bbmExecuting(false),
       bbmName(name), 
       bbmBoxProcessMode(from.bbmBoxProcessMode),
       bbmParent()
@@ -155,9 +157,16 @@ namespace bbtk
   void BlackBox::bbExecute(bool force)
   {
     bbtkDebugMessageInc("process",2,
-                       "=> BlackBox::bbExecute() ["
+                       "=> BlackBox::bbExecute("<<(int)force<<") ["
                        <<bbGetFullName()<<"]"<<std::endl);
  
+    // If already executing : return
+    if (bbGetExecuting()) 
+      {
+       bbtkDebugMessage("process",2,
+                        " -> already executing : bailing out"<<std::endl);
+       return;
+      }
 
     // If execution frozen : return
     if (bbGlobalGetFreezeExecution()) 
index 17ed4c199ab11ff1b33b0c9fdd9ee8b2d7475fa1..467e40c734d254bcb8064b9792e21efc68972ab1 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBox.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:12 $
-  Version:   $Revision: 1.13 $
+  Date:      $Date: 2008/11/13 14:46:43 $
+  Version:   $Revision: 1.14 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -373,9 +373,14 @@ bool reaction = true);
     /// which means execute in response to an input change 
     virtual bool bbCanReact() const;
     
+    /// Returns true iff the box is executing
+    bool bbGetExecuting() const { return bbmExecuting; }
+
   protected:  
     static void bbGlobalAddToExecutionList( BlackBox::Pointer b );
     static void bbGlobalProcessExecutionList();
+    /// Sets the bbmExecuting bool returned by bbGetExecuting
+    void bbSetExecuting(bool b) { bbmExecuting = b; }
 
     //==================================================================
   protected:
@@ -415,6 +420,8 @@ bool reaction = true);
     // PRIVATE PART 
     /// The status of the box
     IOStatus bbmStatus;
+    /// Is the box executing ?
+    bool bbmExecuting;
     /// The name of the black-box
     std::string bbmName;
     /// The name of the package to which it belongs
index 754004144c12a6fda619495507dfb3a10614406d..2b1fe73d680ac0182199c16703eeb17fc7c1aea6 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConnection.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:13 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/11/13 14:46:43 $
+  Version:   $Revision: 1.9 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -62,8 +62,8 @@ namespace bbtk
   const int MODIFIED = 0;
   /// 
   const int UPTODATE = 1;
-  /// 
-  const int UPDATING = 2;
+  /// OBSOLETE 
+  ///  const int UPDATING = 2;
 
 
   class BBTK_EXPORT Connection : public Object
index de9ce1d4e7d124aef64cfc615f8b426baa3cf33e..763fcb501bcdc6fe8a3e7505d1594865c82f9c96 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:14 $
-  Version:   $Revision: 1.27 $
+  Date:      $Date: 2008/11/13 14:46:43 $
+  Version:   $Revision: 1.28 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -419,7 +419,7 @@ namespace bbtk
   void WxBlackBox::bbExecute(bool force)
   {
     bbtkDebugMessageInc("process",2,
-                       "=> WxBlackBox::bbExecute() ["
+                       "=> WxBlackBox::bbExecute("<<(int)force<<") ["
                        <<bbGetFullName()<<"]"<<std::endl);
 
     // If the output 'Widget' is connected then 
@@ -459,8 +459,7 @@ namespace bbtk
                     "=> WxBlackBox::bbBackwardUpdate("
                     <<(caller?caller->GetFullName():"0")<<") ["
                     <<bbGetFullName()<<"]"<<std::endl);
-    // If the caller's box to is not the box to connected to the 
-    // output 'Widget'
+
     if ( ! (( bbGetStatus() == MODIFIED ) ||
            ( bbBoxProcessModeIsAlways() )) )
       {
@@ -472,6 +471,9 @@ namespace bbtk
        return bbGetStatus();
       }
  
+    // If the caller's box to is not the box to connected to the 
+    // output 'Widget'
+
     BlackBox::OutputConnectorMapType::const_iterator i 
       = bbGetOutputConnectorMap().find("Widget") ;
     if ( i->second->GetConnectionVector().size() != 0 )
@@ -500,7 +502,7 @@ namespace bbtk
            ((caller!=0) && 
             (caller->GetBlackBoxTo() != to))&&
            (!bbGetUpdateTransferedToParent())&&
-           (to->bbGetStatus()!=UPDATING))
+           (!to->bbGetExecuting()))
          {
            bbtkDebugMessage("process",3,
                             "   ... Transfering update order to parent"
@@ -664,7 +666,7 @@ namespace bbtk
       }
   
 
-    bbtkDebugMessage("wx",1,"<= WxBlackBox::bbShowWindow() ["
+    bbtkDebugMessage("wx",2,"<= WxBlackBox::bbShowWindow() ["
                        <<bbGetFullName()<<"]"<<std::endl);
 
   }
@@ -681,7 +683,7 @@ namespace bbtk
 
     if (bbGetWindow()!=0) bbGetWindow()->bbHide();
 
-    bbtkDebugMessageDec("wx",1,"<= WxBlackBox::bbHideWindow() ["
+    bbtkDebugMessageDec("wx",2,"<= WxBlackBox::bbHideWindow() ["
                        <<bbGetFullName()<<"]"<<std::endl);
   }
   //==================================================================
@@ -695,7 +697,7 @@ namespace bbtk
 
     if (bbGetWindow()!=0) bbGetWindow()->bbClose();
 
-    bbtkDebugMessageDec("wx",1,"<= WxBlackBox::bbCloseWindow() ["
+    bbtkDebugMessageDec("wx",2,"<= WxBlackBox::bbCloseWindow() ["
                        <<bbGetFullName()<<"]"<<std::endl);
   }
   //==================================================================
index f11ddebe5367aaa8705df473e93c533663564b54..bfa37e78cfd215cfa9d0b6e7c9ab045acd6d2f1a 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxBlackBox.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:15 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2008/11/13 14:46:43 $
+  Version:   $Revision: 1.19 $
 ========================================================================*/
 
 
@@ -224,10 +224,25 @@ namespace bbtk
   public:                                                              \
   inline void bbUserCreateWidget()                                     \
   {                                                                    \
-    bbtkDebugMessageInc("process",1,"**> Creating widget for ["                \
+    bbtkDebugMessageInc("wx",1,"**> Creating widget for ["             \
                        <<bbGetFullName()<<"]"<<std::endl);             \
     CALLBACK();                                                                \
-    bbtkDebugMessageInc("process",2,"<** Creating widget for ["                \
+    bbtkDebugMessageInc("wx",1,"<** Creating widget for ["             \
+                       <<bbGetFullName()<<"]"<<std::endl);             \
+  }
+  
+  //======================================================================
+
+  //======================================================================
+  /// Defines the bbUserOnShow method
+#define BBTK_ON_SHOW_WIDGET(CALLBACK)                                  \
+  public:                                                              \
+  inline void bbUserOnShow()                                   \
+  {                                                                    \
+    bbtkDebugMessageInc("wx",1,"**> Showing ["         \
+                       <<bbGetFullName()<<"]"<<std::endl);             \
+    CALLBACK();                                                                \
+    bbtkDebugMessageInc("wx",1,"<** Showing ["         \
                        <<bbGetFullName()<<"]"<<std::endl);             \
   }
   
index 3d15b3f4da2b4873087850e9a148a202d6acc969..55be8963eb8896b90d53c7e2b2863fe1a420d858 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutLine.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:32 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/11/13 14:46:46 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -106,7 +106,7 @@ namespace bbwx
   
   // This callback is necessary to get actual processing of the view 
   // when window is shown
-  void  LayoutLine::bbUserOnShow()
+  void  LayoutLine::OnShowWidget()
   {
          bbUserOnShowWidget("Widget1");
          bbUserOnShowWidget("Widget2");
index 6884c85763f30fb3778a04ebaba5ec71ebe04acb..50ee0c04b26c77c2cc1ce1ba7954b498e86c6b83 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutLine.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:32 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/11/13 14:46:46 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -77,10 +77,11 @@ namespace bbwx
     BBTK_DECLARE_INPUT(Orientation,std::string);
     BBTK_PROCESS(Process);
     BBTK_CREATE_WIDGET(CreateWidget);
-    
+    BBTK_ON_SHOW_WIDGET(OnShowWidget);
     void Process();
     void CreateWidget();
-    void bbUserOnShow();
+    void OnShowWidget();
     
   protected:
        virtual void bbUserConstructor();
index 1c1e2655dcf70ec95a33fe1d5804787f0f4688ef..939355f8d4175bf9f3cbd42f28c5eee05e6eb7a2 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutSplit.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/21 08:37:09 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/11/13 14:46:46 $
+  Version:   $Revision: 1.7 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -88,10 +88,20 @@ namespace bbwx
 
   // This callback is necessary to get actual processing of the view 
   // when window is shown
-  void  LayoutSplit::bbUserOnShow()
+  void  LayoutSplit::OnShowWidget()
   {
+    if (bbGetOutputWidget()==0)
+      {
+       return;
+       //bbtkError("LayoutSplit::OnShowWidget() : Output Widget == 0 !");
+      }
     wxSplitterWindow* win = (wxSplitterWindow*)bbGetOutputWidget();
     int w,h;
+    if (win==0)
+      {
+       return;
+       //      bbtkError("LayoutSplit::OnShowWidget() : win == 0 !");
+      }
     win->GetClientSize(&w,&h);
     int pos = 100;
     if (bbtk::Utilities::loosematch(bbGetInputOrientation(),
index 4f0ff98a29d1ffc5fb53eef122a0d7b73757a692..0db41d3a143e5fcea5b20a0c28b0e95d8cbc47b9 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutSplit.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:32 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/11/13 14:46:46 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -68,10 +68,11 @@ namespace bbwx
     BBTK_DECLARE_INPUT(Proportion,int);
     BBTK_PROCESS(Process);
     BBTK_CREATE_WIDGET(CreateWidget);
+    BBTK_ON_SHOW_WIDGET(OnShowWidget);
     
     void Process();
     void CreateWidget();
-    void bbUserOnShow();
+    void OnShowWidget();
 
   protected:
     virtual void bbUserConstructor();
index bef9dc7bea2519a4207b724e79bb839d40d86d89..71db4f9b52551bae248aefa76f016ca2d4ec6f96 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutTab.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:32 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/11/13 14:46:46 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -108,7 +108,7 @@ namespace bbwx
 
   // This callback is necessary to get actual processing of the view 
   // when window is shown
-  void  LayoutTab::bbUserOnShow()
+  void  LayoutTab::OnShowWidget()
   {
          bbGetOutputWidget()->Show();
          bbUserOnShowWidget("Widget1");
index f9d98555c811125c7f8e8ec404a5c00d2321a9a4..1f76929da1380c1ef64c7d8c07ea2ebaf74f7314 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutTab.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:32 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/11/13 14:46:46 $
+  Version:   $Revision: 1.7 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -77,10 +77,11 @@ namespace bbwx
     BBTK_DECLARE_INPUT(Orientation,std::string);
     BBTK_PROCESS(Process);
     BBTK_CREATE_WIDGET(CreateWidget);
-    
+    BBTK_ON_SHOW_WIDGET(OnShowWidget);
     void Process();
     void CreateWidget();
-    void bbUserOnShow();
+    void OnShowWidget();
 
   protected:
        virtual void bbUserConstructor();
index 465b83104bb9a5f9d32e472cb00ffe3aca99b537..a19eeaced7830532cd768d7f46245aef6361c56f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxvtkViewer2D.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/24 12:15:27 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2008/11/13 14:46:48 $
+  Version:   $Revision: 1.19 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -292,7 +292,7 @@ namespace bbwxvtk
 
   // This callback is necessary to get actual processing of the view 
   // when window is shown
-  void  Viewer2D::bbUserOnShow()
+  void  Viewer2D::OnShowWidget()
   {
 
 #if defined(_WIN32)
index 476c8389a9569ba569bd8506917ac0c424191774..b0a9d82cd6f2ce6f50867bf06c960f1e962514e1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxvtkViewer2D.h,v $
   Language:  C++
-  Date:      $Date: 2008/09/10 12:01:48 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/11/13 14:46:48 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -83,10 +83,12 @@ namespace bbwxvtk
     BBTK_DECLARE_OUTPUT(Out,int);
     BBTK_DECLARE_OUTPUT(Renderer,vtkRenderer*);
     BBTK_PROCESS(Process);
-    void Process();
     BBTK_CREATE_WIDGET(CreateWidget);
+    BBTK_ON_SHOW_WIDGET(OnShowWidget);
+    
+    void Process();
     void CreateWidget();
-    void bbUserOnShow();
+    void OnShowWidget();
     void bbUserConstructor();
   };
    
index 48abcec6987bef81071d641ccecc4f6c2328b9bf..3f61f572cb23e413659cbbdc10d61b4c499d3dcb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxvtkViewer3D.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/06/26 18:45:58 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/11/13 14:46:48 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -221,7 +221,7 @@ void Viewer3DWidget::Refresh(bool eraseBackground , const wxRect* rect )
 
   // This callback is necessary to get actual processing of the view 
   // when window is shown
-  void  Viewer3D::bbUserOnShow()
+  void  Viewer3D::OnShowWidget()
   {
     ((Viewer3DWidget*)bbGetOutputWidget())->Update();
   }
index ade8eb019be98e864d16664f957754299605a312..a493efb7df3112afb8cece092ccae01a8e540ce0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxvtkViewer3D.h,v $
   Language:  C++
-  Date:      $Date: 2008/09/10 12:01:48 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2008/11/13 14:46:48 $
+  Version:   $Revision: 1.10 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -91,10 +91,12 @@ namespace bbwxvtk
     BBTK_DECLARE_OUTPUT(Renderer,vtkRenderer*);
     BBTK_DECLARE_OUTPUT(Interactor,wxVTKRenderWindowInteractor*);
     BBTK_PROCESS(Process);
-    void Process();
     BBTK_CREATE_WIDGET(CreateWidget);
+    BBTK_ON_SHOW_WIDGET(OnShowWidget);
+  
+    void Process();
     void CreateWidget();
-    void bbUserOnShow();
+    void OnShowWidget();
 
   protected:
     virtual void bbUserConstructor();