]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To provide correct memory management
authorapo <apo@opencascade.com>
Mon, 3 Oct 2005 06:20:41 +0000 (06:20 +0000)
committerapo <apo@opencascade.com>
Mon, 3 Oct 2005 06:20:41 +0000 (06:20 +0000)
src/SVTK/SVTK_RenderWindowInteractor.cxx

index 606c3d546211cc65fba94c47fb96b5607c7b01d4..74a930ab0ed06181ba0be313b311fb8ff2e97bca 100644 (file)
@@ -61,8 +61,10 @@ using namespace std;
 
 #ifdef _DEBUG_
 static int MYDEBUG = 0;
+static int MYVTKDEBUG = 0;
 #else
 static int MYDEBUG = 0;
+static int MYVTKDEBUG = 0;
 #endif
 
 static bool GENERATE_SUIT_EVENTS = false;
@@ -409,10 +411,16 @@ SVTK_RenderWindowInteractor
 
   // Sequence of the destruction call are fixed and should be changed.
   // vtkRenderWindow instance should be destroyed after all vtkRenderer's
+  if(MYVTKDEBUG){
+    getRenderWindow()->DebugOn();
+    getRenderer()->DebugOn();
+    GetDevice()->DebugOn();
+  }
   GetDevice()->SetInteractorStyle(NULL); 
   while(!myInteractorStyles.empty()){
     const PInteractorStyle& aStyle = myInteractorStyles.top();
     aStyle->SetInteractor(NULL);
+    if(MYVTKDEBUG) aStyle->DebugOn();
     myInteractorStyles.pop();
   }